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

MQL5 Эксперты

Работа завершена

Время выполнения 1 день
Отзыв от заказчика
Hard working, and great expertise. More than 5 stars if I can!
Отзыв от исполнителя
Good Customer

Техническое задание

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.

Откликнулись

1
Разработчик 1
Оценка
(620)
Проекты
680
57%
Арбитраж
25
16% / 60%
Просрочено
228
34%
Свободен
2
Разработчик 2
Оценка
(94)
Проекты
148
59%
Арбитраж
16
38% / 13%
Просрочено
25
17%
Свободен
Похожие заказы
1) the EA can compound the lot size from 0.01 to 0.02 so on 2) the EA must able to trade different kind of pair 3) the EA will have stoploss or take profit 4) long term profit 5) for equiry will be 100 for every 0.01 lot Developer will have that kind of EA may apply and introduce any investor account! this EA must have mql4 file
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'} Hello Looking for someone to help me improve my current strategy on my own algorithm and to also add hedging mode
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
Please watch the video on this youtube channel and download the Indicator from there. https://www.youtube.com/watch?v=ldTomLu8DxE&amp ;t=32s Rules are explained on the video and the download of the indicator is on the same video
I would like an EA that follows exactly this steps to trade de daily candle. Watch the video and then see if you can do the task. https://www.youtube.com/watch?v=g3oDYq4P9ZE Document is one this link https://cdn.discordapp.com/attachments/1135977927469703230/1135978751461695598/Daily_Bias-TTrades_edu.pdf?ex=669a9a27&amp ;is=669948a7&hm=96de195f7e695a381c1261b065f67b94fae319d02a0c88641b146f8b2978320c& Should have
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange. I had one created in python, but I would like it to work in MT5 with various regular rules that make it profitable
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated

Информация о проекте

Бюджет
30+ USD
Исполнителю
27 USD