Drawdown protection EA using hedge needed

MQL4 Experts Forex

Job finished

Execution time 13 days
Feedback from customer
It was great to work with Shahzad
Feedback from employee
Good customer

Specification

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.





Responded

1
Developer 1
Rating
(365)
Projects
412
36%
Arbitration
35
26% / 57%
Overdue
63
15%
Free
2
Developer 2
Rating
(2)
Projects
5
0%
Arbitration
2
0% / 50%
Overdue
1
20%
Free
Similar orders
1. **Timeframe and Liquidity:** Focus on the 5-minute timeframe for liquidity analysis.(timeframe for liquidity should be editble) 2. **Candlestick MSS:** Monitor 1-minute candlestick patterns for entry signals.(should be editble) 3. **Swing Points:** Identify swing points using the high and low of the last three candles.(ict swimg high and low) 4. **Sell Setup:** - Wait for a 5-minute candle to take out the swing
Hello great developer Can you build this indicator for Quantower. If positive, then how much will it cost to make automated strategy from the indicator? i will be looking for great developer to build for this project best regards
Hello Greetings. I have a custom tradingview strategy I would like to convert to Metatrader 5 ( mt5 ) . I have the source code a and with me. Kindly bid if it is what you can do for me and let discuss about the project. Thanks
I need to change the comments on my Expert and learn how to license my Bot, I need some one that can help me with that please someon that really know about code and MQL4
have trade signals i get by telegram messaging, i would like to have a robot designed to read those message for trade inputs and open and close trades base on the signals Ea must be able to scan my telegram Message app Read signals sent Open trades on the mt4 and manage them to close Read signals every one minute (user changeable input) I also need the programmer to teach me how to install and make the robot work
I want to have an EA for MT4 from 2 simple indicators: 1st indicator is a supertrend with buy/sell signals 2nd indicator is a histogram that act as a filter out falls signals Options in the EA: 1. the input options of both indicators 2. turn filter (2nd indicator histogram) ON/OFF 2. Lot 3. TP/SL in pips (if input is 0, TP/SL is off) 4. Close trade with opposite signal ON/OFF delivery of EA with mql file
Attached to this post is the pinescript tradingview indicator code, i will also attach a link to the youtube explanatory video of how the indicator works on tradingview, i will like the exact thing on mt5, including the percentage prediction on each bar and the win loss counter ... it should work on both forex, stock and volatility indices on mt5 https://youtu.be/30FLWyEWroM?si=q9GpvJVHp-oyvsvZ // This work is
Hello! I want to develop an indicator for tradingview. Twice a day on 12H candle close the indicator will show a set of timeframes if they closed bullish or bearish. Show daybreak with a vertical line. Every 12H closure will show a box somewhere, preferably above/below that candle on all timeframes up to D1, clearly showing which candle is the close of 12H. The box will contain info about which timeframes closed
Hello, I hope you are well. I have an alert/s that I would like to provide buy and sell orders. The alerts are named *ENTRY* and *EXIT*, so the EA will know what to do. I would like the EA to have the following parameters: 1. Select the number of trades per currency pair 2. Time to trade: Time to start trading to time to end trading - I would like 4 different times to be able to be entered 3. Option to choose which
Hi there, I'm looking for an EXPERT ADVISOR developed in MQL4 for the Forex market. I would like to have it in white label to customise and promote with my brand. The software should have: ⦁ excellent win rate (>80%) ⦁ High risk/loss management ⦁ Linked to macroeconomic news ⦁ Based on ADX, Moving Average and RSI Features : ✅ Currency pairs to use: ALL ✅ Maximum lots per trade editable ✅ Lot Size Editable ✅ Magic

Project information

Budget
30 - 80 USD
For the developer
27 - 72 USD
Deadline
from 7 to 20 day(s)