Is there any way to set where the order is filled (on the close of the condition met bar rather than the open of the following bar) for backtest.
If not I have an alternative in mind but require assistance it would be something like
if(CountIf( some signal(s) x bars ago
&& some signal(s) y bars ago
&& some signal(s) z bars ago)
{do something like return the value of the count}
if I am so far off, I will describe what I am trying to do, create a condition which identifies these reversals at the instance where an order is filled, and count the number of these occurrences found in the backtsest. If I had a number of these occurrences I think I can manage with doing some manual calculations on how my strategy is being influenced.
Thanks

Comment