crossover too close.
Why is the BarsSinceEntryExecution not working?
(See attached photo)
if (
(CrossAbove(SMA2, SMA1, 1))
)
{
EnterLong(0, 4000,"EnterLong");
}
if (
(PositionAccount.Quantity >= 1)
&&(CrossBelow(SMA2, SMA1, 1))
&&(BarsSinceEntryExecution(0, "EnterLong", 0) > 10)
)
{
ExitLong(Position.Quantity,"Exit","EnterLong");
}

Comment