MT5 EA that monitors open positions and creates Pending orders for Y amount of time

MQL5 Experts

Tâche terminée

Temps d'exécution 1 jour
Commentaires du client
Hard working, and great expertise. More than 5 stars if I can!
Commentaires de l'employé
Good Customer

Spécifications

Hello,

Can anybody help me program an EA (I don't need the code source) that will do the following:

  • Monitor open positions and create a pending orders After X distance:
 If I manually open 1 lot BUY EURUSD at 1.0000 and I specify X distance to be 200 points (0.00200):
  1.  Scenario 1, Main position is profitable; The EA should open a pending order in the same direction, BUY LIMIT, when the price reaches 1.00200. The new created pending order should have the main position entry price, which is 1.0000 So at the end, the pending order should open at 1.00200, BUY LIMIT  at 1.00000
  2.  Scenario 2, Main position is losing; The EA should open a pending order in the same direction, BUY STOP, when the price reaches 0.99800. The new created pending order should have the main position entry price, which is 1.0000 So at the end, the pending order should open at 0.99800, BUY STOP  at 1.00000

  •  Pending orders,positions (after they become position from pending orders) should be canceled /closed (killed) after Y amout of time (e.g. 60 seconds), even if they're profitable. 

  • All pending orders, positions (when they become position from pending orders) should have their own SL, TP. Break even, Trailing stop.
  • All pending orders should be reordered at the main position entry price, for Y amount of time (e.g. 60 seconds):
    1. Even when the main position is closed (if I manually close it, or an external EA closes it). 
    2. When the pending orders become a positions and close by TP, SL, Break even, Trailing stop

Here is what I am thinking:

  1. Monitoring time in milliseconds = xx ( in milliseconds)  ; time to monitor for opened position (that I manually open, or another EA opens)
  2. (X)Distance = xx (in points) ; Distance from which pending orders should be created
  3. Closing / expiration time (Y) (in seconds) = xx seconds
  4. MY SL =  xx (in points)
  5. My TP = xx (in points)
  6. Break Even; parameters
  7. Tailing stop; parameters
  8. Magic number = xxxxx 


EXAMPLE:

My setup is the following: (I will not be using break even, nor trailing stop to make it simple)

  1. Monitoring time in milliseconds = 5 ms
  2. X Distance = 100  points
  3. Y time (in seconds) = 120 seconds
  4. MY SL =  200
  5. My TP = 50
  6. Break Even = 0 (for all its values)
  7. Tailing stop = 0 (for all its values)
  8. Magic number = 4557
Here is what I expect from the new EA I need developed:
  • 00s An external EA just opened 1x EURUSD lot - SELL - at 1.000
  • 30 seconds later, the price reaches 1.00080, and the external EA closes the main position
  • 40 seconds later, the price reaches 1.00100, the new EA should open a new 1x lot - SELL STOP at 1.0000 with SL = 200, TP= 50
  • 50 seconds later, the prices reaches 1.0000, the pending order becomes a position
  • 60 seconds later, the price reaches 0.00950, the position (newly created position from pending order) closes BY TP=50
  • 60.005 seconds later, the new EA should open a new 1x lot - SELL LIMIT at 1.0000 with SL = 200, TP= 50
  • 70 seconds later, the prices reaches 1.0000, the pending order becomes a position.
  • 80 seconds later, the price reaches 1.00200, the second new position (newly created position from pending order) closes BY SL=200
  • 80.005 seconds later, the new EA should open a new 1x lot - SELL STOP at 1.0000 with SL = 200, TP= 50
  • 90 seconds later, the price reaches 1.0000, the pending order becomes a position.
  • 120 seconds later, the price is at 1.00100, The Y time has been reached, and the new EA should kill and close the position.

Répondu

1
Développeur 1
Évaluation
(620)
Projets
680
57%
Arbitrage
25
16% / 60%
En retard
228
34%
Gratuit
2
Développeur 2
Évaluation
(94)
Projets
148
59%
Arbitrage
16
38% / 13%
En retard
25
17%
Gratuit
Commandes similaires
an ea that is based on a custom indicator, currently it works very fine but would like to add following... 1.make sure tp and sl values are calculated in points and are calculated from previous bar close (the one before our entry current bar) 2.check if a trade is already far from previous bar close than dont allow it, set the distance value in points (if current signal candle that is still formin and we would enter
I need a feature setup that will input the Sunday opening price as a horizontal ray on any chart and can be used by another EA as part of a trading strategy. Like this TradingView example below
I need a mobile phone EA that is similar to no limitz EA mobile bot which will use an ea converter for scalping strategy that will execute trade automatically, set tp and sl for different pairs using integrated trading strategies . It must hedge for both action to buy and sell under 1 min and 5 min based on scalping strategy to execute trades
Hello everyone, I am looking for a talented developer who can help me create my EA. I have several indicators that I want to combine in the EA. I will take care of the integration of the indicators and the trading strategy myself, I need someone to program all the trading operations for me. This is probably absolutely standard, someone with experience has certainly programmed this several times before. Here are the
Hi there, I am looking for someone to build a Martingale/Cost Averaging Expert Advisor (EA) with the following features and functions: Martingale and Cost Averaging Features: 1. **Martingale Calculation Settings:** - Standard Martingale system allowing the trader to set the initial trade size and the pip step for subsequent trades. - Option for averaging up and averaging down: - **Averaging Up:** Lot size
Job Title: MQL5 Trading Bot Code Debugging and Optimization** **Description:** We are seeking an experienced MQL5 developer proficient in debugging and optimizing trading bot codes. The current project involves fixing existing code that runs into debugging issues without errors and optimizing it for efficient performance in live trading environments. **Responsibilities:** - Debug existing MQL5 trading bot code to
need a very skilled developer to create ea from indicator .i have source code for the indicator and it is non repainting. More details will be provided .i need parameters like take profit/stop/loss/loss recovery and few more
Active expert 250+ USD
hi, I must do changes to a dashboard with manual input of trader and active expert. Budget 250$ Can do? the budget is correct based on job to do. If you want me to increase the budget you can message me
HELLO DEAR DEV'S. I'VE AN EA BUT IT STOP WORKING WHEN MT4 HAS BEEN UPDATED TO THE LATEST VERSION (1420). SO I NEED A GOOD DEVELOPPER THAT COULD UPDATE THIS EA TO THE LATEST VERSION OF MT4 SO I CAN USE IT. NB: IT'S A SINGLE FILE (.EX4) AND THE PRICE CAN BE NEGOCIATED TO BE SUITABLE FOR BOTH PARTIES. THANK YOU
hey friends, I am looking to build a smart trading robot, for the capital market. He knew how to trade in all the different types of trade. Example - in shares, currencies, index, indices, ETFs, funds, commodities, options, futures and so on. Suitable for trading on all stock exchanges in the world. It will be possible to install the trading robot in the MetaTrader 5 trading software. But it will also be possible to

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD