Drowdown based ea to monitor and prevent from drowdowning

Spezifikation

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)

 


Bewerbungen

1
Entwickler 1
Bewertung
(2)
Projekte
3
0%
Schlichtung
8
13% / 88%
Frist nicht eingehalten
1
33%
Frei
2
Entwickler 2
Bewertung
(16)
Projekte
35
23%
Schlichtung
4
0% / 50%
Frist nicht eingehalten
2
6%
Arbeitet
3
Entwickler 3
Bewertung
(325)
Projekte
505
19%
Schlichtung
32
44% / 31%
Frist nicht eingehalten
34
7%
Beschäftigt
4
Entwickler 4
Bewertung
(22)
Projekte
24
71%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
0
Arbeitet
5
Entwickler 5
Bewertung
(278)
Projekte
373
72%
Schlichtung
18
33% / 44%
Frist nicht eingehalten
14
4%
Arbeitet
Veröffentlicht: 14 Beispiele
6
Entwickler 6
Bewertung
(21)
Projekte
28
4%
Schlichtung
4
25% / 0%
Frist nicht eingehalten
3
11%
Arbeitet
7
Entwickler 7
Bewertung
(32)
Projekte
35
34%
Schlichtung
5
0% / 80%
Frist nicht eingehalten
0
Arbeitet
Veröffentlicht: 2 Beispiele
8
Entwickler 8
Bewertung
(1)
Projekte
4
0%
Schlichtung
5
20% / 40%
Frist nicht eingehalten
2
50%
Frei
9
Entwickler 9
Bewertung
(7)
Projekte
7
29%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
10
Entwickler 10
Bewertung
(159)
Projekte
284
35%
Schlichtung
18
22% / 61%
Frist nicht eingehalten
42
15%
Beschäftigt
11
Entwickler 11
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
12
Entwickler 12
Bewertung
(4)
Projekte
3
33%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
0
Frei
13
Entwickler 13
Bewertung
(51)
Projekte
69
35%
Schlichtung
4
25% / 75%
Frist nicht eingehalten
0
Frei
14
Entwickler 14
Bewertung
(10)
Projekte
19
42%
Schlichtung
6
0% / 50%
Frist nicht eingehalten
3
16%
Arbeitet
15
Entwickler 15
Bewertung
(501)
Projekte
968
74%
Schlichtung
27
19% / 67%
Frist nicht eingehalten
100
10%
Beschäftigt
Veröffentlicht: 1 Artikel, 6 Beispiele
16
Entwickler 16
Bewertung
(39)
Projekte
57
18%
Schlichtung
6
33% / 17%
Frist nicht eingehalten
1
2%
Frei
Veröffentlicht: 2 Beispiele
17
Entwickler 17
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
18
Entwickler 18
Bewertung
(4)
Projekte
4
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
19
Entwickler 19
Bewertung
(250)
Projekte
460
26%
Schlichtung
140
20% / 59%
Frist nicht eingehalten
100
22%
Arbeitet
20
Entwickler 20
Bewertung
(45)
Projekte
46
24%
Schlichtung
34
9% / 85%
Frist nicht eingehalten
10
22%
Frei
21
Entwickler 21
Bewertung
(1)
Projekte
1
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
22
Entwickler 22
Bewertung
(6)
Projekte
5
0%
Schlichtung
2
50% / 50%
Frist nicht eingehalten
2
40%
Frei
23
Entwickler 23
Bewertung
(11)
Projekte
15
13%
Schlichtung
4
25% / 25%
Frist nicht eingehalten
4
27%
Beschäftigt
24
Entwickler 24
Bewertung
(295)
Projekte
472
40%
Schlichtung
102
40% / 24%
Frist nicht eingehalten
78
17%
Überlastet
Veröffentlicht: 2 Beispiele
25
Entwickler 25
Bewertung
(177)
Projekte
229
20%
Schlichtung
20
40% / 20%
Frist nicht eingehalten
0
Überlastet
26
Entwickler 26
Bewertung
(6)
Projekte
6
0%
Schlichtung
0
Frist nicht eingehalten
2
33%
Frei
27
Entwickler 27
Bewertung
(250)
Projekte
256
30%
Schlichtung
0
Frist nicht eingehalten
3
1%
Frei
Veröffentlicht: 2 Beispiele
28
Entwickler 28
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
29
Entwickler 29
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
I have a open source Tradingview indicator that I want it to be converted to Ninja Trader8. I have attached it. Please let me know, if you can do it and for how muc
I need help in modifying an amibroker AFL indicator the indicator already works but I need per symbol static variable isolation, parameters persistence per symbol after restart, non declining trailing stop logic, parameter auto restore when switching symbols and a global reset function for static variables. For better understanding As discussed, this is the official offer for restructuring my RAD Chandelier stop loss
Hi, I have a clear MT5 EA wrapper project with locked TSCEA, requiring enhanced execution logic (“pending OR better market” order handling). I can share detailed spec. Please let me know your availability and quote range. Thanks, Tom Pike ------------------------------------------------------------------------------------------------------------------------------ Title: MT5 Wrapper EA – “Limit Order OR Better
ICT_OneTrade_2R 100 - 200 USD
🔥 ICT_OneTrade_2R Precision. Discipline. Consistency. ICT_OneTrade_2R is a professional Expert Advisor designed for traders who value structured execution and controlled risk. This system is built around a fixed Risk-to-Reward ratio of 1:2 (RR 2.0) — meaning every trade is planned with precision: Risk 1 → Target 2. No randomness. No overtrading. Just one high-quality trade per session. ⚙️ Key Features ✔ Fixed RR 1:2
Hi , I have some indicators that I want set up on my TV chart and want to create one chart for some and another chart for some others. Plus I want to set up the brackets orders so I can trade from the chart. I have these set up somewhat but need it cleaned up and the way I want them. how much would something like this cost to do? I'm in California and would like you to show me so I can learn to do this when I want to
Gold robot Ga1 30 - 200 USD
mport pandas as pd import numpy as np def detecter_tendance(data): # Code pour détecter la tendance pass def identifier_niveaux(data): # Code pour identifier les niveaux de support et de résistance pass def calculer_stop_loss(tendance, support, resistance): # Code pour calculer les stop loss pass def calculer_profils(tendance, support, resistance): # Code pour calculer les profils mport pandas as pd
European Central Bank (ECB) Interest Rate Decision The European Central Bank left interest rates unchanged at its first policy meeting of 2026, in line with expectations. source: https://www.mql5.com/en/economic-calendar/european-union/ecb-interest-rate-decision '407332776' : added order #481999464 sell 0.01 BTCUSDm at market
I am looking for a professional developer to build a custom trading analysis software for me. This tool is NOT an automated trading bot (EA); it is an analysis dashboard to help me identify high-probability setups based on my strategy. Key Requirements: Multi-Timeframe Analysis: The software should scan 4 different timeframes (M15, M30, H1, H4, D1, WK1, MTH1) and alert me when my conditions are met. Indicator
Core Requirements: Two selectable timeframes - dropdown inputs to choose from M1, M5, M15, H1, H4, D1, W1, MN1 Timeframe 1 = Chart's own timeframe (if chart is M5, TF1 should be M5) Timeframe 2 = Higher timeframe for confluence All Ichimoku components displayed for both timeframes: Tenkan-sen Kijun-sen Senkou Span A Senkou Span B Chikou Span Cloud (bullish and bearish) Technical Settings: All buffers accessible for
Hello everyone, I am looking for a highly experienced MQL5 developer to build a fully automated Expert Advisor (EA) based strictly on Smart Money Concepts (SMC) 🔍 Core Strategy Requirements (SMC Only) The EA must be based on Advanced Smart Money Concepts , including: ✅ Market Structure (BOS & CHOCH) ✅ Liquidity concepts (equal highs/lows, stop hunts)✅ Trap Blocks / Fake Order Blocks detection ✅ Valid Order

Projektdetails

Budget
30+ USD