Forums ProRealTime English forum ProOrder support barindex trouble Reply To: barindex trouble

#54897

BARINDEX is the number of bars elapsed since your strategy has been launched.

TRADEINDEX is the number of bars elapsed since your trade was opened.

INTRADAYBARINDEX is the number of intraday bars elapsed since the beginning of the day and is reset daily to zero.

To reset some variables at the beginning of each day you may want to write:

To check how many bars have elapsed since your trade was opend you may write:

I also suggest that you use the search box to find all occurrences of keywords you don’t feel at ease with. You’ll find documentation and plenty of examples to study.