Breakout & Hedge with Trailing Pending Stop Order

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 3 días
Comentario del Cliente
This guy is FANTASTIC in terms of understanding requirements, technical coding, meeting deadlines and communication. I would highly recommend him to you.
Comentario del Ejecutor
Nice working with him! Thank you!

Tarea técnica

This EA strategy is simple and will be pretty easy for an experienced developer to code and uses TRAILING PENDING STOP BUY & SELL ORDERS to lock in profit and protect trades so you must know how to code these.  If you do a good job and there will be other EA strategies to work on for me.  

INPUT BOXS REQUIRED

Standard Inputs

Lot Type

Fix Lot

Equity Risk % for lot

Stop Loss [If 0 disabled)

Take Profit (If 0 disabled)

Magic Number

Strategy Related Inputs (PSO = PENDING STOP ORDER)

[1] # PSO PIPS FROM LIVE TRADE PRICE

[2] # PSO TRAILING PIPS

[3] TRADE COMMENT [ hedging trade number will be added automatically plus some space for me to write brief strategy details for trade analysis)

When the EA is dragged onto whichever chart timeframe is chosen (e.g. 1 Hour, 4 Hour, 1 Day, 1 Week, 1 Month) it will:

1. Open a BUY or SELL trade when the current High of Low of the timeframe is breached. 

2.Open a TRAILING BUY STOP ORDER or TRAILING SELL STOP ORDER  order in the opposite direction.  The EA will use the criteria based on input boxes [1]

3. The TRAILING STOP ORDER OPEN PRICE will will trail the open live trade price by the value entered into input box [2]

4. When the Live trade price starts to move in the opposite direction the TRAILING STOP ORDER will eventually trigger so there will be another live trade open.  At this point the EA will open another TRAILING PENDING STOP ORDER in the opposite direction and will close the original trade (opened in 1 above)

IMPORTANT INFORMATION

1. There will only ever be 1 open trade at any one time

2. Any open trade will be protected by a buy or sell stop order in the opposite direction 

3. I need this EA to test by midday (GMT) on 6 March 2020 

4. I will use this EA on FOREX and Indices (e.g. GBPUSD/EURUSD/JPYGBP S&P500, NASDAQ100, DAX)

5. I require both the source code AND EA files to be provided to me.  I’M LEARNING TO CODE AS A BEGINNER SO PLEASE MAKE NOTES WITHIN THE CODE SO I CAN SEE WHICH BIT OF CODE RELATES TO WHICH FUNCTION.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

WORKING EXAMPLES

EXAMPLE 1  [PSO = PENDING STOP ORDER]

[1] PSO OPENING TRADE PIPS FROM LIVE TRADE PRICE  - 10

[2] PSO TRAILING PIPS - 10

