Hedge protect trade manager EA

MQL4 Esperti

Specifiche

Hedge protect trade manager EA

 

You should know the concept of Hedge and Break even.

 

I would like to have a hedge trade manager EA coded. This is an EA that are intended to protect other EAs trade instead of stop-loss, to prevent me from get a margin call. IE the EA does not close trades it self to get a profit, just open, manage and close the hedge-trade at break even. The EA should have two modes: Basket mode:  The EA should calculate all open orders lot-size in the currency off the chart that it is attached to, balance lot-size of buy and sell at a given percentage loss (equity loss specified in the input tab). Ie trade 1: selltrade 1,0 lot, trade 2: selltrade 0,2 lot. Trade 3: buytrade 0,1 lot – open 1,1 buy trade at the given drawdown. It should also plot a line on the chart where the hedge-trade will be opened and show the percent drawdown at the left side of line. I want to be able to “click and drag” this line to change the Hedge-trade opening position (if not as in the input) and the drawdown at the left of the line should change so I can see when I move the line.  Single mode: The EA should hedge each trade individually at a given pip distance (specified in the input tab). No line needs to be plotted.

 

In the inputs tab I want to insert:

1.  Magic number (will only manage trades with this magic number. If set to = 0, manage all trade of the currency attached to regardless of magic number).

2. Basket mode or Single mode

3.   Percent of balance drawdown where to open the hedge-trade (Basket mode) (if set to 10 = open hedge-trade equal of all open orders lot-size at loss of 10% of account equity balance).

4. Hedge in pips. Number of pips to hedge trade is opened (Single mode).

5. Hedge lot multiplier. If set to 2.  If the lotsize of the trade gone bad is 1,0 lot the hedge-trade should be 2,0 lot

6.  Step out of hedge (true/false. Set to true the hedge-trade will close out at break even. False the trade will stay locked and not close the hedge-trade).

7. Trail break even pips. When the hedge-trade hits break even and closes this is the distance in pips that the EA will put a new pending hedge trade and trail it to the initial hedge position. (Do not know if this is used in the Pippo EA. We could discuss how to solve the problem of protection from failed hedge if you take the job).

8. Use Hedge take profit percent. (set as true or false).

9. Hedge take profit percent (the same as a take profit but open a hedge-trade to lock in profit. If set to 100 = open trade when 100% of account balance in profit).

 

VERY IMPORTANT! The trade/trades should never be unprotected without hedge pending order or an open hedge.  This can occur when a hedge-trade is closed out at break even (there will be a gap equal to the spread).This problem seems to work nicely in the EA bellow.

So I would like to implement the “hedging” trade logic from this public EA” Pippov18.mq4” from Steve Hopwood (many thanks to a great guy), see attachment.

File:

MQ4
PippoV18.mq4
83.2 Kb

Con risposta

1
Sviluppatore 1
Valutazioni
(879)
Progetti
1394
67%
Arbitraggio
117
32% / 42%
In ritardo
215
15%
Gratuito
2
Sviluppatore 2
Valutazioni
(2)
Progetti
2
0%
Arbitraggio
13
8% / 92%
In ritardo
1
50%
Gratuito
3
Sviluppatore 3
Valutazioni
(25)
Progetti
54
37%
Arbitraggio
4
0% / 50%
In ritardo
22
41%
Gratuito
4
Sviluppatore 4
Valutazioni
(362)
Progetti
506
40%
Arbitraggio
147
18% / 72%
In ritardo
99
20%
Occupato
5
Sviluppatore 5
Valutazioni
(49)
Progetti
134
27%
Arbitraggio
62
13% / 53%
In ritardo
58
43%
Gratuito
6
Sviluppatore 6
Valutazioni
(10)
Progetti
17
53%
Arbitraggio
11
27% / 55%
In ritardo
4
24%
Gratuito
7
Sviluppatore 7
Valutazioni
(1862)
Progetti
3465
88%
Arbitraggio
73
40% / 15%
In ritardo
265
8%
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
Progetti
1
0%
Arbitraggio
0
In ritardo
1
100%
Gratuito
10
Sviluppatore 10
Valutazioni
(130)
Progetti
210
40%
Arbitraggio
90
20% / 43%
In ritardo
85
40%
Gratuito
11
Sviluppatore 11
Valutazioni
(121)
Progetti
134
66%
Arbitraggio
36
25% / 56%
In ritardo
22
16%
Gratuito
Ordini simili
Hello, I am looking for an indicator for MetaTrader 4 with the characteristics of the indicator shown on the page below. The indicator will be used as a signal provider for binary options. https://www.youtube.com/@trendify.binaryoptions Thank you very much, Luciano Gonzaga
ENGULFING TRAILING STOP GRID MQL5 I WANT AN AUTOTRADER WITH: - AUTOMATED ENGULFING UNLIMITED GRID ORDERS DISTANCE (IN POINTS). - ORDER LOT SIZE FREE MARGING PORCENTAGE (IN POINTS AND DECIMALS - 0.0000000000 UNLIMITED). - CLOSING ORDERS ONLY WITH PROFIT TRAILING STOPS (IN MINIMUM POINTS). -
Hi Auto trading robot in mt4 need to be develop simple price action strategy i can pay 30 usd for this interested coder can ask for more details then i can share strategy details who is ready to do it
i am looking for experienced programmers who can help me out make my expert with zero lags and run smoothly and develop it in any possible way that make the accuracy way higher i need in addition to make this expert advisor linked on mt4 and mt5 also link the ea to WhatsApp and telegram bot where it giveS signals of the expert on it
Mr fano 30+ USD
I want a robot that will teach me how to be a good Forex trader, teach me the necessary requirements,and also teach me how the save. And a robot that will understand my needs and support me when I'm lost or don't understand a certain thing.. The robot should have good trading skills. Thank you
I need help with this, Hi i want a bot that will send orders to efood delivery app If you have experience about message to get started immediately pls i need it urgent
I have multiple fx accounts with a couple of brokers and I use myfxbook to monitor daily/weekly/monthly profits of these accounts. I would like view all the accounts Daily/Weekly/Monthly profits on a single page which is not possible with myfxbook currently. If someone can code an EA (or an API) to send these details to a Web Request, I can code on the client side to display them. Details I would like to get: -
Hi I need a simple dashboard for manual trading. must be an EA and must work in the strategy tester but also on live/demo account and must allow me to open/close/partially close. required elements: instruments (A & B) lot size to open for each instrument ticket identification for the orders to amend (whatever is required to identify precisely the order to amend). open/close Close can be full or partial If partial the
Tenho um EA que preciso: Desde correções como conectar filtros existentes à lógica já inserida no sistema. insira novos filtros no ea com nova lógica e conecte-se com a lógica existente. Há várias pequenas tarefas a serem concluídas, gosto de fazê-las em partes para que haja uma avaliação adequada e depois passar para a próxima etapa. ea contém +6k linhas de código e está em português. Embora eu não entenda de
Fellow devs, I need help converting a futures trading bot from python into MQL5. Code base for the bot already exists, backtests in python look good, however I need to be able to backtest it on tick data with MT5. Would appreciate someone who has experience with futures bots specifically, and even better if you have experience with AMP brokers, and can provide guidance and improvement criteria. A point you note, I

Informazioni sul progetto

Budget
10 - 80 USD
IVA (25%): 2.5 - 20 USD
Totale: 12.5 - 100 USD
Per lo sviluppatore
9 - 72 USD
Scadenze
da 1 a 30 giorno(i)