Need a Hedging bots that would close all related orders when the sum of all open orders and hedge reaches the stated take profit

Termos de Referência

I need a bot that would buy or sell, then open a hedge if the trade is losing  

Create a hedging Expert Advisor (EA) in MQL5 for MetaTrader 5, which persistently opens counteracting trades based on the outlined logic, with features that manage the initiation and oversight of these trades, adhering to the defined multipliers for position sizes. The EA will terminate all trades once it achieves a collective take profit target.

Design of the Hedging EA:

1. Initialization: Establish initial settings, the base lot size, profit targets, trade type and the multiplier for escalating trades.

  • Two different sort of inputs for multipliers: first multiplier and subsequent multiplier
  • The hedging trades would be pending orders added one by one, created as soon as the previous one is traded,. so we only need to have one pending order at a time

2. Opening Initial Trades: Execute an opening buy or sell order according to the strategy's guidelines.

3. Hedging Logic: - If the first trade is a buy, then the initial hedge will be a sell. following hedges will switch directions (sell after buy, buy after sell), with the lot size of each new hedge doubling that of the one before.

  • If the first trade reaches tp, close and start all over again in the direction of the win
  • If the first trade reaches hedge distance, trigger a new trade in the opposite direction with the first multplier

4. Monitoring for Take Profit: - Constantly track the aggregate of all open trades. - Liquidate all positions when the total profit meets the pre-set take profit threshold.

5. Out of Margin option (Enable/Disable): Average all profitable vs losing trades and close them. - restart hedge on the remaining losing trade as per step 2

6. Need a trade panel for to show all the positions and balances.


Input

  • Lots size
  • Overall take Profit (Amount)
  • Trade type: Buy/Sell
  • Magic Number
  • Hedge Distance (Amount)
  • First Trade Multipliers
  • Subsequent Multipliers
  • <:Display Panel Settings:>

Kindest Regards



Arquivos anexados:

PNG
hedging.png
122.0 Kb

Respondido

1
Desenvolvedor 1
Classificação
(18)
Projetos
21
5%
Arbitragem
6
17% / 17%
Expirado
3
14%
Carregado
2
Desenvolvedor 2
Classificação
(174)
Projetos
232
45%
Arbitragem
17
82% / 12%
Expirado
35
15%
Trabalhando
3
Desenvolvedor 3
Classificação
(187)
Projetos
191
27%
Arbitragem
0
Expirado
3
2%
Livre
4
Desenvolvedor 4
Classificação
(558)
Projetos
926
48%
Arbitragem
301
59% / 25%
Expirado
124
13%
Carregado
5
Desenvolvedor 5
Classificação
(230)
Projetos
409
34%
Arbitragem
52
37% / 40%
Expirado
149
36%
Trabalhando
6
Desenvolvedor 6
Classificação
(32)
Projetos
53
36%
Arbitragem
4
25% / 50%
Expirado
6
11%
Ocupado
7
Desenvolvedor 7
Classificação
(43)
Projetos
48
29%
Arbitragem
2
0% / 0%
Expirado
0
Trabalhando
8
Desenvolvedor 8
Classificação
(35)
Projetos
43
33%
Arbitragem
5
0% / 20%
Expirado
8
19%
Trabalhando
9
Desenvolvedor 9
Classificação
(5)
Projetos
6
33%
Arbitragem
1
0% / 0%
Expirado
2
33%
Carregado
10
Desenvolvedor 10
Classificação
(41)
Projetos
87
13%
Arbitragem
30
30% / 47%
Expirado
35
40%
Carregado
11
Desenvolvedor 11
Classificação
(318)
Projetos
338
71%
Arbitragem
4
100% / 0%
Expirado
1
0%
Trabalhando
Pedidos semelhantes
I need an experienced developer who can turn my simply strategy to an EA on MT5 and MT4, will be using two EMAs and MACD and a risk management setting, please message me on time so we start work on it, waiting for you
I am looking for an EA that allows you to make profits every month. For this, before buying, I would like to have a history over more than one year to see how the EA behaves. I don't know if you're selling EAs that are already ready for use
I need someone who can help me optimise my trading strategy using two indicators which are swing arm atr indicator and ut bot alerts indicator. low budget job. Need to be able to pass ftmo challenge and keep trading after passing it. Also would like to have a day trading strategy not holding the trades for too long
I need to resolve some bugs that my indicator presents and pass it to mql5 The task will be done alone and only through anydesk, it is my way of working, if you do not have a problem with it, write to me privately to start working
I need a developer that can turn my strategy to an EA, We will be using Fib, some indicators and a risk management settings, please message me on time so we start work on it, waiting for you
I want a simple mt4 EA that monitors existing positions for TP and SL changes. If a new position is placed, it should automatically set the SL and TP based on the already open orders. Additionally, if I change the SL or TP of one order, it should also change the SL or TP of all the other orders accordingly. I will only be using this EA on one pair, of course
The logic is simple and sound. You just need to mark recent high and low on M5 timeframe and place buy and sell stop. I will provide proper instruction with word file and a ex4 file you just need to follow the instruction
Hi all, looking for somebody to build me a trading bot. Something that is good. Fairly new to trading but I know the basics and how everything runs. Due to working a 9-5 looking for a bot to help out with trades and etc
I am looking developer who can code pocket option data and insert in to costume candle Heikin in trading view. I want to trade otc as such its up to developer to get pocket option data stream and then make costume candle Heikin inside of trading view. Their will be a drop down menu in setting that will use to pick the otc pair. Developer must have way to chat on mobile app also. We will use
MT4 Bot 30 - 40 USD
I have the PDF in English if you are interested in seeing it and we can handle the conversation with a translator I will be looking for great developer to bid for this project

Informações sobre o projeto

Orçamento
50+ USD
IVA (21%): 10.5 USD
Total: 60.5 USD
Desenvolvedor
45 USD
Prazo
de 2 para 4 dias