Hedging EA for account protection

MQL4 Experts

Job finished

Execution time 20 days
Feedback from customer
Quite impressive at his attitude towards the job. He spent much time reading through the complicated specs and asking questions. Highly professional in good quality of work. Strongly recommended.
Feedback from employee
he is the best, in highest level of cooperation, will help you to fix any doubts about the project with patience.

Specification

Background:

I am running some martingale EAs which are profitable but have a potential to blow up accounts when market is trending in the opposite direction. One way to avoid that is possibly a hedging EA that hedges against open positions with floating loss when account drawdown (DD) reaches a certain percentage. The main purpose of this EA is NOT to take profit from hedging (although the EA can set a profit target optionally) but to save account equity during the deep DD period while waiting for the market to turn back. Very little profit or even a small loss is expected after hedging is auto closed at breakeven. However, this EA may allow me to manually close the hedge positions (if there is a need) and then auto re-open hedging positions if DD is still beyond the threshold level. In one word, keeping DD controllable and account safety is the what this EA is mainly intended to do.

Specifications:

  1. Hedging will automatically start at/after a specified symbol-based account DD percentage level, or at/after an overall DD percentage level.
  2. Hedging size must be based on the corresponding original position size, and it may be splittable.
  3. Each hedge position is opened with a mandatory SL and an optional TP. There is also a mandatory Hedge Threshold, passing which will set the SL of hedge position to breakeven.
  4. Hedge reopening. Two input values control when to reopen hedge. One input is Hedging Interval in Minutes to prevent hedge positions to be opened too frequently. Another is Hedge DD Level Incremental which increases the symbol/account threshold level in case hedge positions close in loss repeatedly. 
  5. New original positions may continue to open after hedge starts. Hedge positions for new original positions should be automatically opened.
  6. If not manually closed, the hedge positions will finally be automatically closed at breakeven or at the SL. If they are manually closed, they should be reopen automatically to prevent account from further drawdown.
  7. If any original position is closed (either by EA or manually), then the corresponding hedge position(s) will be automatically closed. The hedge position(s) here include both positions in Hedge Protection Group and positions in Hedge Profit Group. If the positions were split before, all split positions must be closed.
  8. A simple panel is required to show information like current symbol/account draw down in percentage, original lot size, hedged lot size, and also buttons to manually open and close hedge positions.
  9. Testing. Hopefully the EA can prove it works as expected in backtesting.


Note:


The above specifications are simplified. I have all the detailed explanation and examples for every aspect. However we may further discuss about the design and logic, if there are flaws and errors, to make the EA work perfectly.

Experienced developer is welcomed to work on this MT4 EA. If it works well practically, I will ask for a MT5 version from the same developer likely with the same price. 


Responded

1
Developer 1
Rating
(137)
Projects
160
23%
Arbitration
7
0% / 43%
Overdue
4
3%
Loaded
2
Developer 2
Rating
(7)
Projects
2
50%
Arbitration
6
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(800)
Projects
1371
72%
Arbitration
112
29% / 48%
Overdue
341
25%
Loaded
4
Developer 4
Rating
(41)
Projects
88
14%
Arbitration
30
30% / 53%
Overdue
36
41%
Working
5
Developer 5
Rating
(8)
Projects
18
17%
Arbitration
3
67% / 0%
Overdue
0
Free
6
Developer 6
Rating
(7)
Projects
14
21%
Arbitration
1
0% / 100%
Overdue
3
21%
Free
7
Developer 7
Rating
(63)
Projects
84
26%
Arbitration
23
22% / 48%
Overdue
23
27%
Free
8
Developer 8
Rating
(119)
Projects
169
38%
Arbitration
9
78% / 22%
Overdue
15
9%
Free
9
Developer 9
Rating
(17)
Projects
17
18%
Arbitration
5
20% / 60%
Overdue
2
12%
Working
10
Developer 10
Rating
(48)
Projects
80
28%
Arbitration
8
75% / 13%
Overdue
41
51%
Free
11
Developer 11
Rating
(1)
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en

Project information

Budget
500+ USD
For the developer
450 USD