if (Close[0] < SMA(sMAPeriod)
|| Close[0] < Ichimoku(9,26,52).KijunSen[0])
{
CancelOrder(LongEntryA);
CancelOrder(LongEntryB);
}
The errors are saying:
"Operator '<' cannot be applied to operands of type 'double' and 'NinjaTrader.Indicator.SMA'
"Invalid experession term '<'"
Basically, if the price closes below the SMA or below the Ichimoku, I want to cancel any pending orders.

Comment