NEED EA for hedging trades

MQL5 Experts

Job finished

Execution time 1 day
Feedback from customer
really great developer
Feedback from employee
Prompt, Good communication clear on specifics

Specification

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.


Responded

1
Developer 1
Rating
(395)
Projects
556
41%
Arbitration
30
57% / 3%
Overdue
57
10%
Free
Published: 11 codes
2
Developer 2
Rating
(22)
Projects
21
10%
Arbitration
4
25% / 75%
Overdue
0
Free
3
Developer 3
Rating
(329)
Projects
515
19%
Arbitration
35
46% / 31%
Overdue
34
7%
Working
4
Developer 4
Rating
(33)
Projects
35
20%
Arbitration
5
40% / 40%
Overdue
0
Free
Published: 1 code
5
Developer 5
Rating
(75)
Projects
111
50%
Arbitration
26
31% / 50%
Overdue
9
8%
Free
Published: 1 article
6
Developer 6
Rating
(22)
Projects
25
24%
Arbitration
5
20% / 80%
Overdue
1
4%
Free
Published: 6 codes
7
Developer 7
Rating
(85)
Projects
174
44%
Arbitration
3
100% / 0%
Overdue
5
3%
Free
Published: 1 code
8
Developer 8
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
9
Developer 9
Rating
(45)
Projects
91
13%
Arbitration
34
26% / 59%
Overdue
37
41%
Free
10
Developer 10
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
11
Developer 11
Rating
(7)
Projects
6
33%
Arbitration
7
0% / 71%
Overdue
0
Free
Similar orders
I am looking to acquire an EXISTING and PROVEN MetaTrader 5 Expert Advisor. I am NOT looking for someone to develop a random new strategy from scratch. The objective is to find a robust EA with an existing track record, verify its performance and robustness, and purchase the MQL5 source code together with clearly defined commercial rights. MAIN REQUIREMENTS The EA should meet most or all of the following
I need a simple MT5 Expert Advisor (MQL5) programmed exactly according to the following rules. The EA is a continuous candle-direction reversal strategy. Candle signal: Close > Open = BUY signal Close < Open = SELL signal Close = Open = no change Trading logic: After each candle has fully closed, use that completed candle to determine the required trade direction. The signal is acted upon at the opening of the
Looking to acquire an existing, proven EA. Not looking for new strategy development. REQUIREMENTS — non-negotiable: Minimum 12 months verified LIVE history (Myfxbook or MQL5 Signals, real money — not demo, not backtest) Hard stop loss on EVERY trade, set at order placement NO martingale, NO grid, NO averaging into losers, NO lot multiplication after a loss Max historical drawdown under 30% Minimum 5 trades per
I want to develop a fully automated MetaTrader 5 trading bot focused primarily on EUR/USD, inspired by the functionality of modern algorithmic trading systems. The bot should run 24/6 on a dedicated VPS and analyze the market continuously, refreshing approximately every second rather than waiting for candle closes. Key features: • Real-time volume and tick-level market analysis • Order-flow and liquidity analysis •
Hello, I trade on HFM MT5. Need SCALPING EA for scalping, budget $30. SYMBOLS: XAUUSD (GOLD), US30, NAS100, GER40, EURUSD TIMEFRAME: M1 and M5 PLATFORM: MT5, must work on HFM VPS STRATEGY: - EMA 9 crosses EMA 21 - RSI 14: BUY only if RSI >45, SELL only if RSI <55 - Bollinger Bands: Only trade when price returns inside BB after breakout - 1 trade at a time per symbol - SL: 150 points Gold / 100 points indices (must be
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and
I need an MT5 Expert Advisor for XAUUSD (Gold) running on an Exness account. STRATEGY LOGIC The exact entry and exit rules will be provided in writing before development starts. Please quote for a single rule-based strategy with clearly separated logic, so the rules can be adjusted later without rewriting the whole EA. RISK MANAGEMENT (this is the priority of the project) - Risk per trade as a percentage of account
Hi, I am looking for a marketer or affiliate to promote my Expert Advisor (EA). Offer Details: Partnership Model: Revenue Sharing / Performance-Based Commission. Duration: 6 Months of continuous profit-sharing from all generated sales/subscriptions. Profit Ratio: Flexible and open for negotiation depending on your marketing reach and experience (Details will be discussed via Private Message / DM). If you have a solid
Straddle bot v1.1.38 30 - 100 USD
any one can make straddle bot v1.1.38 its original made by yoforex.com Manual gold trading on the M15 chart demands constant attention. Price can break sharply in either direction or chop for hours. Many traders miss the move, enter late, or over-react when volatility spikes. Straddle EA V1.1.38 MT5 is built to handle that specific problem on XAUUSD by placing a multi-level pending-order grid on both sides of price
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando

Project information

Budget
40+ USD