Any hints on the following would be useful.
As part of a condition for trade entry, would like to implement following:
BarsSinceExit() > 1
However, to have this line of code, it would appear that there is a need to have a reference somewhere else in the strategy that a trade has been executed previously otherwise the above does not work, & if the above line is one of the conditions of entry, no trades are executed. Hope this makes since.
if use BarsSinceEntry() as a condition of exit, however, it executes as would expect since trade has already been entered!
Hope you are able to assist here with some general direction.
thx
David
Comment