The drawdown protection EA(DDP) will open a position(position_DD) when the tracked trade(trade_EA) made by another EA goes beyond the drawdown% threshold. when the trade_EA is closed by other EA or drawdawn% threshold is no longer being crossed by position_DD and position_DD is in the positive, at that point position_DD will be closed. The purpose of DDP is to protect the account from sudden and/or prolonged periods of large drawdown.
DDR will have the following behaviors:
1. Each instance of DDP will track particular trades opened by another EA based on the "EA magic number"(tracked_magic_number) and "currency pair"(tracked_trade_currency) parameters.
2. The chart the instance of DDP is open in will be the pair DDP uses in the hedge position.
3. DDP will protect from drawdown occurring in trade_EA in a particular direction, long or short,
based on two parameters: trade_EA_long and trade_EA_short, please see 3.1 - 3.4.
3.1. if both parameters are set to True DDP will track both long and short position made by other EA.
3.2. If trade_EA_long=True and trade_EA_short=False, DDP will only track long trades made by other EA that go into negative and cross the drawdown threshold.
3.3. If trade_EA_long=False and trade_EA_short=True, DDP will only track short trades made by other EA that go into negative and cross the drawdown threshold.
3.4. If trade_EA_long=False and trade_EA_short=False, DDP will not track any trades made by the other EA or open any new position_DD's. If position_DD or multiple positions_DD is/are already open it/they will continue to be managed by DDP as normal.
4. The direction of position_DD(hedge position) will be determined by 2 parameters: position_DD_long and position_DD_short, please see 4.1 - 4.4.
4.1. If both parameters are set to True, then position_DD will be in the opposite direction of trade_EA.
4.2. If position_DD_long=True and position_DD_short=False, DDP can only open long positions when trade_EA goes beyond the drawdown threshold.
4.3. If position_DD_long=False and position_DD_short=True, DDP can only open short positions when trade_EA goes beyond the drawdown threshold.
4.4. If position_DD_long=False and position_DD_short=False, DDP will not open any new positions in any direction. Any already open position_DD will be closed, all position opened by DDP will be closed.
5. The position_DD size will be determined using "position_multiplier" parameter, please see 5.1 - 5.3.
5.1. if "position_multiplier it is set to 1(default), the size of position_DD will equal that of trade_EA,
5.2. if the parameter is set to 1.25, then position_DD will be 25% larger than trade_EA.
5.3. if for example the parameter is set to 0.5 then position_DD size will be 50%/half of the size of trade_EA.
6. DDP must immediately close position_DD if trade_EA is closed by user or other EA or if the drawdown of trade_EA is below drawdown threshold and trade is in a positive direction. There may be multiple trade_EA being tracked and the management of each one must comply with the rules stated.
7. Position_DD must not be allowed to go into high drawdown at any point, the moment position_DD is opened a stop loss will be used, to determine the location of the stop loss the parameter "position_max_drawdown" will be used, this parameter is the maximum drawdown allowed for all position_DD's.
8. Position_DD will have in the comment section the order number for trade_EA in the folowing format: "Order: <Order number>", to allow behavior corroboration using trade history.
9. DDP will be able to track multiple trades opened by other EA, and apply rules discussed above to each position_DD.
10. Source code for the DDP should be provided once completed.
Solicitudes similares
Hello, I need an MQL5 Expert Advisor for MetaTrader 5. STRATEGY: Pair: XAUUSD / EURUSD Timeframe: M5 and M15 (selectable) 1. Wait for a strong rejection wick at Support / Resistance or Supply / Demand zone. 2. Wait for a Fair Value Gap (FVG) in the same direction. 3. Enter on FVG retest with confirmation candle close. 4. Only 1 trade at a time, no martingale, no grid. RISK MANAGEMENT: - Lot: Fixed lot or % Risk
We’re building our team for an upcoming crypto project and are looking for skilled professionals to help us move development forward. We’re especially interested in developers experienced with React.js and Node.js, with Web3 knowledge being a strong advantage. We plan to launch the MVP by the mid of Dec and complete the project by Christmas. Our budget is $20–$30 per hour, depending on experience and skill level
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
Overview: Build an MT5 Expert Advisor that receives webhook alerts from TradingView (RayAlgo indicator) across three timeframes ( H1, M5, M1 ) for XAUUSD and executes a dual-position strategy when all three conditions align, including strict FTMO server-request limits and automated pre-market-close trade closures. 1. Webhook Receiver & Multi-Timeframe State Logic: H1 Bias State: Updates to BULLISH or BEARISH upon
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
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win
a trading bot that can open and close trade by its self a stop loss of 1.2 lot size and good tp it should be able to learn trends and learn from its mistakes