I wish to have a strategy enter a "long" trade by:
--Possibly entering the position IF proper conditions exist on the CURRENT bar
--If conditions on the CURRENT bar are met, place a "buy" limit order 2 pips above the HIGH of the CURRENT bar for entry on the NEXT bar...
When conditions seem to be in place for a possible trade entry a "pending" order is established, my issue is that (I believe) when the CURRENT bar is completed the strategy immediately cancels the order if the NEXT bar is not 2 pips above the high...my code for orders is as follows:
EnterPlace = (High[0] + 2) * TickSize; //entry 2 pips above high
EnterLongLimit(1, EnterPlace, "Condition 1 Entry");
ExitPlace = (Low[0] - 1) * TickSize; //stop 1 pip below low
SetStopLoss("EnterLongLimit", CalculationMode.Ticks, ExitPlace, true);
Do I possibly need to cancel the "Calculate upon bar close" or is it some other issue? Thanks in advance.

Comment