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
(17)
Progetti
20
5%
Arbitraggio
6
17% / 17%
In ritardo
3
15%
Caricato
2
Sviluppatore 2
Valutazioni
(173)
Progetti
232
45%
Arbitraggio
17
82% / 12%
In ritardo
35
15%
Caricato
3
Sviluppatore 3
Valutazioni
(185)
Progetti
190
27%
Arbitraggio
0
In ritardo
3
2%
Gratuito
4
Sviluppatore 4
Valutazioni
(555)
Progetti
922
48%
Arbitraggio
300
59% / 25%
In ritardo
123
13%
Caricato
5
Sviluppatore 5
Valutazioni
(229)
Progetti
404
33%
Arbitraggio
52
37% / 40%
In ritardo
146
36%
Caricato
6
Sviluppatore 6
Valutazioni
(31)
Progetti
51
37%
Arbitraggio
4
25% / 50%
In ritardo
6
12%
Occupato
7
Sviluppatore 7
Valutazioni
(38)
Progetti
41
29%
Arbitraggio
2
0% / 0%
In ritardo
0
In elaborazione
8
Sviluppatore 8
Valutazioni
(34)
Progetti
42
33%
Arbitraggio
4
0% / 25%
In ritardo
8
19%
In elaborazione
9
Sviluppatore 9
Valutazioni
(3)
Progetti
4
25%
Arbitraggio
1
0% / 0%
In ritardo
0
Occupato
10
Sviluppatore 10
Valutazioni
(40)
Progetti
86
13%
Arbitraggio
30
30% / 47%
In ritardo
35
41%
Caricato
11
Sviluppatore 11
Valutazioni
(315)
Progetti
335
71%
Arbitraggio
4
100% / 0%
In ritardo
1
0%
In elaborazione
Ordini simili
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
I have Trading View pinescript indicator that I would like converting to an MT4 indicator, and i want it to be working in MT4 exactly the way it works in tradingview must work on any timeframe and without bugs, if you have the knowledge of the platform programming language and can make the conversion possible please kindly bid for the job. Sorry, forgot to add I need an alert added to the indicator when price reaches

Informazioni sul progetto

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

Cliente

Ordini effettuati4
Numero di arbitraggi0