Breakout & Hedge with Trailing Pending Stop Order

MQL4 EA

작업 종료됨

실행 시간 3 일
고객의 피드백
This guy is FANTASTIC in terms of understanding requirements, technical coding, meeting deadlines and communication. I would highly recommend him to you.
피고용인의 피드백
Nice working with him! Thank you!

명시

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


     


    응답함

    1
    개발자 1
    등급
    (174)
    프로젝트
    200
    12%
    중재
    39
    38% / 33%
    기한 초과
    5
    3%
    무료
    게재됨: 2 코드
    2
    개발자 2
    등급
    (401)
    프로젝트
    519
    24%
    중재
    61
    57% / 25%
    기한 초과
    60
    12%
    로드됨
    3
    개발자 3
    등급
    (298)
    프로젝트
    478
    40%
    중재
    105
    40% / 24%
    기한 초과
    82
    17%
    로드됨
    게재됨: 2 코드
    4
    개발자 4
    등급
    (87)
    프로젝트
    114
    26%
    중재
    7
    29% / 57%
    기한 초과
    5
    4%
    무료
    비슷한 주문
    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
    Mt5 to mt5 copier 30 - 50 USD
    Hi Team i am looking for the copier, to copy trades to and mt5 broker where the EA Trading is Disabled. when we setup a market trade copiers, it alerts EA Trading is Disabled by the broker. can we develop the copy trading EA which and operate in this environment
    Nayan4602 30+ USD
    """ Market entry on EUR/USD with 0.01 lot, using the account that is ALREADY logged in inside the running MetaTrader 5 terminal. """ import MetaTrader5 as mt5 # ---------------- Config ---------------- SYMBOL = "EURUSD" LOT = 0.01 SIDE = "BUY" # "BUY" or "SELL" DEVIATION = 20 # max slippage in points MAGIC = 234000 SL_POINTS = 0 # 0 = no stop loss, 200 = 20 pips on a 5-digit feed TP_POINTS = 0 # 0 =
    Hello, I’d like to develop an AI-powered analysis dashboard for , with a clear, easy-to-use design that works on mobile and web, or on the platform we agree on. I’d like it to include: Main dashboard: Show the market status, the latest data update, and the current signal, if available, including direction, entry price, stop loss, targets, and risk-to-reward ratio. AI signal explanations: Explain in clear language why

    프로젝트 정보

    예산
    30 - 55 USD
    기한
    로 2 일