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
등급
(17)
프로젝트
21
5%
중재
6
17% / 17%
기한 초과
3
14%
로드됨
2
개발자 2
등급
(173)
프로젝트
232
45%
중재
17
82% / 12%
기한 초과
35
15%
로드됨
3
개발자 3
등급
(185)
프로젝트
190
27%
중재
0
기한 초과
3
2%
무료
4
개발자 4
등급
(557)
프로젝트
924
48%
중재
301
59% / 25%
기한 초과
123
13%
로드됨
5
개발자 5
등급
(229)
프로젝트
404
33%
중재
52
37% / 40%
기한 초과
146
36%
로드됨
6
개발자 6
등급
(32)
프로젝트
53
36%
중재
4
25% / 50%
기한 초과
6
11%
로드됨
7
개발자 7
등급
(38)
프로젝트
42
31%
중재
2
0% / 0%
기한 초과
0
작업중
8
개발자 8
등급
(34)
프로젝트
42
33%
중재
4
0% / 25%
기한 초과
8
19%
작업중
9
개발자 9
등급
(4)
프로젝트
5
20%
중재
1
0% / 0%
기한 초과
1
20%
로드됨
10
개발자 10
등급
(40)
프로젝트
86
13%
중재
30
30% / 47%
기한 초과
35
41%
로드됨
11
개발자 11
등급
(316)
프로젝트
336
71%
중재
4
100% / 0%
기한 초과
1
0%
작업중
비슷한 주문
Hello developer, I just wanted to know if you have made a profitable Supply and Demand indicator Contact me let discuss and start fully immediately .i will be looking for great developer soon Best regards
Hi, I would like to have some functionality of an existing trade manager amended, and some new functionality added in order to suit my needs. The existing trade manager is free, so there are no licensing issues to worry about. However, I only have the .ex4 file, so you would need to decompile it first. I have attached the file here for you to see. This original manager was written for the exact strategy I trade by
Hello, I am in need of an expert to help me convert my tradingview pinescript to mt4, I will attach the file, But for now, I only got $15 for this project and the only payment method I can use right now is crypto, I will send it to you through crypto, Also I need someone that is ready to work because I still have lot of projects I will need him to do for me
THE GOAL OF THIS PROJECT IS TO DEVELOP AN EXPERT ADVISOR THAT OPERATES AUTOMATICALLY DURING MARKET OPENING SESSIONS,FOCUS EN FOREX ,CRYPTOCURRENCIES ,STOCKS, AND GOLD. BELOW ARE THE SPECIFIC REQUIREMENTS the EA should be able to analyze the 20 period and 200 period moving averages as part of its entry and exit estategy implementation of an order blockis required to allow the EA to open and close positions efficiently
EA for MT4 SUMMARY: The robot uses a Moving Average (MA) with 6 Levels (3 Levels above the MA and 3 Levels below the MA). It does not use other indicators. The robot will make transactions only when the price reaches these Levels, under certain conditions. No trades are made when the price reaches the MA. MA period and distance for Levels are adjustable! It is a semi-adjustable robot with many variables, which will
Liquidity sweep reversal EA based on Williams fractal with risk & trade management parameters build in should include following section in EA: entry parameters risk management trade management all based on given instructions
High I’m looking for someone to create a simple EA for MT4 that trades in 2 timeframes the 5 min and the 15 min chart with the trend and enters on pin bars with some conditions that I will specify if the job is taken but nothing complicated. Timeframe 5 min Chart and 15min chart simultaneously It looks to enter on the 5 min or in the 15 min chart it does not look for higher timeframe, they are the same condition for
I'm looking for someone who will take the source code of an existing trading bot and make some adjustments and tweaks to it. Mostly is about changing the UI and basic default parameters. No need to change the algorithm itself. The result must be a file that I can install as any other expert advisor in the MT4 terminal. For now I can share the more detailed task in my video
Hello I have purchased an EA from MQL market. The name of the EA is "Eternal Profit" and it works on MT4 only. Its available in market and you can still find it to run DEMO. Though I have purchased the EA but its not working properly for XAUUSD pair owing to some inherent programming issues in the EA. The same EA is working good on currency pair. The key issue is the decimal place in in the pair. Its designed for
I want to build a Trade Manager Panel Trade Manager Panel Requirements for MT4 1. Overview: The trade manager panel for MT4 is designed to provide me with efficient management of trades on individual charts/symbols. It consists of two main parts: Displaying information on currently running orders. Providing functionalities for setting and activating stop loss (SL), take profit (TP), and break-even (BE) levels

프로젝트 정보

예산
50+ USD
VAT (21%): 10.5 USD
총: 61 USD
개발자에게
45 USD
기한
에서 2  4 일

고객

넣은 주문4
중재 수0