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

指定

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



附加的文件:

PNG
hedging.png
122.0 Kb

反馈

1
开发者 1
等级
(18)
项目
21
5%
仲裁
6
17% / 17%
逾期
3
14%
已载入
2
开发者 2
等级
(174)
项目
232
45%
仲裁
17
82% / 12%
逾期
35
15%
工作中
3
开发者 3
等级
(187)
项目
191
27%
仲裁
0
逾期
3
2%
空闲
4
开发者 4
等级
(558)
项目
926
48%
仲裁
301
59% / 25%
逾期
124
13%
已载入
5
开发者 5
等级
(230)
项目
409
34%
仲裁
52
37% / 40%
逾期
149
36%
工作中
6
开发者 6
等级
(32)
项目
53
36%
仲裁
4
25% / 50%
逾期
6
11%
繁忙
7
开发者 7
等级
(43)
项目
48
29%
仲裁
2
0% / 0%
逾期
0
工作中
8
开发者 8
等级
(35)
项目
43
33%
仲裁
5
0% / 20%
逾期
8
19%
工作中
9
开发者 9
等级
(5)
项目
6
33%
仲裁
1
0% / 0%
逾期
2
33%
已载入
10
开发者 10
等级
(41)
项目
87
13%
仲裁
30
30% / 47%
逾期
35
40%
已载入
11
开发者 11
等级
(318)
项目
338
71%
仲裁
4
100% / 0%
逾期
1
0%
工作中
相似订单
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
Hi there! I am looking to automate one of my trading strategy, fully info will be provided via pdf If you are an experienced programmer please feel free to apply for the job. Just to make sure that i will not assign anyone before i see and test the file as i been scammed many times by now " assigning the job and loosing money because i didn't receive the files... " Also to mention that i am looking for a low budget

项目信息

预算
50+ USD
VAT (21%): 10.5 USD
总计: 60.5 USD
开发人员
45 USD
截止日期
 2  4 天