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
(325)
Projets
505
19%
Arbitrage
32
44% / 31%
En retard
34
7%
Chargé
4
Développeur 4
Évaluation
(22)
Projets
24
71%
Arbitrage
1
0% / 0%
En retard
0
Travail
5
Développeur 5
Évaluation
(278)
Projets
373
72%
Arbitrage
18
33% / 44%
En retard
14
4%
Travail
Publié : 14 codes
6
Développeur 6
Évaluation
(21)
Projets
28
4%
Arbitrage
4
25% / 0%
En retard
3
11%
Travail
7
Développeur 7
Évaluation
(32)
Projets
35
34%
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
(7)
Projets
7
29%
Arbitrage
0
En retard
0
Travail
10
Développeur 10
Évaluation
(159)
Projets
284
35%
Arbitrage
18
22% / 61%
En retard
42
15%
Chargé
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
69
35%
Arbitrage
4
25% / 75%
En retard
0
Gratuit
14
Développeur 14
Évaluation
(10)
Projets
19
42%
Arbitrage
6
0% / 50%
En retard
3
16%
Travail
15
Développeur 15
Évaluation
(501)
Projets
968
74%
Arbitrage
27
19% / 67%
En retard
100
10%
Chargé
Publié : 1 article, 6 codes
16
Développeur 16
Évaluation
(39)
Projets
57
18%
Arbitrage
6
33% / 17%
En retard
1
2%
Gratuit
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
(250)
Projets
460
26%
Arbitrage
140
20% / 59%
En retard
100
22%
Travail
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
(6)
Projets
5
0%
Arbitrage
2
50% / 50%
En retard
2
40%
Gratuit
23
Développeur 23
Évaluation
(11)
Projets
15
13%
Arbitrage
4
25% / 25%
En retard
4
27%
Chargé
24
Développeur 24
Évaluation
(295)
Projets
472
40%
Arbitrage
103
40% / 23%
En retard
78
17%
Occupé
Publié : 2 codes
25
Développeur 25
Évaluation
(177)
Projets
229
20%
Arbitrage
20
40% / 20%
En retard
0
Occupé
26
Développeur 26
Évaluation
(6)
Projets
6
0%
Arbitrage
0
En retard
2
33%
Gratuit
27
Développeur 27
Évaluation
(250)
Projets
256
30%
Arbitrage
0
En retard
3
1%
Gratuit
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
Would it be possible to connect Futures prop firm with Rithmic or Tradeovate platform to Ninjatrader automated trading ? If anyone can do this for me I will be happy to get started with the person right away
hello great developer I want to modify my NT8 indicator to change its arrow printing logic so that arrows appear on the first candled dot, not after the series. no repaint and no back painting. all in real time. This will help me get timely signals. Scope of work - Modify NT8 indicator logic to print arrows on the first candled dot. - Ensure arrow print matches 90%+ accuracy compared to the current functionality. -
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 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
Martingale Strategy 50 - 70 USD
I need a gambling bot that implements the Martingale Strategy for betting on roulette. It will be used on platforms like Betcity and Unibet to manage bets effectively. Scope of work - Develop a bot that implements the Martingale Strategy for roulette. - Ensure compatibility with Betcity and Unibet platforms. - Include functionalities for adjusting bet size and managing losses. - Integrate platform-specific features
Hello everyone, I am looking for an expert who is experienced with the Matriks IQ platform for the Turkish stock market. The project requires proficiency in C# coding within this environment. If you have prior experience or have developed algorithms on this platform, please reach out to me so we can discuss the details. Regards
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
Hello greetings, I need Pakistan indian or ukraine developer that can create an indicator for Quantower that follows a fairly simple logic. What I am looking for is an indicator that allows me to anchor a Fibonacci to a high or low point that I manually choose, and that then follows the price until the market starts to retrace. Only pakistan, indian or ukraine developer that have experience in quantower should bid
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame

Informations sur le projet

Budget
30+ USD