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

MQL5 Experts

Job finished

Execution time 1 day
Feedback from employee
Good Customer
Feedback from customer
Hard working, and great expertise. More than 5 stars if I can!

Specification

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.

Responded

1
Developer 1
Rating
(620)
Projects
680
57%
Arbitration
25
16% / 60%
Overdue
228
34%
Free
2
Developer 2
Rating
(94)
Projects
148
59%
Arbitration
16
38% / 13%
Overdue
25
17%
Free
Published: 1 code
Similar orders
Experienced Trading Software Developer Needed – Multi-Platform Development Hello! I'm looking for an experienced developer to create a custom trading indicator and convert it into an automated trading bot for the following platforms: MT5 NinjaTrader 8 Quantower cTrader The plan is to develop the same indicator and trading bot for all four platforms, one after another. Project requirements: Custom trading indicator
un écosystème logiciel asynchrone multi-comptes dopé par un module de supervision par Intelligence Artificielle (Guardian AI). La solution assure le pilotage automatisé, le filtrage de marché en temps réel et le contrôle des risques pour 20+ comptes MetaTrader 4/5 (via MetaApi) et Deriv sur VPS Equinix NY4. vous aurez plus de detail dans les échanges
Order flow 30+ USD
Hi! I need an experience developer with order flow, volume delta, and futures scalping, and I wanted to ask you a few questions. Have you personally developed and tested fast-paced strategies for Gold Futures (GC), particularly those that enter during short-term price impulses and scale into positions as momentum builds? From your experience, what indicators or signals help you determine whether an impulse has enough
I am looking for an experienced MQL5 developer for the first milestone of a larger MetaTrader 5 project: a multi-symbol, multi-timeframe signal scanner with alerts. This milestone covers indicator integration only. There is no order placement or trade management at any stage. Scope of this milestone Read outputs from three custom indicators (provided as compiled files after selection and NDA) reliably via iCustom and
RA_BOT 2.0 36+ USD
//@version=4 study(title="UT Bot Alerts", overlay = true) // Inputs a = input(1, title = "Key Vaule. 'This changes the sensitivity'") c = input(10, title = "ATR Period") h = input(false, title = "Signals from Heikin Ashi Candles") xATR = atr(c) nLoss = a * xATR src = h ? security(heikinashi(syminfo.tickerid), timeframe.period, close, lookahead = false) : close xATRTrailingStop = 0.0 xATRTrailingStop := iff(src >
Andrew 50 - 200 USD
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement

Project information

Budget
30+ USD