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
                  (75)
                  Projets
                  227
                  72%
                  Arbitrage
                  6
                  100% / 0%
                  En retard
                  1
                  0%
                  Travail
                  3
                  Développeur 3
                  Évaluation
                  (609)
                  Projets
                  1418
                  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
                  I am looking for a MetaTrader 4 (MT4) developer to create a scalping-based Expert Advisor (EA) for the US30 index. The EA will be based on pending orders with trend filtering and equity-based risk management. It should include virtual SL/TP, support multiple pending orders, and be optimized for high-volatility sessions. Only experienced developers with proven MT4 EA development should apply
                  I have a working Python script that: – captures messages from several Telegram groups (using Telethon), – parses the content (BUY/SELL signals, TP/SL/BE), – logs the data into specific tabs in a Google Sheets file (via gspread). Problem: The script is unstable — it sometimes ignores messages from certain groups, misses replies, or silently stops processing after a few hours. It needs urgent verification and repair
                  want an aggressive scalping Expert Advisor (EA) for XAUUSD (Gold) on M1 timeframe with the following features: ✅ Uses a combination of EMA, RSI, and ATR for entry signals. ✅ Recovery Mode to increase lot size on confirmed setups to recover losses safely. ✅ Trailing Stop functionality with adjustable start and step parameters. ✅ Stop trading after daily target or daily loss limit is reached. ✅ Money Management (fixed
                  Plataforma Meta Trader 5 Apertura sesión de Londres. 2 horas de operativa diaria. Índices, especialmente DAX40. Marco temporal de 5 minutos. Apertura automática de operaciones con cierre automático en TP o SL. Operaciones tanto en compra como en venta. Se pueden tomar todas las operaciones posibles, pero no 2 operaciones a la vez, es decir se tiene que cerrar una operación para abrir otra. Si hay una operación
                  I want a simple expert Advisor based on macd and ema with patial profit taking based on risk to reward, breakeven also based on risk to reward and trailing also based on risk to reward. stoploss will mostly be placed on candlestick low but instances where there has been a series of candlestick lows, it will be placed on the furthest candlestick low. new trade will be opened when current trade is at breakeven
                  Contact me only if you can handle my project. I'm looking for a custom MT4 or MT5 server setup that looks and feels exactly like a live trading account but gives me full control over the environment. CONTACT ME IF YOU CAN HANDLE THIS TYPE OF PROJECT ONLY
                  Hi, I’m looking for an experienced MQL5 developer to replicate an Expert Advisor I currently use for Forex. I don’t have the source code, but I do have all the input settings, behavior structure, and detailed backtesting of how the system should operate. ✅ Basic features the EA should include: Entry logic based on simple technical indicators (e.g., moving average). Take Profit and Stop Loss system using ratios (e.g
                  i need a developer to code my smc concept only experienced traders contact us we need to finish the job in a short period of time its a simple smc concept all you need is to apply the entry model which i explain to you thank you
                  I want you to build an Expert Advisor (EA) that mirrors trades between two accounts in opposite directions , maintaining identical TP and SL distances in pips with adjustable lot sizes. The EA logic is as follows: ✅ Core Requirements • EA monitors trades opened on Account A . • When a trade is opened on Account A: • An opposite direction trade is opened on Account B . • The TP and SL distances (in pips) are
                  Hi, I need an EA for both MT4 and MT5 that pushes JSON data to an API. It needs to push all trade history data, plus the opened trades. It needs to push all account data (including leverage, account type etc), and for trades, it needs to push all the relevant information (open/close time and price, direction, tp/sl levels if set, swap, commission, magic, comment, ticket, etc.) It will send data on the follwing

                  Informations sur le projet

                  Budget
                  30 - 50 USD
                  Pour le développeur
                  27 - 45 USD
                  Délais
                  de 2 à 10 jour(s)