My current order code is as follows:
entryOrder = EnterShortLimit(0,true,DefaultQuantity,(2*dResMax+ Close[0])/3, "FakeOutSell");
SetProfitTarget("FakeOutSell",CalculationMode.Pric e,dLastMax);
SetStopLoss("FakeOutSell",CalculationMode.Price, 10*ATR(20)[0]+dResMax,false);
Essentially what I would like to write is "If, while a limit sell order is pending, the price drops below a certain level, then cancel the limit sell order"
My guess at the code
if ( entryOrder.State = entryOrder.ShortLimit)
does not work!
Thank you in advance.
As a corollary, I could still use some clarity when it is better to use an iorder such as entry.Order versus just a simple LimitSell order such as
EnterShortLimit(0,true,DefaultQuantity,Close[0], "WickShort");
Comment