Greetings,
I'm fine tuning an EA and would like to have it set a Limit order upon a particular trigger. The entry has been working fine with an OP_BUY command. Now, I'm trying to change it to set a Limit order instead of an Entry order. Unfortunately, my first "tweak" didn't work.
So, here's the question if you don't mind. Is this the proper way to code the entry price?
NormalizeDouble(Ask-LimitEntry,Digits),
For context it is set in the OrderSend string below:
OrderSend(Symbol(),
OP_BUYLIMIT, Lots, NormalizeDouble(Ask-LimitEntry,Digits), 3, NormalizeDouble(Bid - StopLoss*Point, Digits), NormalizeDouble(Bid + TakeProfit*Point,
Digits), "MGF-PSAR-LMT-3-2-15-a", magicnolong, 0, CLR_NONE);
Thank you ...
I'm fine tuning an EA and would like to have it set a Limit order upon a particular trigger. The entry has been working fine with an OP_BUY command. Now, I'm trying to change it to set a Limit order instead of an Entry order. Unfortunately, my first "tweak" didn't work.
So, here's the question if you don't mind. Is this the proper way to code the entry price?
NormalizeDouble(Ask-LimitEntry,Digits),
For context it is set in the OrderSend string below:
OrderSend(Symbol(),
OP_BUYLIMIT, Lots, NormalizeDouble(Ask-LimitEntry,Digits), 3, NormalizeDouble(Bid - StopLoss*Point, Digits), NormalizeDouble(Bid + TakeProfit*Point,
Digits), "MGF-PSAR-LMT-3-2-15-a", magicnolong, 0, CLR_NONE);
Thank you ...