// Using the end of bar exit
if(this.iUseEOBExit)
{
if(
// After 5 bars have passed since entry, exit the position
BarsSinceEntry() >= 5
)
{
if(this.iQuantity1 != 0 && tVars.iOrder[1] == null)
tVars.iOrder[1] = ExitShort("eob", string.Empty);
return;
}
}
However, when I back test, not only does the above exit not work, it appears to disable all other exit modes as well. I get one single trade which enters at the start of the back test period and ends at the end of the back test period.
I have other exit modes which is based on profit target, loss target and time based targets. All of these get disabled.

Comment