Drowdown based ea to monitor and prevent from drowdowning

Spécifications

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)

 


Répondu

1
Développeur 1
Évaluation
(2)
Projets
3
0%
Arbitrage
8
13% / 88%
En retard
1
33%
Gratuit
2
Développeur 2
Évaluation
(16)
Projets
35
23%
Arbitrage
4
0% / 50%
En retard
2
6%
Travail
3
Développeur 3
Évaluation
(328)
Projets
513
19%
Arbitrage
35
43% / 31%
En retard
34
7%
Chargé
4
Développeur 4
Évaluation
(24)
Projets
26
73%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
5
Développeur 5
Évaluation
(279)
Projets
377
72%
Arbitrage
19
32% / 47%
En retard
15
4%
Travail
Publié : 15 codes
6
Développeur 6
Évaluation
(22)
Projets
29
3%
Arbitrage
4
25% / 0%
En retard
3
10%
Travail
7
Développeur 7
Évaluation
(33)
Projets
36
33%
Arbitrage
5
0% / 80%
En retard
0
Travail
Publié : 2 codes
8
Développeur 8
Évaluation
(1)
Projets
4
0%
Arbitrage
5
20% / 40%
En retard
2
50%
Gratuit
9
Développeur 9
Évaluation
(8)
Projets
8
38%
Arbitrage
0
En retard
0
Travail
10
Développeur 10
Évaluation
(162)
Projets
289
35%
Arbitrage
18
22% / 61%
En retard
43
15%
Gratuit
11
Développeur 11
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
(4)
Projets
3
33%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
13
Développeur 13
Évaluation
(51)
Projets
71
37%
Arbitrage
4
25% / 75%
En retard
1
1%
Gratuit
Publié : 1 code
14
Développeur 14
Évaluation
(12)
Projets
21
43%
Arbitrage
8
0% / 50%
En retard
3
14%
Gratuit
15
Développeur 15
Évaluation
(510)
Projets
977
74%
Arbitrage
27
19% / 67%
En retard
100
10%
Gratuit
Publié : 1 article, 6 codes
16
Développeur 16
Évaluation
(39)
Projets
58
19%
Arbitrage
6
33% / 17%
En retard
1
2%
Travail
Publié : 2 codes
17
Développeur 17
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
18
Développeur 18
Évaluation
(4)
Projets
4
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
19
Développeur 19
Évaluation
(252)
Projets
462
26%
Arbitrage
139
20% / 60%
En retard
100
22%
Gratuit
20
Développeur 20
Évaluation
(45)
Projets
46
24%
Arbitrage
34
9% / 85%
En retard
10
22%
Gratuit
21
Développeur 21
Évaluation
(1)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
22
Développeur 22
Évaluation
(7)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
2
33%
Gratuit
23
Développeur 23
Évaluation
(21)
Projets
28
32%
Arbitrage
4
50% / 25%
En retard
4
14%
Travail
24
Développeur 24
Évaluation
(298)
Projets
478
40%
Arbitrage
105
40% / 24%
En retard
82
17%
Chargé
Publié : 2 codes
25
Développeur 25
Évaluation
(202)
Projets
262
21%
Arbitrage
23
52% / 17%
En retard
0
Travail
26
Développeur 26
Évaluation
(7)
Projets
7
0%
Arbitrage
0
En retard
2
29%
Gratuit
27
Développeur 27
Évaluation
(258)
Projets
266
29%
Arbitrage
0
En retard
3
1%
Travail
Publié : 2 codes
28
Développeur 28
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
29
Développeur 29
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
Full and specific details will be if selected for the task. This is the general description of the EA Create an expert advisor with two options. Either send email to buy or sell... or make a trade. Create an expert advisor which sends email for a buy alert or make a trade when all three of the following criteria are met: * CCI goes more than 100 ( or more than any other set value) * MACD shows green bar or
JOB: The team from VixAlgoTrading is looking for experienced MQL5 developers with a keen interest in AI generated Strategies. Our recently developed Automated EA Builder called VixAlgoBuilder (VAB) needs dedicated and experienced testers. The job involves day-to-day use of VAB and review. The hired applicants will be considered for partnership towards further development of the EA Builder with monthly salary. While
Akram boushaba 30 - 500 USD
مرحبا كيف حالكم انا اكرم مهتم بالتداول احاول ان اصمم برنامج روبوت قادر على التداول من تلقاء نفسه من يمكنه ان يساعدني او يعلمني كيف استطيع فهل ذلك وسأكون ممتناً له وشكرا لكم
I am in need of a profitable scalping EA for gold. No grid or martingale strategy pls. If you have one fully developed and working, pls reach out. You should be able to provide trial version
Looking for someone who is experienced in creating MT5 EA from scratch to go over 7 public youtube videos (total duration about 6 hours) and extract the strategy code taught in the videos to make a MT5 .mq5 source code file. Full code is explained in the 7 videos so it's just a matter of going over the videos and extracting the relevant parts that relate to the source code and compiling it into a working EA. The
MetaTrader In-App Trade Alerts An existing MetaTrader terminal is already running on my side, but its account is kept hidden for privacy reasons. I need a specialist to wire up native in-app notifications so that every time a position is opened or later closed I see an immediate pop-up inside the platform—no emails or SMS, just the built-in alert window (and the usual MT push to mobile if that comes automatically
EA Crafter 500+ USD
Act as a professional Quantitative Developer and Risk Manager. I want to build a systematic trading strategy rulebook that prioritizes capital preservation and statistical edge over raw performance. Please generate a structured trading strategy using the following framework: 1. ASSET CLASS & TIMEFRAME: - Asset: [e.g., Apple (AAPL), Bitcoin (BTC), or EUR/USD] - Timeframe: [e.g., 5-minute, 1-hour, Daily] 2. CORE
I have an existing MT5 Expert Advisor for XAUUSD M5. This is NOT a new robot from zero. I need modification and professional review of an existing MQL5 EA. Main goals: 1. Buy entries: Buy trades are currently too rare. The Buy ADX filter was very strict at 45. I am testing 40 now. I need you to review the Buy entry filters and improve Buy entry quality without making entries random or weak. 2. Sell entries: Sell
I am looking for an experienced MQL5 developer to build a professional MetaTrader 5 (MT5) Expert Advisor (EA) for swing trading. Trading Pairs EUR/USD USD/JPY Timeframes Daily (D1) for trend identification. H4 for trade entries. Strategy The EA should: Detect Daily market structure (HH, HL, LH, LL) using confirmed swing highs and lows (not relying solely on ZigZag). Use DMI/ADX for trend confirmation. Open trades
Hello, I want an EA which does martingale and has hedge feature. You may be confused by what this mean entirely so reach out to me so we can talk in depth as what I have said here is very vague for someone to clearly understand. I am not paying a single dollar over $30, so don't apply if you don't agree with that. Thank you for taking your time to read this

Informations sur le projet

Budget
30+ USD