NEED EA for hedging trades

MQL5 エキスパート

仕事が完了した

実行時間1 日
開発者からのフィードバック
Prompt, Good communication clear on specifics
依頼者からのフィードバック
really great developer

指定

https://www.notion.so/Hedging-Trades-1d6b97def6bd8093a063c4197e7beb7e?pvs=4 


Parameters

  1. Spot Gold Symbol

  2. Spot Future Symbol

  3. Initial Lot Size

  4. Hedge Distance

  5. Lot Sequence

  6. TP for Initial Trade

  7. TP Sequence For Hedge

    TP = Difference of all buy qty and all sell qty * pips

    Include Spread/swap/commission in all transactions

  8. Trigger pairs

    1. Trigger position count
  9. Trade Closure

    1. Last trade Position Count
      1. Add Futures as last trade
        1. Future TP
      2. Close last trade
  10. Parallel trades

    1. Max parallel trades

Initial Lot - 0.02; Hedge distance: 2

  1. Open Buy
    1. Set TP for Buy (TP for Initial Trade)
    2. If the price moves down to the hedge distance, trigger the Hedge trade with the first qty in lot sequence.
Price Buy Sell
100 0.02
  1. Price moves down
    1. Remove the TP for Buy; check for TP for the combined trade
    2. If the price comes to 100, close the initial buy at 0 loss/profit and trigger a buy with the next qty in the lot sequence.
Price Buy Sell
100 0.02
98 0.04
  1. Price comes back to 100
    1. Check for TP for the combined trade
    2. If the price moves back to 98, check if more hedge is to be triggered or pair trades to be triggered. If pair trades
Price Buy Sell
100 0.02 0.08
98 0.04
  1. The price comes to 98
    1. Close the inital sell and open pair trades
      1. New Sell = 2 * Inital Buy; ( 2*0.08=0.16)
      2. Buy = New Sell - (Inital Buy /2); ( 0.16 - 0.08/2)=0.12
Price Buy Sell
100 0.02 0.08
98 0.12 0.04 0.16

Case 1: Now check for the TP of all three trades based on the TP sequence. When the price goes above 100

Case 2: Close the 0.08 Buy and 0.16 Sell at 0 profit/loss when the price goes below 98 and trigger another pair trade if the trade count is not equal to the last trade position count.

Price Buy Sell
100 0.02 0.08
98 0.12 0.04 0.16
96 0.18 0.24

Case 1: Now check for the TP of all three trades based on the TP sequence. When the price goes above 98

Case 2: Close the 0.12 Buy and 0.24 Sell at 0 profit/loss when the price goes below 96 and trigger another pair trade if the trade count is not equal to the last trade position count.

Keep looping this until the last trade position is hit

If last trade position count is hit

  1. If Add Futures as last trade is ON

    Example here, close the buy and sell pairs and the last buy will be active, and to the same qty of the buy trigger, a gold futures at the same instance when closing the pairs.

    Price Buy Sell
    100 0.02 0.08
    98 0.12 0.04 0.16
    96 0.18 0.24
    94

After closing 0.12 and 0.24 we have 0.18 Buy will open 0.18 Futures sell.

Now check the Sum of Spot buy and futures sell = Futures TP is so close it or wait till that.

  1. If Close last trade is ON

    1. At 94 close 0.12 Buy; 0.24 sell and 0.18 Buy
    Price Buy Sell
    100 0.02 0.08
    98 0.12 0.04 0.16
    96 0.18 0.24
    94

Parallel trades

If Add Futures as last trade is ON

and it gets hedged with a futures

Restart a new cycle.

Based on the max cycles, we can keep adding new cycles.


応答済み

1
開発者 1
評価
(395)
プロジェクト
556
41%
仲裁
30
57% / 3%
期限切れ
57
10%
暇
パブリッシュした人: 11 codes
2
開発者 2
評価
(22)
プロジェクト
21
10%
仲裁
4
25% / 75%
期限切れ
0
暇
3
開発者 3
評価
(329)
プロジェクト
515
19%
仲裁
35
46% / 31%
期限切れ
34
7%
仕事中
4
開発者 4
評価
(33)
プロジェクト
35
20%
仲裁
5
40% / 40%
期限切れ
0
暇
パブリッシュした人: 1 code
5
開発者 5
評価
(75)
プロジェクト
111
50%
仲裁
26
31% / 50%
期限切れ
9
8%
暇
パブリッシュした人: 2 articles
6
開発者 6
評価
(23)
プロジェクト
26
27%
仲裁
5
20% / 80%
期限切れ
1
4%
暇
パブリッシュした人: 24 codes
7
開発者 7
評価
(85)
プロジェクト
175
44%
仲裁
3
100% / 0%
期限切れ
5
3%
暇
パブリッシュした人: 1 code
8
開発者 8
評価
プロジェクト
0
0%
仲裁
1
0% / 100%
期限切れ
0
暇
9
開発者 9
評価
(45)
プロジェクト
91
13%
仲裁
34
26% / 59%
期限切れ
37
41%
暇
10
開発者 10
評価
プロジェクト
0
0%
仲裁
1
0% / 100%
期限切れ
0
暇
11
開発者 11
評価
(7)
プロジェクト
6
33%
仲裁
7
0% / 71%
期限切れ
0
暇
類似した注文
Andrew 50 - 200 USD
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
Overview: Build an MT5 Expert Advisor that receives webhook alerts from TradingView (RayAlgo indicator) across three timeframes ( H1, M5, M1 ) for XAUUSD and executes a dual-position strategy when all three conditions align, including strict FTMO server-request limits and automated pre-market-close trade closures. 1. Webhook Receiver & Multi-Timeframe State Logic: H1 Bias State: Updates to BULLISH or BEARISH upon
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win
O Trading Ventures 30 - 2000 USD
a trading bot that can open and close trade by its self a stop loss of 1.2 lot size and good tp it should be able to learn trends and learn from its mistakes
JOB SPECIFICATION: Fully Automated ES/MES 5-Minute NY Opening Range Breakout EA 1. Project objective I am looking for an experienced trading algo developer to build a fully automated trading bot (EA) based on my specific 5-minute New York Opening Range Breakout strategy. The EA must identify setups, confirm breakouts, identify retests, confirm continuation, execute trades, calculate position size, place stop-loss and

プロジェクト情報

予算
40+ USD