Drowdown based ea to monitor and prevent from drowdowning

Specifiche

Development of Guardian Trading Bot for MT4/MT5


What I need:

A simple protective trading bot (EA) that monitors the entire trading account and automatically closes all positions when specific profit/loss or drawdown conditions are met.


Required Features:

 Monitor all open positions:

  • The bot must track all active positions, regardless of whether they were opened manually or by another Expert Advisor (EA).

Automatic closing of all positions (Option 1):

  • When total profit reaches a specified value (e.g. +€30), the bot must close all active trades.
    → I need a trailing profit feature where I can define a trailing step (e.g. +€5).
  • When total loss reaches a specified value (e.g. -€50), the bot must also close all trades.
    → I also want a trailing stop loss option, where I can define a trailing step (e.g. -€10).

Block new trades after closure:

  • Once the bot closes all trades, it must block any new trades from being opened — especially from other EAs — to prevent immediate re-entry.

Option 2: Daily Drawdown Reset (should be optional and configurable)

Daily account protection with two safety levels:

  • Every day at midnight (or at a custom-defined time), the bot records the current account balance.
  • From that point, it calculates two drawdown thresholds:
    1. First warning level (e.g. -€200)
    2. Second critical level (e.g. -€500)

 Example of how it works:

  • If the balance at 00:00 is €10,000:
    • First level = €9,800
    • Second level = €9,500
  • If the next day at 00:00 the balance is €10,200:
    • New first level = €10,000
    • New second level = €9,700
  • The bot will always protect the highest daily balance, minus the configured drawdown values.

💡Additional logic when limits are triggered:

  • If the first level (e.g. -€200) is reached:
    • The bot closes all currently open positions (both positive and negative).
    • It allows previously set manual orders (pending orders) to remain.
    • It disables all EAs to prevent any further auto-trading.
  • If the second level (e.g. -€500) is reached:
    • The bot closes all positions and all pending orders.
    • It completely shuts down all further activity, both manual and automated.

Bot Settings Required:

  • Take Profit value (in EUR/USD)
  • Daily Stop Loss / Drawdown (in EUR/USD)
  • Daily reset time (with UTC offset configuration)
  • Trailing profit/loss step (in EUR/USD)

 


Con risposta

