Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

five min - exit at end of the day Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
arathod
Posted : Wednesday, July 27, 2011 8:32:49 AM
Platinum Customer Platinum Customer

Joined: 10/20/2008
Posts: 357
Is it possible to run backscanner with the rule that intraday trades such as five min exit on moc - market on close?

One thought - it we number the bars 1 thru 78 every day (78 five min bars in a day)  and then exit the trades if any open on bar 78?

Thanks.
Bruce_L
Posted : Wednesday, July 27, 2011 8:38:43 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
There is a Condition available in the Web Library called End of Day which should work in any intraday Bar Interval.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
jz94117
Posted : Wednesday, August 10, 2011 11:46:12 PM
Registered User
Joined: 7/21/2007
Posts: 188
Hi Bruce,

What does the End of Day condition do?  I tried looking it up in your online documentation, but couldn't find any description of how to use it or what values it measures.  I'm assuming it's a boolean, true or false, whether the current bar is the end for the day?

Jim in SF.
Bruce_L
Posted : Thursday, August 11, 2011 7:42:06 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The fact that it is a Condition means it is Boolean and returns True or False. The info box for the End of Day Condition states, "Checks for the last bar of the trading day." You can view the RealCode for the Condition to see how it works by right-clicking on the Condition and selecting Edit RealCode:

If isLastBar = False Then
    If Price.DateValue.Day <> Price.DateValue(-1).Day Then pass
End If

So the RealCode is checking the actual calendar dates of the bars to determine if it is the last bar of the day or not.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
jz94117
Posted : Thursday, August 11, 2011 1:38:01 PM
Registered User
Joined: 7/21/2007
Posts: 188
Thanks, Bruce.

I had forgotten all about the "i" icon. 

Jim.
mgostyns
Posted : Friday, September 16, 2011 2:31:35 PM
Registered User
Joined: 10/11/2010
Posts: 1
This end of day logic simply doesn't work. There is no indicator applied to the chart nor the backtester is following it.
Bruce_L
Posted : Friday, September 16, 2011 3:34:33 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
It seems like the End of Day Condition in the Web Library got corrupted somehow. It has been replaced and the new End of Day Condition seems to work for me.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.