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

MQL5 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 1 gün
Müşteri tarafından geri bildirim
Hard working, and great expertise. More than 5 stars if I can!
Geliştirici tarafından geri bildirim
Good Customer

İş Gereklilikleri

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.

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(620)
Projeler
680
57%
Arabuluculuk
25
16% / 60%
Süresi dolmuş
228
34%
Serbest
2
Geliştirici 2
Derecelendirme
(94)
Projeler
148
59%
Arabuluculuk
16
38% / 13%
Süresi dolmuş
25
17%
Serbest
Benzer siparişler
I am looking to develop an automated trading bot based on a strategy involving the crossing of four Simple Moving Averages (SMA). The bot should be capable of entering trades based on this strategy. Additionally, I would like to incorporate some custom diversions tailored for NinjaTrader
RSI trading bot 50 - 80 USD
Good morning, I'm looking to have an RSI based trading bot developed, which focuses on having many options for closing trades in order to diversify my trading opportunities, and to be good for experimentation in backtesting. Here are the features I'd like: -Being able to have as many of the following options activated as I want, to try all combinations of them -To work on all timeframes, though I will be focusing on
Looking for an EA which can produce less than 5% drawdown. Also profit factor above 1.5 (preferably 2.0) Please give me proper explanation how your EA works too Has anyone programmed it before? is it limited to forex only
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

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD