if (stopLongPriceWithOffset >= GetCurrentAsk() && StopLongType == OrderType.StopMarket) stopLongPriceWithOffset = GetCurrentAsk() - TickSize; if (stopLongPriceWithOffset >= GetCurrentBid() && StopLongType == OrderType.StopMarket) stopLongPriceWithOffset = GetCurrentBid() - TickSize;
Currently, i put this command in the onbarupdate().
Can i know why still getting this error ??
Comment