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

Specification

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



Files:

PNG
hedging.png
122.0 Kb

Responded

1
Developer 1
Rating
(18)
Projects
21
5%
Arbitration
6
17% / 17%
Overdue
3
14%
Loaded
2
Developer 2
Rating
(174)
Projects
232
45%
Arbitration
17
82% / 12%
Overdue
35
15%
Working
3
Developer 3
Rating
(187)
Projects
191
27%
Arbitration
0
Overdue
3
2%
Free
4
Developer 4
Rating
(558)
Projects
926
48%
Arbitration
301
59% / 25%
Overdue
124
13%
Loaded
5
Developer 5
Rating
(230)
Projects
409
34%
Arbitration
52
37% / 40%
Overdue
149
36%
Working
6
Developer 6
Rating
(32)
Projects
53
36%
Arbitration
4
25% / 50%
Overdue
6
11%
Busy
7
Developer 7
Rating
(43)
Projects
49
29%
Arbitration
2
0% / 0%
Overdue
0
Working
8
Developer 8
Rating
(35)
Projects
43
33%
Arbitration
5
0% / 20%
Overdue
8
19%
Working
9
Developer 9
Rating
(5)
Projects
6
33%
Arbitration
1
0% / 0%
Overdue
2
33%
Loaded
10
Developer 10
Rating
(41)
Projects
87
13%
Arbitration
30
30% / 47%
Overdue
35
40%
Loaded
11
Developer 11
Rating
(318)
Projects
338
71%
Arbitration
4
100% / 0%
Overdue
1
0%
Working
Similar orders
ETF arbitrage robot 30 - 50 USD
👋 Hey Great Developer, can you help me with my project did you trading bot for ETF that ES and NQ futures If you have recent one so i can check it I will be looking for great developer to bid for this project
Hi, I'm looking for developer can modify entry logic for my existing EAs with source code.There is some minor fixes need to be done on the hedge strategy and trailing stop.All the details about the changes explained in attached document.Please take your time to read thru.Thanks
Hello there! the logic is simple, open XAUUSD M5 chart and measure recent high low (Swings) and place buy and sell stop that's it. I will help you with some materials
I'm in need of an experienced Meta 4 expert who can solve two specific problems and improve the current Martingale and Pyramid strategies within my EA. - Bug Fix: The EA is currently facing an issue where orders are not being executed correctly. This is causing a signal matching error and leading to potential losses. The primary task is to resolve this bug and ensure the EA executes trades accurately and as intended
ultra simple to use and 100% automated EA, you just need to drag it onto the chart XAUUSD M10 and indicate the percentage of risk you wish to take per trade. The EA uses a stop loss on each trade to secure all trades for maximum account security. EA does not use risky strategies, grids or martingales. Very profitable to use, and also have capability for copy trading. i am open to an exsiting Bot as long as it meets
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

Project information

Budget
50+ USD
VAT (21%): 10.5 USD
Total: 60.5 USD
For the developer
45 USD
Deadline
from 2 to 4 day(s)