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

Spezifikation

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



Dateien:

PNG
hedging.png
122.0 Kb

Bewerbungen

1
Entwickler 1
Bewertung
(17)
Projekte
20
5%
Schlichtung
6
17% / 17%
Frist nicht eingehalten
3
15%
Überlastet
2
Entwickler 2
Bewertung
(173)
Projekte
232
45%
Schlichtung
17
82% / 12%
Frist nicht eingehalten
35
15%
Beschäftigt
3
Entwickler 3
Bewertung
(185)
Projekte
190
27%
Schlichtung
0
Frist nicht eingehalten
3
2%
Frei
4
Entwickler 4
Bewertung
(556)
Projekte
923
48%
Schlichtung
301
59% / 25%
Frist nicht eingehalten
123
13%
Beschäftigt
5
Entwickler 5
Bewertung
(229)
Projekte
404
33%
Schlichtung
52
37% / 40%
Frist nicht eingehalten
146
36%
Beschäftigt
6
Entwickler 6
Bewertung
(32)
Projekte
53
36%
Schlichtung
4
25% / 50%
Frist nicht eingehalten
6
11%
Beschäftigt
7
Entwickler 7
Bewertung
(38)
Projekte
41
29%
Schlichtung
2
0% / 0%
Frist nicht eingehalten
0
Arbeitet
8
Entwickler 8
Bewertung
(34)
Projekte
42
33%
Schlichtung
4
0% / 25%
Frist nicht eingehalten
8
19%
Arbeitet
9
Entwickler 9
Bewertung
(3)
Projekte
4
25%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
0
Überlastet
10
Entwickler 10
Bewertung
(40)
Projekte
86
13%
Schlichtung
30
30% / 47%
Frist nicht eingehalten
35
41%
Beschäftigt
11
Entwickler 11
Bewertung
(316)
Projekte
336
71%
Schlichtung
4
100% / 0%
Frist nicht eingehalten
1
0%
Arbeitet
Ähnliche Aufträge
I have this EA that I have build with another developer. I tried backtesting and optimizing it but the test runs too slow. The EA gets instructions from a number of custom indicators to produce orders, I think that's what makes it to slow when testing. I need an experienced MQL4 developer who can dismantle the coded EA and rewrite it in a more logical way, without using the iCustom function. I want everything to be
Are you a coding maestro with a passion for optimizing indicators to blazing speeds? Look no further – I’m in search of a skilled developer to take my indicator to the next level! The Task: I need someone who can dive deep into the code, iron out any pesky errors, and optimize the indicator for lightning-fast responsiveness. Additionally, I require seamless integration of the Zigzag indicator, which currently resides
Dear Developer, I need you to create fxdreema project (EA) to implement a multicurrency math based trading with multiple entry modules. the system will be trading on daily basis with extra confirmation with some math from the higher TF, i use percentage of variation between candle close for a specific candles count like from the start of the day for M5 TF and also there will be some extra math to get the power of the
M Empire EA 30+ USD
Fundamental strategy,trade double bottom and double top enters after the break of structure,it must hold the trades for four to six ours and it must also trade London Session and New York Session
Hello dear developers! MT4 EA I want you to help me create a trading robot. I already had an unpleasant experience with a developer who said he would do it for me but didn't know how to do it. Thus he blocked some money from me. Now I want to see who knows how to program such a robot. For this reason, I will initially present only a fragment of this robot. Whoever knows how to correctly program this fragment
This job is for an MT5 EA to pass prop firm challenges (either 1 or 2 phases) and use in Funded Account (such as NOVA FUNDING, FTMO, MFF, MYFUNDEDFX etc.), and should also work on normal live accounts. Requirements for the EA: - trades well individually on: EURUSD, GBPUSD (preferably also on US30 and others) - must use Stoploss - max. daily Loss 4% - max. daily Drawdown 6% - max. account Drawdown 8% - Should not use
Hello great developer can you help me with MT5 indicator developing? Here is a document that describes the filters that will need to be added to my existing custom indicator. let me know if you have any questions or if anything in the document is unclear I will be looking for great developer to bid for this project Best regards
Here is a document that describes the filters that will need to be added to my existing custom indicator. let me know if you have any questions or if anything in the document is unclear kindly message me for the file
Trade Entry Rule : 1 . New Arrow Higher or Lower Appear : Entry . (Range: {Input}) After Entry Trailing Stop Trails { Trail Step (Input) } 2 . Lot Size { Input } 3 . Take Profit { Input } 4 . Max Number of Trades { Input } 5 . Total Number of Trades per Entry { Input } ---------------------------------------------------------------------------- 6 . Spread Filter { Input }
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

Projektdetails

Budget
50+ USD
MwSt (21%): 10.5 USD
Insgesamt: 61 USD
Für die Entwickler
45 USD
Ausführungsfristen
von 2 bis 4 Tag(e)

Kunde

Veröffentlichte Aufträge4
Anzahl der Schlichtungen0