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
(17)
Projetos
20
5%
Arbitragem
6
17% / 17%
Expirado
3
15%
Carregado
2
Desenvolvedor 2
Classificação
(173)
Projetos
232
45%
Arbitragem
17
82% / 12%
Expirado
35
15%
Carregado
3
Desenvolvedor 3
Classificação
(185)
Projetos
190
27%
Arbitragem
0
Expirado
3
2%
Livre
4
Desenvolvedor 4
Classificação
(555)
Projetos
922
48%
Arbitragem
300
59% / 25%
Expirado
123
13%
Carregado
5
Desenvolvedor 5
Classificação
(229)
Projetos
404
33%
Arbitragem
52
37% / 40%
Expirado
146
36%
Carregado
6
Desenvolvedor 6
Classificação
(31)
Projetos
51
37%
Arbitragem
4
25% / 50%
Expirado
6
12%
Ocupado
7
Desenvolvedor 7
Classificação
(38)
Projetos
41
29%
Arbitragem
2
0% / 0%
Expirado
0
Trabalhando
8
Desenvolvedor 8
Classificação
(34)
Projetos
42
33%
Arbitragem
4
0% / 25%
Expirado
8
19%
Trabalhando
9
Desenvolvedor 9
Classificação
(3)
Projetos
4
25%
Arbitragem
1
0% / 0%
Expirado
0
Ocupado
10
Desenvolvedor 10
Classificação
(40)
Projetos
86
13%
Arbitragem
30
30% / 47%
Expirado
35
41%
Carregado
11
Desenvolvedor 11
Classificação
(315)
Projetos
335
71%
Arbitragem
4
100% / 0%
Expirado
1
0%
Trabalhando
Pedidos semelhantes
Trade Entry Rule : 1 . New Arrow Higher or Lower Appear : Entry . (Range: {Input}) After Entry Trailing Stop Trails { Trail Step (Input) } 2 . Lot Size { Input } 3 . Take Profit { Input } 4 . Max Number of Trades { Input } 5 . Total Number of Trades per Entry { Input } ---------------------------------------------------------------------------- 6 . Spread Filter { Input }
Hello there, Am looking for an expert in coding mt4, mt5 EA and indicator, am a project manager who help people in getting there strategy or idea been convert to well performance EA or indicator by a professional programmer and developer, so if you are a professional and interested in working with me let talk in the comment so we can build a long business relationship together. THANK YOU
Hello. I need hft robot for mt5 that can pass kortana prop firm in less than 1 hour. If you have developed this hft robot please message me for discussion. I need to demo live the ea if its working on kortanafx. The more credentials the faster transactions
I'm looking for a profitable EA at least 5-10% per month profits . No Grid, Hedging, Martingle trading. 1 trade per pair as much as possible to avoid violations. Willing to give live demo backtest to test the ea performance . I'm willing to pay handsome amount for a premium quality EA. You can name your price if you have proven track record of your ea being used for prop firms and has been profitable for a long
Required an expert advisor for MT5 plateform based on Moving Average, with some cross over and retest settings, including some buttons on chart window. There are some conditional settings with this EA at different levels. You may offer your bid and I will share the complete strategy after, and will share a video explanation for this moving average trading system. Happy Bidding
I needed one Simple Following FIFO Rule, No Hedging, with panel box Grid based MT4 EA. only for really good understandable, giving time and high professional good quality Developer. I’ll sent Everything in detail, we can do good conversation through message step by step
Hi I have an indicator that I use within ThinkorSwim that helps me determine when a bullish or bearish trend is reversing and I would like to convert the indicator over to Ninja Trader 8. I've added a text file with the code of the indicator for you to review and provide me with an estimate for the work. I'm looking forward to hearing from you about the statement of work. Kind regards
Hello, My request is as follows: Write an MT4 robot (EA MT4) that automatically adds indicators and updates values in the indicator's input and then runs that indicator. Do not use chart templates. Do not use auto click. Thank! Exemple: MACD
I hope this message finds you well. I am in search of a FREE skilled developer to transform three indicators into a fully functional trading robot. These indicators consist of two MACD indicators, each displaying two colors (red and green), along with a RED arrow signal. Here are the specific requirements for the project: The robot should execute trades only when the RED arrow signal appears and both MACD indicators
Forex Advanced Risk Management : With the new Fixed Lot and Risk Percentage modes, tailor your trading to align with your risk tolerance. The system now allows you to define your risk down to minute detail, ensuring that each trade is in harmony with your financial strategy. Dynamic Trend Configuration : Version 2.0 comes with a refined algorithm selection that seamlessly adapts to market trends. Whether you choose a

Informações sobre o projeto

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

Cliente

Pedidos postados4
Número de arbitragens0