Hi traders,
I am looking for a very simple EA that opens pending order (always a limit order) with the exactly same parameters as the last closed trade of a particular currency pair. It basically copies the entry price, and TP (no SL needed) values of the last closed trade once this trade is closed by hitting its TP level or manually and creates another exactly the same. That's it. I searched everywhere possible but came up dry.
Example #1: Sell trade entry at 1.0200 with TP= 50 pips opened either manually or triggered as a pending order (mostly). Price hits TP= 50 pips at 1.0150. This trade is closed. And the EA opens a sell limit pending order at 1.0200 with TP= 50 pips (at 1.0150).
Example #2: Buy trade entry at 1.0400 with TP= 50 pips opened either manually or triggered as a pending order (mostly). Price hits TP= 50 pips at 1.0450. This trade is closed. And the EA opens a buy limit pending order at 1.0400 with TP= 50 pips (at 1.0450).
If TP is not hit or trade not closed manually, the EA does nothing. A spread filter or time period filter would be a nice bonus, not necessary though.
Please anyone share if you have it or know where to find it or I kindly ask Metatrader to help with coding. Thanks a lot.
I am looking for a very simple EA that opens pending order (always a limit order) with the exactly same parameters as the last closed trade of a particular currency pair. It basically copies the entry price, and TP (no SL needed) values of the last closed trade once this trade is closed by hitting its TP level or manually and creates another exactly the same. That's it. I searched everywhere possible but came up dry.
Example #1: Sell trade entry at 1.0200 with TP= 50 pips opened either manually or triggered as a pending order (mostly). Price hits TP= 50 pips at 1.0150. This trade is closed. And the EA opens a sell limit pending order at 1.0200 with TP= 50 pips (at 1.0150).
Example #2: Buy trade entry at 1.0400 with TP= 50 pips opened either manually or triggered as a pending order (mostly). Price hits TP= 50 pips at 1.0450. This trade is closed. And the EA opens a buy limit pending order at 1.0400 with TP= 50 pips (at 1.0450).
If TP is not hit or trade not closed manually, the EA does nothing. A spread filter or time period filter would be a nice bonus, not necessary though.
Please anyone share if you have it or know where to find it or I kindly ask Metatrader to help with coding. Thanks a lot.