1
Sviluppatore 1
Valutazioni
(2)
Progetti
3
0%
Arbitraggio
8
13% / 88%
In ritardo
1
33%
Gratuito
2
Sviluppatore 2
Valutazioni
(16)
Progetti
35
23%
Arbitraggio
4
0% / 50%
In ritardo
2
6%
In elaborazione
3
Sviluppatore 3
Valutazioni
(329)
Progetti
515
19%
Arbitraggio
35
46% / 31%
In ritardo
34
7%
In elaborazione
4
Sviluppatore 4
Valutazioni
(24)
Progetti
26
73%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
5
Sviluppatore 5
Valutazioni
(279)
Progetti
378
72%
Arbitraggio
19
32% / 47%
In ritardo
16
4%
Gratuito
Pubblicati: 15 codici
6
Sviluppatore 6
Valutazioni
(22)
Progetti
29
3%
Arbitraggio
4
25% / 0%
In ritardo
3
10%
In elaborazione
7
Sviluppatore 7
Valutazioni
(33)
Progetti
36
33%
Arbitraggio
5
0% / 80%
In ritardo
0
In elaborazione
Pubblicati: 2 codici
8
Sviluppatore 8
Valutazioni
(1)
Progetti
4
0%
Arbitraggio
5
20% / 40%
In ritardo
2
50%
Gratuito
9
Sviluppatore 9
Valutazioni
(8)
Progetti
9
33%
Arbitraggio
1
100% / 0%
In ritardo
0
Gratuito
10
Sviluppatore 10
Valutazioni
(162)
Progetti
289
35%
Arbitraggio
18
22% / 61%
In ritardo
43
15%
Gratuito
11
Sviluppatore 11
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(4)
Progetti
3
33%
Arbitraggio
2
0% / 100%
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
(51)
Progetti
71
37%
Arbitraggio
4
25% / 75%
In ritardo
1
1%
Gratuito
Pubblicati: 1 codice
14
Sviluppatore 14
Valutazioni
(13)
Progetti
22
41%
Arbitraggio
8
0% / 50%
In ritardo
3
14%
Gratuito
15
Sviluppatore 15
Valutazioni
(510)
Progetti
977
74%
Arbitraggio
27
19% / 67%
In ritardo
100
10%
In elaborazione
Pubblicati: 1 articolo, 6 codici
16
Sviluppatore 16
Valutazioni
(39)
Progetti
59
20%
Arbitraggio
6
33% / 17%
In ritardo
1
2%
In elaborazione
Pubblicati: 2 codici
17
Sviluppatore 17
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
18
Sviluppatore 18
Valutazioni
(4)
Progetti
4
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
19
Sviluppatore 19
Valutazioni
(252)
Progetti
462
26%
Arbitraggio
139
20% / 60%
In ritardo
100
22%
Gratuito
20
Sviluppatore 20
Valutazioni
(45)
Progetti
46
24%
Arbitraggio
34
9% / 85%
In ritardo
10
22%
Gratuito
21
Sviluppatore 21
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
22
Sviluppatore 22
Valutazioni
(7)
Progetti
6
0%
Arbitraggio
4
25% / 75%
In ritardo
2
33%
Gratuito
23
Sviluppatore 23
Valutazioni
(23)
Progetti
31
35%
Arbitraggio
4
50% / 25%
In ritardo
5
16%
In elaborazione
24
Sviluppatore 24
Valutazioni
(298)
Progetti
478
40%
Arbitraggio
105
40% / 24%
In ritardo
82
17%
Caricato
Pubblicati: 2 codici
25
Sviluppatore 25
Valutazioni
(206)
Progetti
268
21%
Arbitraggio
24
50% / 17%
In ritardo
0
In elaborazione
26
Sviluppatore 26
Valutazioni
(7)
Progetti
7
0%
Arbitraggio
0
In ritardo
2
29%
Gratuito
27
Sviluppatore 27
Valutazioni
(258)
Progetti
269
29%
Arbitraggio
1
100% / 0%
In ritardo
3
1%
In elaborazione
Pubblicati: 2 codici
28
Sviluppatore 28
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
29
Sviluppatore 29
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
Looking for a developer in NinjaTrader For coding Inst - ES,NQ Chart type - Tick, range, volume & time Brief- Fib levels mapped on chart which act as entries, tgts and stops all based on candle close. (Maybe) use MACD for filtering direction. Daily manual input of the TWO fib Anchor levels is part of the strategy. I need a well experienced developer to bid and before biding check the attached file well. the PDF and
1- The EA must h ave a unique strategy specialized on make trades with very very low RRR, so basicaly risking 1475$ to make 100$, with an ammount adjustable of trades per day. (This is very important that i wish in 100 trades, it makes a maximum of 10 trades of mistake, maybe less...) 2- The EA must have the strategy specialized on INDEX CFD. 3- The EA must make each trade with more than 3 minutes, and less than 12h
I Have an existing Mql5 Expert advisor (source code), I want a professional programmer to help me Modify the EA... so that it can stop taking new trades once it Gets to a Pacific Lots Size or Floating loss
I Have an existing Mql5 Expert advisor (source code), I want a professional programmer to help me Modify the EA... so that it can stop taking new trades once it Gets to a Pacific Lots Size or Floating loss
Hi, can you define entry conditions based on 100 or 200 trades? If you need more history, i can give you more trades. It is EURUSD with great results! If you can do it, contact me
take your time better make it for days and have good bot than never benefits both of us. Make the bot have zero errors and backtest it for a 2 year period
Wise Legend 30 - 500 USD
I want this robot to alert me on a good entry point on the trading flat form ether to buy or to sell. And also alert me when to close the market. And alert me on market continuations
I have an existing MT5 Expert Advisor with the original MQ5 source code. I need an experienced MQL5 developer to review, debug and professionally improve the existing EA, not build an unrelated EA from scratch. The EA is mainly for XAUUSD and already contains entry signals, EMA filters, automatic lot sizing, basket profit management, spread/margin protection, news filtering and recovery logic. The main problem is the
I buy EA for USDEUR or XAUUSD for FTMO with proven backtest. Send me images with backtest reports where daily max dd is 1% on 200k account. I can buy several eas if you have them with proofs. Need images of backtesting for 5 years
Cerco uno sviluppatore MQL5 esperto per lavorare su un Expert Advisor (EA) XAUUSD per MetaTrader 5 già esistente , versione attuale XAU_V59.mq5 . L'obiettivo è modificare, correggere e sviluppare il codice esistente senza stravolgere la logica già presente , mantenendo le regole ei parametri già definiti, salvo le modifiche espressamente richieste. REQUISITI FONDAMENTALI Il codice deve essere scritto in MQL5 nativo e

Informazioni sul progetto

Budget
30+ USD