I am creating a strategy in which the system will set an initial order. After that order is executed, the system should submit another order. The strategy submits the orders in the same bar. Would you please help me figuring out the problem?
if ( CrossBelow(EMA1, SMA1, 1) )
{
EnterShortLimit(0, true, 1, Close[0] + 10), "SE01");
}
if (BarsSinceEntryExecution(0, "SE01", 1) > 0 || BarsSinceEntryExecution(0, "SE01", 1) == -1)
{
EnterShortLimit(0, true, 1, Close[0] + 20, "SE02");
}
Comment