Drowdown based ea to monitor and prevent from drowdowning

指定

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)

 


反馈

1
开发者 1
等级
(2)
项目
3
0%
仲裁
8
13% / 88%
逾期
1
33%
空闲
2
开发者 2
等级
(16)
项目
35
23%
仲裁
4
0% / 50%
逾期
2
6%
工作中
3
开发者 3
等级
(329)
项目
515
19%
仲裁
35
46% / 31%
逾期
34
7%
工作中
4
开发者 4
等级
(24)
项目
26
73%
仲裁
1
0% / 100%
逾期
0
空闲
5
开发者 5
等级
(280)
项目
378
72%
仲裁
19
32% / 47%
逾期
16
4%
空闲
发布者: 15 代码
6
开发者 6
等级
(22)
项目
29
3%
仲裁
4
25% / 0%
逾期
3
10%
空闲
7
开发者 7
等级
(33)
项目
36
33%
仲裁
5
0% / 80%
逾期
0
工作中
发布者: 2 代码
8
开发者 8
等级
(1)
项目
4
0%
仲裁
5
20% / 40%
逾期
2
50%
空闲
9
开发者 9
等级
(8)
项目
9
33%
仲裁
1
100% / 0%
逾期
0
空闲
10
开发者 10
等级
(162)
项目
289
35%
仲裁
18
22% / 61%
逾期
43
15%
空闲
11
开发者 11
等级
(1)
项目
1
0%
仲裁
0
逾期
0
空闲
12
开发者 12
等级
(4)
项目
3
33%
仲裁
2
0% / 100%
逾期
0
空闲
13
开发者 13
等级
(51)
项目
71
37%
仲裁
4
25% / 75%
逾期
1
1%
工作中
发布者: 1 代码
14
开发者 14
等级
(13)
项目
23
39%
仲裁
8
0% / 50%
逾期
4
17%
空闲
15
开发者 15
等级
(511)
项目
978
74%
仲裁
27
19% / 67%
逾期
100
10%
空闲
发布者: 1 文章, 6 代码
16
开发者 16
等级
(39)
项目
59
20%
仲裁
6
33% / 17%
逾期
1
2%
空闲
发布者: 2 代码
17
开发者 17
等级
项目
0
0%
仲裁
0
逾期
0
空闲
18
开发者 18
等级
(4)
项目
4
0%
仲裁
1
0% / 100%
逾期
0
空闲
19
开发者 19
等级
(252)
项目
462
26%
仲裁
139
20% / 60%
逾期
100
22%
空闲
20
开发者 20
等级
(45)
项目
46
24%
仲裁
34
9% / 85%
逾期
10
22%
空闲
21
开发者 21
等级
(1)
项目
1
0%
仲裁
1
0% / 100%
逾期
0
空闲
22
开发者 22
等级
(7)
项目
6
0%
仲裁
4
25% / 75%
逾期
2
33%
空闲
23
开发者 23
等级
(24)
项目
32
38%
仲裁
4
50% / 25%
逾期
5
16%
工作中
24
开发者 24
等级
(298)
项目
478
40%
仲裁
105
40% / 24%
逾期
82
17%
已载入
发布者: 2 代码
25
开发者 25
等级
(216)
项目
284
20%
仲裁
28
61% / 14%
逾期
0
空闲
26
开发者 26
等级
(7)
项目
7
0%
仲裁
0
逾期
2
29%
空闲
27
开发者 27
等级
(258)
项目
269
29%
仲裁
2
50% / 0%
逾期
3
1%
工作中
发布者: 2 代码
28
开发者 28
等级
项目
0
0%
仲裁
0
逾期
0
空闲
29
开发者 29
等级
项目
0
0%
仲裁
0
逾期
0
空闲
相似订单
🚀 THE AIRAK PHASE 3: SUBSCRIPTION, PAYMENT, LICENSING & AFFILIATE SYSTEM Project: THE AIRAK Trading Assistant Development Phase: Phase 3 Project Owner: Kayemba Joseph Platform: MetaTrader 5 (MT5) 1. PROJECT OBJECTIVE Phase 3 is intended to transform THE AIRAK into a subscription-based trading software business. The system should allow customers to register, purchase subscriptions, receive automatically activated
Can you do a 5 year back test on /6e (fx euro). using 30 minute chart. Buy to open if macd histogram is above 0 line, or sell to open if macd histogram is below 0 line at 7:30 pm eastern standard time. Close position at 7:30 am next morning. Trade stays open for the entire 12 hour time. thanks, regarding backtest, forgot to mention $300 stop loss, and $500 take profit. Thank you
Hi! I have a general strategy concept, but I would like you to help develop and define the exact trading rules. The planned strategy is: * Instrument: MNQ futures * Platform: NinjaTrader 8 * M30 timeframe for identifying the main trend * M5 timeframe for trade entries * RSI and MACD indicators * Support and resistance levels * Fully automated entries and exits * Automatic Stop Loss, Take Profit and Trailing Stop *
Robert for life money's cash maximum 16mb the jobs future linuox Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading signals and acts
Okay, this is a big one for MT5 traders. Let's do it properly. In Python, the "Merge Tool" usually means 2 things: 1. *Merge MT5 data from different symbols / timeframes into one DataFrame* 2. *Plot it as a clean graph* Here is a complete working setup: *Step 1: Install* pip install MetaTrader5 pandas matplotlib mplfinance *Step 2: Full Code - Get MT5 Data + Merge + Plot* import MetaTrader5 as mt5 import pandas as pd
Experienced Trading Software Developer Needed – Multi-Platform Development Hello! I'm looking for an experienced developer to create a custom trading indicator and convert it into an automated trading bot for the following platforms: MT5 NinjaTrader 8 Quantower cTrader The plan is to develop the same indicator and trading bot for all four platforms, one after another. Project requirements: Custom trading indicator
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
I want NinjaTrader to behave like Tradovate. When I hover over a candlestick, the cursor should automatically snap to the center of that candle across all open charts. For example, when I hover over a 30-minute candle, the cursor should align with the center of the corresponding candles on the 15-minute and other chart timeframes. I also want vertical lines drawn on one chart to automatically align with the center of
Platform: MT5 only (no MT4 needed). Deliverable: an MT5 Expert Advisor with full source code (.mq5) that replicates the attached TradingView strategy (Pine Script v6, based on LuxAlgo's "ICT Killzones Toolkit" order blocks) as exactly as possible. Pasting the code into TradingView shows how it operates. I normally trade GBPUSD on the 5-minute chart Expected behavior: - Order block detection must match the Pine code

项目信息

预算
30+ USD