Drowdown based ea to monitor and prevent from drowdowning

İş Gereklilikleri

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)

 


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(2)
Projeler
3
0%
Arabuluculuk
8
13% / 88%
Süresi dolmuş
1
33%
Serbest
2
Geliştirici 2
Derecelendirme
(15)
Projeler
34
24%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
2
6%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(321)
Projeler
497
19%
Arabuluculuk
33
42% / 30%
Süresi dolmuş
32
6%
Meşgul
4
Geliştirici 4
Derecelendirme
(21)
Projeler
23
70%
Arabuluculuk
0
Süresi dolmuş
0
Yüklendi
5
Geliştirici 5
Derecelendirme
(271)
Projeler
366
71%
Arabuluculuk
18
33% / 44%
Süresi dolmuş
14
4%
Serbest
Yayınlandı: 14 kod
6
Geliştirici 6
Derecelendirme
(20)
Projeler
26
4%
Arabuluculuk
4
0% / 0%
Süresi dolmuş
3
12%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(31)
Projeler
35
34%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 2 kod
8
Geliştirici 8
Derecelendirme
(1)
Projeler
4
0%
Arabuluculuk
5
20% / 40%
Süresi dolmuş
2
50%
Serbest
9
Geliştirici 9
Derecelendirme
(5)
Projeler
5
20%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
10
Geliştirici 10
Derecelendirme
(159)
Projeler
284
35%
Arabuluculuk
17
24% / 59%
Süresi dolmuş
42
15%
Yüklendi
11
Geliştirici 11
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
(3)
Projeler
3
33%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
13
Geliştirici 13
Derecelendirme
(51)
Projeler
69
35%
Arabuluculuk
4
25% / 75%
Süresi dolmuş
0
Serbest
14
Geliştirici 14
Derecelendirme
(9)
Projeler
18
39%
Arabuluculuk
6
0% / 33%
Süresi dolmuş
3
17%
Yüklendi
15
Geliştirici 15
Derecelendirme
(489)
Projeler
948
75%
Arabuluculuk
26
19% / 65%
Süresi dolmuş
100
11%
Meşgul
Yayınlandı: 1 makale, 6 kod
16
Geliştirici 16
Derecelendirme
(39)
Projeler
57
18%
Arabuluculuk
6
33% / 17%
Süresi dolmuş
1
2%
Serbest
Yayınlandı: 2 kod
17
Geliştirici 17
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
18
Geliştirici 18
Derecelendirme
(4)
Projeler
4
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
(250)
Projeler
460
26%
Arabuluculuk
140
20% / 59%
Süresi dolmuş
100
22%
Çalışıyor
20
Geliştirici 20
Derecelendirme
(45)
Projeler
46
24%
Arabuluculuk
34
9% / 85%
Süresi dolmuş
10
22%
Serbest
21
Geliştirici 21
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
22
Geliştirici 22
Derecelendirme
(5)
Projeler
4
0%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
2
50%
Serbest
23
Geliştirici 23
Derecelendirme
(5)
Projeler
7
0%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
3
43%
Meşgul
24
Geliştirici 24
Derecelendirme
(294)
Projeler
469
39%
Arabuluculuk
100
41% / 23%
Süresi dolmuş
77
16%
Yüklendi
Yayınlandı: 2 kod
25
Geliştirici 25
Derecelendirme
(175)
Projeler
225
20%
Arabuluculuk
19
42% / 16%
Süresi dolmuş
0
Yüklendi
26
Geliştirici 26
Derecelendirme
(5)
Projeler
5
0%
Arabuluculuk
0
Süresi dolmuş
1
20%
Çalışıyor
27
Geliştirici 27
Derecelendirme
(246)
Projeler
253
30%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
28
Geliştirici 28
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
29
Geliştirici 29
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
Greetings, I'm seeking a price quote for the following EA description. 1) Short positions are opened after trades that have closed below the open of the trade. 2) Long positions are opened after trades that have closed above the open of the trade. 3) The base lot size plus the spread is applied for every trade that opens after the take profit has been reached. 4) Double the lot size of the previous trade plus
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I have an indicator i need automated i use it manually and it plots arrows. Can you automate it for my Ninjatrader8? Do you need to see file? Expert Ninjatrader Developer can Bid for this project
Project Overview We are seeking an experienced MetaTrader 5 (MT5) / MQL5 developer to design and build a production-ready Expert Advisor intended for live trading with capital at risk . This is not a hobby, experimental, or retail-grade EA. We are only interested in developers with proven experience delivering robust, well-tested MT5 systems . Project Objective Design and implement a high-quality MT5 Expert Advisor
I want developer who know how to create bot which immediately transfer specific crypto coin deposit to one crypto address to another specific address in just a second,, if you know about this then only comment on this post
Hey bro, can you help with NT8. On a vps, multiple algos and prop account but the strategies keep getting out of sync, going from true to false for no reason….. mid trade it pops errors.The algo codes are locked… other than that it’s open VPs, NT8 and strategy is open You will notice in the strategies xml that there are standard, then 100k and 50k versions…… Also I did version that are in strategy labeled "Apex"
Hello Developers, I need ready made MT5 HFT Gold Scalper. Must pass in backtesting lower DD work with minimum $50 if you have ready made scalper than send file for Demo test and than we Final the deal. Thanks
I would like to create an indicator for my strategy on trading view , my strategy involves a liquidity sweep , wick or candle body closure , this needs to happen inside a higher time frame pd array such as a fair value gap that’s atleast 5m + and there needs to be an inversion fair value gap for my entry , I want the fair value gaps on all time frames so I can see them all on the 1 minute chart but i want the fair
can you help me with making a simple tradingview/script that draws boxes labeling consolidation areas according to my specifications? IF anyone can help with this kindly do well to bid to this so we can discuss more about the project thanka

Proje bilgisi

Bütçe
30+ USD