A hedging EA for breakouts

MQL4 Experts

Spécifications

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545; min-height: 14.0px} li.li1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545} ol.ol1 {list-style-type: decimal} ul.ul1 {list-style-type: hyphen}

A hedging EA that works on any time frame and any pair


Inputs:

One trade at a time

One trade per day: toggle yes/no

Fixed lot - standard 0.1

Max spread - standard 5

Gap (pip difference between buy and sell orders): standard 10 pips

TP: standard 20 pips

SL: standard 30 pips


Strategy:

Setup:

    - Open a buy_stop_order_1 at price + “Gap/2” pips

    - Open a sell_stop_order_1 at price - “Gap/2” pips 


    First move:  

      - If buy_stop_order_1 is executed, cancel sell_stop-order_1, and open sell_stop_order_2 at same price with lot size x2

      - If sell_stop_order_1 is executed, cancel buy_stop_order_1, and open buy_stop_order_2 at same price with lot size x2

      - If any order hits TP directly, cancel other pending order.


      Here, if the buy order is executed and price goes up to TP, all good. If price comes down, we have a new sell stop order with added lot size to cover the buy order. Same idea if the sell stop order activates first and price doesn’t hit TP.


      Next moves, while TP is not hit in any direction and price floats inside SLs range:

      - If buy_stop_order_2 is executed, cancel sell_stop-order_2, and open sell_stop_order_3 at same price with lot size x2
      - If sell_stop_order_2 is executed, cancel buy_stop_order_2, and open buy_stop_order_3 at same price with lot size x2



      Example:


      Price is 1.0050

      - Set BSO_1 at 1.0055, Lot 0.1, TP 1.075, SL 1.025
      - Set SSO_1 at 1.0045, Lot 0.1, TP 1.025, SL 1.075


        If Price moves up and executes BSO_1:

        - Cancel SSO_1
        - Set SSO_2 at 1.0045, Lot 0.2, TP 1.025, SL 1.075


        Now, price can either:

        (1) hit TP:

        - Cancel pending SSO_2

          (2) or execute SSO_2:

          - Set BSO_2 at 1.0055, Lot 0.2, TP 1.075, SL 1.025


            Now, again, price can either:

            (1) hit TP:

            - Cancel pending BSO_2

              (2) or execute BSO_2:

              - Set SSO_3 at 1.0055, Lot 0.2, TP 1.075, SL 1.025


                Strategy repeats until price hits TP, with lot size increasing for the opposite pending order by 2 lot sizes every time. In this case, if price goes down and hit SSO_3, it would trigger a new BSO_3:

                - Set BSO_3 at at 1.0055, Lot 0.2, TP 1.075, SL 1.025


                  The direction of the last executed order always carries 1 lot size more than the opposite direction. If the trade changes direction, the pending order keeps the same balance over and over until TP hits.


                  Répondu

                  1
                  Développeur 1
                  Évaluation
                  (27)
                  Projets
                  27
                  26%
                  Arbitrage
                  0
                  En retard
                  0
                  Gratuit
                  2
                  Développeur 2
                  Évaluation
                  (77)
                  Projets
                  241
                  73%
                  Arbitrage
                  7
                  100% / 0%
                  En retard
                  1
                  0%
                  Gratuit
                  3
                  Développeur 3
                  Évaluation
                  (617)
                  Projets
                  1427
                  59%
                  Arbitrage
                  31
                  81% / 0%
                  En retard
                  10
                  1%
                  Gratuit
                  4
                  Développeur 4
                  Évaluation
                  (17)
                  Projets
                  17
                  18%
                  Arbitrage
                  5
                  20% / 60%
                  En retard
                  2
                  12%
                  Travail
                  Commandes similaires
                  Hedge Grid EA 50+ USD
                  I dont know anything about trading. I am looking for a mql5 code, which can place buy and sell at same time (Hedged grid EA). If any one have any such code developed already, please share me more details on it. I'm willing to purchase. Thank you
                  I need a MetaTrader 5 Expert Advisor that will: 1. Detect when any position from a group of trades (same symbol, same entry price) closes in profit (TP1 hit). 2. When the first profitable close of a group occurs, automatically move the SL of all remaining open positions in that group to their entry price (breakeven). 3. The groups will be opened by a separate EA (such as a signal copier), so no trade opening logic
                  hello great developer Hi! I have a fairly simple tradingview script I need ported over to cTrader for a trading bot I am looking for a developer to build a simple ORB (Opening Range Breakout) trading strategy . Requirements: ORB calculation and breakout entries (long & short) Static stop loss based on the signal candle Fixed risk–reward take profit Risk calculator to automatically size positions correctly Follow-up
                  I need a custom MT5 Expert Advisor. Timeframe: M15 Strategy Logic: 1. Detect Change of Character (CHoCH) / Break of Structure (rule-based approximation). 2. Identify inducement (liquidity grab) before BOS. 3. Mark POI zone based on last impulsive move. 4. Apply Fibonacci on the impulse leg. 5. Only trade if price enters Fibonacci Golden Zone (0.618 – 0.786) inside POI. 6. Wait for Pin Bar inside the zone. - Long
                  Должность: Пользовательский советник MT5 для стратегии пробоя максимумов/минимумов на свечных графиках. Описание/требования к должности: Здравствуйте! Мне нужен пользовательский советник (Expert Advisor, EA) для MetaTrader 5 , основанный на простой стратегии пробоя свечей. Советник должен строго соответствовать следующим правилам: 1. Условия покупки: Откройте ордер на покупку , когда текущая цена закроется выше
                  Hello! I'm looking for an EA to help me pass a prop firm challenge. I know very little about this, so I have practically no demands. Any EA that sort of works is fine. Let me know what you've got. Thanks in advance
                  //+------------------------------------------------------------------+ //| XAUUSD Ultimate Institutional EA | //| Features: | //| - True swing-based market structure | //| - BOS sniper entries on M5 | //| - Liquidity sweep filter | //| - Partial TP + breakeven | //| - Visual BOS, swings, liquidity
                  MetalFlow EA 70+ USD
                  I need a MetaTrader 5 Expert Advisor built to trade metals only: XAUUSD, XAGUSD, XPDUSD, and XPTUSD. The EA should be trend-based using moving averages and RSI, enter on pullbacks, allow only one trade per symbol, and use strict risk management with volatility-based stop loss and 2:1 reward-to-risk. It should trade only during active market hours, include spread filtering, auto lot sizing, and be lightweight and
                  Overview I need an MT5 Expert Advisor (MQL5) for a mechanical trading system . It is a hedging account and must run as a true 3-position (3-leg) system (3 separate positions), not partial closes. The EA must match my rules exactly and behave consistently in Strategy Tester and live charts (bar-close signal logic, no forward-looking). Timeframe / Execution Signal timeframe: input All signals are evaluated on
                  strategy is as follows market gold, timeframe 1 hour. for buys once a candlestick closes 10 pips or lower away from candlestick high. for sells once a candlestick closes 10 pips or lower away from candlestick low, the stop loss is 100 pips and he take profit is two things one 500 pips or for buys once candlestick closes 10 pips or lower away from low of candle stick, and sells once candlestick closes 10 pips or lower

                  Informations sur le projet

                  Budget
                  30 - 50 USD
                  Délais
                  de 2 à 10 jour(s)