Drawdown protection EA using hedge needed

MQL4 Asesores Expertos Fórex

Trabajo finalizado

Plazo de ejecución 13 días
Comentario del Cliente
It was great to work with Shahzad
Comentario del Ejecutor
Good customer

Tarea técnica

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.





Han respondido

1
Desarrollador 1
Evaluación
(365)
Proyectos
412
36%
Arbitraje
35
26% / 57%
Caducado
63
15%
Libre
2
Desarrollador 2
Evaluación
(2)
Proyectos
5
0%
Arbitraje
2
0% / 50%
Caducado
1
20%
Libre
Solicitudes similares
John 600+ USD
The background of the image is black, which provides a clear contrast to the red text. A thin white line is visible at the top of the image, adding a subtle visual element to the design. Overall, the image effectively conveys its message through a simple yet effective design
//+------------------------------------------------------------------+ //| MyEA.mq5 | //| Fibonacci + Trend + Volatility Strategy | //+------------------------------------------------------------------+ #property copyright "YourName" #property version "1.00" #property strict input double LotSize = 0.1; input int MaxTradesPerDay = 5; input int ATR_Period = 14; input int
Hello, I need a professional developer who can handle my project perfectly. you must understand how to create and set up a server on mt5 platform I don't need a time-waster. If you don't understand, please don't send an offer, my budget is between the range of 50$, full requirements and video explanation will be sent through the inbox. It is needed urgently, kindly contact me now
THE STUDY : Add 4 study overlay in the input settings and color bar based on alert condition is sg1=1 I want it to trail the order instead of flat to avoid too much slippage What I do is the 15-Minutes chart I have filter also in the 10tick chart if those filters are meet the bar is green or red using sierrachar color bar based on alert condition I overlay the 4 in the study in the 6tick Renko chart that will
Hello developers. I need a good EA for trading and prop firm pass tools. Rules are simple: 1. No scalp OR small pip profit 2. No grid or martingale 3. I need demo file to test it in Backtest 4. End of job I want the EA source code
I am looking for a MetaTrader 4 (MT4) developer to create a scalping-based Expert Advisor (EA) for the US30 index. The EA will be based on pending orders with trend filtering and equity-based risk management. It should include virtual SL/TP, support multiple pending orders, and be optimized for high-volatility sessions. Only experienced developers with proven MT4 EA development should apply
Contact me only if you can handle my project. I'm looking for a custom MT4 or MT5 server setup that looks and feels exactly like a live trading account but gives me full control over the environment. CONTACT ME IF YOU CAN HANDLE THIS TYPE OF PROJECT ONLY
Hi, I’m looking for an experienced MQL5 developer to replicate an Expert Advisor I currently use for Forex. I don’t have the source code, but I do have all the input settings, behavior structure, and detailed backtesting of how the system should operate. ✅ Basic features the EA should include: Entry logic based on simple technical indicators (e.g., moving average). Take Profit and Stop Loss system using ratios (e.g
I want you to build an Expert Advisor (EA) that mirrors trades between two accounts in opposite directions , maintaining identical TP and SL distances in pips with adjustable lot sizes. The EA logic is as follows: ✅ Core Requirements • EA monitors trades opened on Account A . • When a trade is opened on Account A: • An opposite direction trade is opened on Account B . • The TP and SL distances (in pips) are
Create a ZigZag indicator, which is constructed based on extreme values determined using oscillators. It can use any classical normalized oscillator, which has overbought and oversold zones. The algorithm should first be executed with the WPR indicator, then similarly add the possibility to draw a zigzag using the following indicators

Información sobre el proyecto

Presupuesto
30 - 80 USD
Para el ejecutor
27 - 72 USD
Plazo límite de ejecución
de 7 a 20 día(s)