EA that opens 1 pending order with the same parameters as the last closed trade (copy of it) ???

To add comments, please log in or register
Dave12584
8
Dave12584  

Hi everyone,


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. Thanks a lot.

Juvenille Emperor Limited
Moderator
9341
Eleni Anna Branou  
Dave12584:

Hi everyone,


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. Thanks a lot.

You can order one in Freelance.

Sergey Golubev
Moderator
113341
Sergey Golubev  

Forum on trading, automated trading systems and testing trading strategies

How to Start with Metatrader 5

Sergey Golubev, 2017.08.27 08:00

Freelance


The forum

  1. What MQL5 developers think about the Freelance service 
  2. Freelance arbitration - forum thread, and also the rules  here (what will happen if the employer is not logging in his account for many days during arbitration)
  3. Use tips in the Freelance service! - good tread with the instruction about HowTo use  Freelance
  4. How to create Requirements Specification for ordering a trading robot
  5. Add translation of your Market product or order it in Freelance
  6. MQL5.com Freelance: Developers' Source of Income (Infographic) 
  7. Freelance, decompilation, the rules, examples of the decompiled code - the thread with examples
  8. Some new Freelance services (translation, consultation, converting) -  the post.
  9. Freelance service new webdesign - the post 
  10. How can I undo or "de-selected" a developer after wrongly press the "to selected" in the Freeelance order - the post from MQ

The articles

  1. How to implement traders' orders and make a profit in the MQL5 Freelance service 
  2. How to create Requirements Specification for ordering a trading robot (Detailed Instruction)
  3. Freelance Jobs on MQL5.com - Developer's Favorite Place 
  4. MQL5.com Freelance: Developers' Source of Income (Infographic) 
  5. Do Traders Need Services From Developers?
  6. A Few Tips for First-Time Customers
============

To add comments, please log in or register