Specification

  • Cycle start

    • When there are no open orders for the EA (by magic+symbol) the EA immediately opens a new cycle using the last closed candle direction: if the current candle is bullish → open M1 BUY, otherwise M1 SELL. If the current candle is neutral, choose randomly. (Note that the attached file uses the last closed candle. Modify the EA so that it uses the bullishness, bearishness, or neutrality of the current candle)

    • Immediately after opening M1, place P1 in the opposite direction at the broker’s minimum pending distance. P1 lot = 3 × M1 lot (user input). M1 TP = 0.7 pips and P1 TP is at entry ± 0.7 pips (depending on direction) — but the P1 entry is at the minimum allowed distance.

  • Scenario (i)M1 wins before P1 triggers

    • When M1 is closed by TP, the EA deletes P1 (if still pending) and resets the cycle (immediate restart).

  • Scenario (ii)P1 triggers → M2 and M2 wins

    • If P1 triggers (fills) it becomes M2 (market). If M2 hits its own TP, the EA closes M1 and any pendings and resets.

  • Scenario (iii)P1 triggers (M2), M2 didn't win but price returns to M1 TP

    • If M2 is running and later M1 TP is reached, the EA:

      • Closes M1 (M1 awarded profit by broker),

      • Immediately places P2 as a pending order in the same direction as M1 at the broker minimum pending distance (P2 entry = Ask+minDist for buy, Bid-minDist for sell).

      • P2 lot is computed so that the cash profit when M3 (P2 when triggered) hits its TP will approximately offset or cancel the floating loss of M2, within CloseWithinPoints (3 points by default). The calculation uses MODE_TICKVALUE & MODE_TICKSIZE to turn points into cash and compute required lots. Lot is clamped/rounded to broker min/step.

  • When P2 triggers → M3

    • P2 becomes M3 (market); The EA checks combined floating P/L of M2 + M3 each tick; if combined P/L is within the CloseWithinPoints threshold, the EA closes both M2 & M3 and resets.

  • Safety & housekeeping

    • All lot sizes are clamped/rounded to broker rules (MODE_MINLOT, MODE_LOTSTEP, MODE_MAXLOT).

    • Pending distances respect MODE_STOPLEVEL .

    • Many debug logs & a periodic summary print are included.

    • The EA uses history-scanning (OrdersHistoryTotal) to reliably react to broker-side TP closures (so it can detect TP closures that removed tickets).

  • The issue with the EA is that it does not close trades according to the above specifications. The reset does not completely close all trades, some remain running when a TP is hit.






















































































































































































































    Responded

    1
    Developer 1
    Rating
    (8)
    Projects
    17
    41%
    Arbitration
    1
    0% / 100%
    Overdue
    3
    18%
    Working
    2
    Developer 2
    Rating
    (2)
    Projects
    2
    0%
    Arbitration
    0
    Overdue
    0
    Free
    3
    Developer 3
    Rating
    (10)
    Projects
    12
    8%
    Arbitration
    6
    33% / 33%
    Overdue
    2
    17%
    Loaded
    4
    Developer 4
    Rating
    (1)
    Projects
    0
    0%
    Arbitration
    2
    0% / 0%
    Overdue
    0
    Working
    5
    Developer 5
    Rating
    (255)
    Projects
    378
    25%
    Arbitration
    23
    57% / 22%
    Overdue
    1
    0%
    Loaded
    6
    Developer 6
    Rating
    (238)
    Projects
    244
    31%
    Arbitration
    0
    Overdue
    3
    1%
    Free
    Published: 2 codes
    7
    Developer 7
    Rating
    (5)
    Projects
    5
    0%
    Arbitration
    2
    50% / 0%
    Overdue
    1
    20%
    Free
    8
    Developer 8
    Rating
    (463)
    Projects
    908
    76%
    Arbitration
    25
    16% / 68%
    Overdue
    99
    11%
    Working
    Published: 1 article, 6 codes
    9
    Developer 9
    Rating
    (2)
    Projects
    2
    0%
    Arbitration
    0
    Overdue
    0
    Free
    10
    Developer 10
    Rating
    (170)
    Projects
    194
    42%
    Arbitration
    10
    10% / 40%
    Overdue
    9
    5%
    Free
    Published: 3 codes
    11
    Developer 11
    Rating
    (9)
    Projects
    9
    11%
    Arbitration
    1
    0% / 0%
    Overdue
    1
    11%
    Busy
    12
    Developer 12
    Rating
    (6)
    Projects
    6
    17%
    Arbitration
    0
    Overdue
    0
    Loaded
    13
    Developer 13
    Rating
    (12)
    Projects
    19
    42%
    Arbitration
    2
    0% / 100%
    Overdue
    3
    16%
    Working
    14
    Developer 14
    Rating
    (1)
    Projects
    2
    0%
    Arbitration
    1
    0% / 0%
    Overdue
    0
    Free
    15
    Developer 15
    Rating
    (48)
    Projects
    60
    22%
    Arbitration
    8
    38% / 38%
    Overdue
    5
    8%
    Free
    Similar orders
    Pocket option bot 40 - 80 USD
    Telegram Connection Options part 1. Custom – User enters their own connection details. 2. HEDGE TRADE (Default) – Connects to my source. 3. ONE DIRECTION (Default) – Connects to my source. HEDGE TRADE and ONE DIRECTION details are hidden from users. To use my signals, they must select one (HEDGE or ONE DIRECTION). Only one connection mode can be active at a time (no multiple sources). 2- make it able to receive
    Forex Trading Bot 30 - 200 USD
    Title: Forex Trading Bot (MT5 Expert Advisor) — EMA + RSI Strategy with Risk Controls Platform - MetaTrader 5 (MT5). Provide both compiled (.ex5) and source (.mq5). Markets & Timeframe - Primary currency pairs: EURUSD, GBPUSD, XAUUSD (gold). Developer may add other pairs upon request. - Primary timeframe: H1 (hourly). Should support user selection of timeframe via input parameters. Strategy Rules (core) 1
    I want to convert my mql4 code to mql5 , if anyone is capable to do it then contact me. I will share mql4 file to u and u have to convert it in mql5
    based on heikin ashi chart the EA must work as follows Buys when the first green (bullish) Heikin Ashi candle appears and enters on the next candle. Closes the buy when the first red (bearish) Heikin Ashi candle appears after a green one and exits on the next candle. Sells when the first red (bearish) Heikin Ashi candle appears and enters on the next candle. Closes the sell when the first green (bullish) Heikin
    Job description. I need a well experienced developer to do the following on my XAUUSD breakout strategy EA:- 1. Compile it.- Fix errors and warnings on the EA. 2. Make little modification And straighten the EA codes to enable the EA to be able to do backtesting and trade well in live or demo account
    To eliminate this difficulty, use the expert's example: EA 24658754 MAKE THE MODIFICATION IN THE EXPERTS' FILES: EA_MT4, EA_MT5 Add this: input bool ShowInfo = false ; // Show Info to Chart input ENUM_BASE_CORNER Corner = 1 ; // Info Corner input color Color_Info = clrAqua ; // Info Color Add this: //+------------------------------------------------------------------+ //| Print
    Job Description I am looking for a highly skilled MQL5 DEVELOPER and A TRADER to work on an MT5 Expert Advisor (EA) project. The main tasks will include: 1. Code Compilation & Optimization – Reviewing, compiling, and streamlining the existing EA code to ensure efficiency and stability. 2. Backtesting Setup & Execution – Running professional backtests to ensure the EA produces consistent, gradual profit growth curves
    I have 2 EXPERT ADVISERS whom I have helped to build a business through online coding. They are also profitable in testing but I did not get the result which I wanted. I want to improve them. I also want to add some more strategies in them so that I get the result which I want. Anyone who can help me, please send me a message, I provide you the details
    I used AI to develop my EA, and I need a professional developer to review my Expert Advisor code for MT5 (Python experience preferred). I will provide details once contact is initiated. Thanks. Benga
    Scalping bot 30 - 75 USD
    I am looking for a bot that can trade XAUUSD mainly. For a bot that can manage risk, Can manage profit. A bot that can change the lots from 0.01 to 0.02 and increase it depending on the account balance. The bot needs to be reliable and needs to work under any timeframe or in M5 o M15, Moreover that works and it can use any startegy, no matter the strategy, it just needs to work. I will provide a Demo account and I

    Project information

    Budget
    50+ USD

    Customer

    Placed orders2
    Arbitrage count0