[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Limiting Daily Trades on 5 minute bars



PureBytes Links

Trading Reference Links

hi all,

I am trying to figure out the code in TS4, to limit the number of daily
trades, on a 5min tick chart to 2.

I am trying to write a system in which 2 different types of entries and
exits can be made in one day..
I want to limit the number of each entry to no more than 1 (2
total)(includes exits)

I am using 5 minute bars...

I think I just use a counter, but the values seem to reinitialize at each 5
min bar instead of reinitializing on the opening of the next day..

thanks for the help

Mark