Could someone please have a look and tell me if my script will do the following: if in the primary bars the open > close two orders are sent to my broker (IB). An enterlongstop at the MAX high of the last 2 candles and an exitlongstop at the low of the candle before. Then on every update of the primary bar the exitlongstop is updated to the most recent low.
Ist the ExitLongStop active even if the EnterLongStop has not been triggered?
if (BarsInProgress == 0)
{
stopOrderL = ExitLongStop(1, true, DefaultQuantity, Low[1], "ExitLong 1min", "LongStop 1min");
if (Open[0] > Close[0])
{
entryOrderL = EnterLongStop(1, true, DefaultQuantity, MAX(High, 2)[1], "LongStop 1min");
stopOrderL = ExitLongStop(1, true, DefaultQuantity, Low[1], "ExitLong 1min", "LongStop 1min");
}
}

. Could you please tell me if the following is right:
Comment