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

Specifiche

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



File:

PNG
hedging.png
122.0 Kb

Con risposta

1
Sviluppatore 1
Valutazioni
(18)
Progetti
21
5%
Arbitraggio
6
17% / 17%
In ritardo
3
14%
Occupato
2
Sviluppatore 2
Valutazioni
(174)
Progetti
232
45%
Arbitraggio
17
82% / 12%
In ritardo
35
15%
In elaborazione
3
Sviluppatore 3
Valutazioni
(189)
Progetti
193
27%
Arbitraggio
0
In ritardo
3
2%
Gratuito
4
Sviluppatore 4
Valutazioni
(559)
Progetti
927
48%
Arbitraggio
301
59% / 25%
In ritardo
124
13%
Caricato
5
Sviluppatore 5
Valutazioni
(230)
Progetti
409
34%
Arbitraggio
52
37% / 40%
In ritardo
149
36%
Caricato
6
Sviluppatore 6
Valutazioni
(32)
Progetti
53
36%
Arbitraggio
4
25% / 50%
In ritardo
6
11%
Occupato
7
Sviluppatore 7
Valutazioni
(43)
Progetti
50
28%
Arbitraggio
2
0% / 0%
In ritardo
0
Gratuito
8
Sviluppatore 8
Valutazioni
(35)
Progetti
44
32%
Arbitraggio
5
20% / 20%
In ritardo
8
18%
In elaborazione
9
Sviluppatore 9
Valutazioni
(5)
Progetti
6
33%
Arbitraggio
1
0% / 0%
In ritardo
2
33%
Caricato
10
Sviluppatore 10
Valutazioni
(41)
Progetti
87
13%
Arbitraggio
30
30% / 47%
In ritardo
35
40%
Caricato
11
Sviluppatore 11
Valutazioni
(319)
Progetti
339
71%
Arbitraggio
4
100% / 0%
In ritardo
1
0%
In elaborazione
Ordini simili
Creating a customized Forex/Index Rob Bot based on price actions and candlestick formations requires advanced programming and algorithmic trading knowledge. Here is a high-level outline of the steps involved in developing such a bot: 1. Define Trading Strategy: Specify the specific price action and candlestick formations you want the bot to trade upon. This could include setups like engulfing patterns, doji
Hello, I need a solution that automaticaly sets my EA´s on the Charts after Metatrader did an Update. Since Metatrader is doing almost every month an Update, I have to manually put my EA´s back on the Chart and load the *.set Files, since the EA´s are not reloading. Is ther a way to do this automaticaly
Hello developers, I need a trading robot that works on martingale and antimartingale (functions that can be activated or deactivated, so the robot can work both as a martingale and as an antimartingale together). Initially the robot will work as an entry strategy on RSI, but it must be an open project as new entry strategies will be implemented in the future
HEDGING EA 70+ USD
LET ME KNOW IF YOU CAN DO THE JOB SERIOUS PROGRAMMER TO DO EA WITH STRICT DETAILS I HAVE A PICTURE OF THE STRATEGY I DO NOT WANT TO POST IT HERE
Requiero un EA basado en un indicador con las siguientes caracteristicas 1. Abra operacion con una señal que da el indicador, despues que la vela toque el indicador y cierre por encima del indicador 2. Que cierre operacion con SL y TP en % de perdida y ganancia 3, Que en cada señal abra un maximo de X operaciones y si pierde en la siguiente señal haga el doble operaciones y todas seran con el mismo lotaje Todos los
I need an ea created per my requirements according to my strategy. I am only willing to pay 50$ for this as fixed price. If you can do it, please message. No price negotiation please
More details when you apply I do not want to share all the details here. After your application, I will show all the details. Only serious experience developers with good reviews should apply. I take that into consideration
Develop a trading bot from a custom indicator The indicator gives colours for buy and sell . Bot should hold position for as long as colour persists Include money management and risk management
I need a simple automated Expert Advisor that can trade any of deriv indices except boom and crush or us30. Must at least be able to trade a 20$ account..i need it ASAP, referrals also welcomed
Hello i need someone who can help me optimise my trading strategy using two or three indicators from tradingview. Which are swing arm atr trend indicator 2 atr for stop loss and tp levels 3 ut bot alerts for extra confirmation to enter a trade. I would like to take trades with a high reward level

Informazioni sul progetto

Budget
50+ USD
IVA (21%): 10.5 USD
Totale: 60.5 USD
Per lo sviluppatore
45 USD
Scadenze
da 2 a 4 giorno(i)