Forum

How to determine the most recent order type that hit its target profit

I have written an EA (in MQL4) to test a strategy which involves placing a buy and sell pending order at the same price on a grid, with target profit, and once the orders are triggered, another pending order of buy and sell is placed at the next level in the direction of travel. I am not a

EA to open an opposite trade

I would be most grateful if you are spare sometime to develop for me an EA that that will monitor a trade (by ticket number or comment, i.e. anything to identify just that trade) and open an opposite trade of the same lot size (TP and SL not required, i.e no take profit or stop loss) when the

Continue to place pending orders irrespective of whether there are already open orders.

I would be most grateful if somebody could amend (or advise me what to amend) the EA below for me please. Its is a simple EA that opens a pending buy stop and sell stop at round numbers (every 100 pips in this case). The issue I have with it is that when price moves towards to next round number, the