I'm trying to place 2 opposite StopLimit orders at the same time:
My code:
protected override void OnBarUpdate()
{
if (CurrentBars[0] < 1)
return;
EnterShortStopMarket(Convert.ToInt32(DefaultQuantity), (Close[1] + (-10 * TickSize)) , "");
EnterLongStopMarket(Convert.ToInt32(DefaultQuantity), (Close[1] + (10 * TickSize)) , "");
}
How to fix this?

Comment