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)
プロジェクト
20
5%
仲裁
6
17% / 17%
期限切れ
3
15%
取り込み中
2
開発者 2
評価
(173)
プロジェクト
232
45%
仲裁
17
82% / 12%
期限切れ
35
15%
取り込み中
3
開発者 3
評価
(185)
プロジェクト
190
27%
仲裁
0
期限切れ
3
2%
4
開発者 4
評価
(556)
プロジェクト
923
48%
仲裁
300
59% / 25%
期限切れ
123
13%
取り込み中
5
開発者 5
評価
(229)
プロジェクト
404
33%
仲裁
52
37% / 40%
期限切れ
146
36%
取り込み中
6
開発者 6
評価
(31)
プロジェクト
52
37%
仲裁
4
25% / 50%
期限切れ
6
12%
取り込み中
7
開発者 7
評価
(38)
プロジェクト
41
29%
仲裁
2
0% / 0%
期限切れ
0
仕事中
8
開発者 8
評価
(34)
プロジェクト
42
33%
仲裁
4
0% / 25%
期限切れ
8
19%
仕事中
9
開発者 9
評価
(3)
プロジェクト
4
25%
仲裁
1
0% / 0%
期限切れ
0
多忙
10
開発者 10
評価
(40)
プロジェクト
86
13%
仲裁
30
30% / 47%
期限切れ
35
41%
取り込み中
11
開発者 11
評価
(315)
プロジェクト
335
71%
仲裁
4
100% / 0%
期限切れ
1
0%
仕事中
類似した注文
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
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

プロジェクト情報

予算
50+ USD
VAT(付加価値税) (21%): 10.5 USD
合計: 61 USD
開発者用
45 USD
締め切り
最低 2 最高 4 日

依頼者

出された注文4
裁定取引数0