I am trying to implement BarsSinceExitExecution but does not work.
---------------------------
if ((BarsSinceExitExecution(0,"L1",0) >=2 || BarsSinceExitExecution(0,"L1",0) == -1) && (Closes[0][0] > SMA(10)[0]))
{
EnterLong(1, "L1");
}
if (( Position.MarketPosition == MarketPosition.Long) && (Closes[0][0] < SMA(10)[0]))
{
ExitLong("XL1", "L1");
}
Also, tried with Exit Signal:
if ((BarsSinceExitExecution(0,"XL1",0) >=2 || BarsSinceExitExecution(0,"XL1",0) == -1) && (Closes[0][0] > SMA(10)[0]))
I did spend considerable time and have gone through all the posts in this forum but I am unable to find the root cause.
Appreciate your help!
Thanks.

Comment