[3] TRADE COMMENT [ADDED AUTOMATICALLY BASED ON TIMEFRAME, AND VALUES ABOVE

I drag this EA onto the GBPUSD H4 chart.    The LOW of the timeframe is 1.38583  and the HIGH of the H4 timeframe is 1.39748

The price rises to 1.39749 so the EA opens a BUY trade at 1.39749 and a PENDING SELL STOP ORDER at 1.39649  (THIS IS BECAUSE THE VALUE OF INPUT BOX 1 IS 10 MEANING THAT THE PENDING SELL STOP ORDER IS PLACED 10 PIPS BELOW THE OPEN BUY TRADE PRICE)

The open BUY TRADE price moves up 10 pips so the PENDING  SELL STOP ORDER open price moves to 1.39749 (THIS IS BECAUSE THE VALUE OF INPUT BOX [2] is 10 MEANING THAT THE  PENDING SELL STOP ORDER OPEN PRICE TRAILS THE OPEN BUY TRADE BY 10 PIPS) The price moves up another 10 pips so the PENDING STOP ORDER open price moves  to 1.39849 

The open BUY TRADE price starts to fall and hits 1.39849 so the PENDING SELL STOP ORDER is triggered and the EA opens a SELL TRADE at 1.39849.  It also opens a PENDING BUY STOP ORDER at 1.39859 and closes the open BUY trade.

This process just repeats and repeats until I remove the EA from the chart


EXAMPLE 2  [PSO = PENDING STOP ORDER]

[1] PSO OPENING TRADE PIPS FROM LIVE TRADE PRICE  - 10

[2] PSO TRAILING PIPS - 10

[3] TRADE COMMENT [ADDED AUTOMATICALLY BASED ON TIMEFRAME, AND VALUES ABOVE

I drag this EA onto the GBPUSD H4 chart.    The LOW of the timeframe is 1.38583  and the HIGH of the H4 timeframe is 1.39748

The price rises to 1.39749 so the EA opens a BUY trade at 1.39749 and a PENDING SELL STOP ORDER at 1.39649  (THIS IS BECAUSE THE VALUE OF INPUT BOX 1 IS 10 MEANING THAT THE PENDING SELL STOP ORDER IS PLACED 10 PIPS BELOW THE OPEN BUY TRADE PRICE)

The open BUY TRADE price immediately starts to fall and hits 1.39649 so the PENDING SELL STOP ORDER is triggered and the EA opens a SELL TRADE at 1.39649.  It also opens a PENDING BUY STOP ORDER at 1.39749 and closes the open BUY trade.

This process just repeats and repeats until I remove the EA from the chart


     


    Han respondido

    1
    Desarrollador 1
    Evaluación
    (174)
    Proyectos
    200
    12%
    Arbitraje
    39
    38% / 33%
    Caducado
    5
    3%
    Libre
    Ha publicado: 2 ejemplos
    2
    Desarrollador 2
    Evaluación
    (401)
    Proyectos
    519
    24%
    Arbitraje
    61
    57% / 25%
    Caducado
    60
    12%
    Trabajando
    3
    Desarrollador 3
    Evaluación
    (298)
    Proyectos
    478
    40%
    Arbitraje
    105
    40% / 24%
    Caducado
    82
    17%
    Trabajando
    Ha publicado: 2 ejemplos
    4
    Desarrollador 4
    Evaluación
    (87)
    Proyectos
    114
    26%
    Arbitraje
    7
    29% / 57%
    Caducado
    5
    4%
    Libre
    Solicitudes similares
    Hi i'm looking for a trading bot that will trade on mt5/MQL5. The bot must be able to follow trend and works on any pair,chart and symbol. All distance measured with ATR. Trend from a higher time frame (default H1) with a moving average;UP/DOWN. Support and resistance found automatically from recent swing highs and low nothing drawn on the chart. Two kinds of trades, each can be switched on/off. S/R trades; price
    I am looking for an EA using MT5, trading XAUUSD on PuPrime-Live6, Standard account. LIMITATIONS No martingale, no grid. Start equity 1000 EUR. Leverate 1:500 Account in USD. PuPrime-Live6 All settings (risk, time, drawdown %, cooldown, lot size) shall be adjustable on init or backtest. VERIFICATIONS The EA needs to reach the profit goals on Actual Ticks, 100ms slippage in backtests for each month 2026. profit goal
    Hi All developers, I am looking for a EA which makes minimum 1:5 risk reward ratio with buy stop and sell stop orders placed based on candle open based or candle high low based or any other strategy .... If any having please share it for TEST, After proper TESTING only I will confirm the job... Please read this and respond
    I’m looking for an experienced Pine Script developer to build a custom H1 price-action indicator. Requirements: Calculate levels using H1 candles only. Use New York RTH (9:30 AM–4:00 PM), excluding extended hours. Create horizontal levels when candle direction changes; dojis break the sequence. Invalidate levels only when an H1 candle body crosses them, not wicks. Confirm levels after the RTH session closes to
    MT5 Trading EA — EMA/RSI Strategy with Risk Management and Trade Protection Hello, I'm looking for an experienced MQL5 developer to build a reliable Expert Advisor for MetaTrader 5 based on a simple trend-following strategy. My main priority is not adding as many features as possible. I want a clean, dependable EA that follows the specified rules consistently in both Strategy Tester and live/demo trading. 1. Trading
    MT5 to DxTrade, MT5 to NinjaTrader 8, MT5 to Tradovate - Does anyone have a working copy trading system for this - like already existing system for any of this platforms, don’t want dev saying they will build one, I want copier already working - MT5 to DxTrade (Good), To Tradovate and NT8 might be complex as they are future based. That is why I asked for working system and code. Deliver demo - with a week limit if
    To create a unique description that meets the freelance site's requirements, you can type the following: "I am looking for an experienced MQL5 developer to create a custom Forex Expert Advisor. The trading strategy should be based on a moving average crossover system, filtered by the Relative Strength Index indicator. The expert advisor needs to feature distinct strategy modules with adjustable settings for the
    Mt5 35+ USD
    //+------------------------------------------------------------------+ //| HedgingBasket_EA.mq5 | //| Copyright 2026, Trading Bot | //+------------------------------------------------------------------+ #property copyright "Trading Assistant" #property version "1.00" #include <Trade\Trade.mqh> CTrade trade; //--- Input parameters input group "=== Hedging Settings ===" input double InpLotSize = 0.01; // Lot Size for
    Hi All, I am looking for a EA which makes good profit, If any having please share it for TEST, After proper TESTING only I will make the payment, no cheating no fraud, Please do not waste the time also
    Custom MT5 Expert Advisor (EA) Development | MQL5 Automation Turn Your Trading Strategy into a Powerful Automated Trading System! Are you looking for a professional MT5 Expert Advisor developer to automate your trading strategy? I specialize in developing custom MetaTrader 5 (MT5) Expert Advisors and indicators using MQL5 , tailored to your trading rules, risk management preferences, and trading goals. Whether you

    Información sobre el proyecto

    Presupuesto
    30 - 55 USD
    Plazo límite de ejecución
    a 2 día(s)