Spécifications

  • 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.






















































































































































































































    Dossiers :

    Répondu

    1
    Développeur 1
    Évaluation
    (8)
    Projets
    17
    41%
    Arbitrage
    1
    0% / 100%
    En retard
    3
    18%
    Travail
    2
    Développeur 2
    Évaluation
    (2)
    Projets
    2
    0%
    Arbitrage
    0
    En retard
    0
    Gratuit
    3
    Développeur 3
    Évaluation
    (10)
    Projets
    12
    8%
    Arbitrage
    6
    33% / 33%
    En retard
    2
    17%
    Chargé
    4
    Développeur 4
    Évaluation
    (1)
    Projets
    0
    0%
    Arbitrage
    2
    0% / 0%
    En retard
    0
    Travail
    5
    Développeur 5
    Évaluation
    (255)
    Projets
    378
    25%
    Arbitrage
    23
    57% / 22%
    En retard
    1
    0%
    Chargé
    6
    Développeur 6
    Évaluation
    (238)
    Projets
    244
    31%
    Arbitrage
    0
    En retard
    3
    1%
    Gratuit
    Publié : 2 codes
    7
    Développeur 7
    Évaluation
    (5)
    Projets
    5
    0%
    Arbitrage
    2
    50% / 0%
    En retard
    1
    20%
    Gratuit
    8
    Développeur 8
    Évaluation
    (463)
    Projets
    908
    76%
    Arbitrage
    25
    16% / 68%
    En retard
    99
    11%
    Travail
    Publié : 1 article, 6 codes
    9
    Développeur 9
    Évaluation
    (2)
    Projets
    2
    0%
    Arbitrage
    0
    En retard
    0
    Gratuit
    10
    Développeur 10
    Évaluation
    (170)
    Projets
    194
    42%
    Arbitrage
    10
    10% / 40%
    En retard
    9
    5%
    Gratuit
    Publié : 3 codes
    11
    Développeur 11
    Évaluation
    (9)
    Projets
    9
    11%
    Arbitrage
    1
    0% / 0%
    En retard
    1
    11%
    Occupé
    12
    Développeur 12
    Évaluation
    (6)
    Projets
    6
    17%
    Arbitrage
    0
    En retard
    0
    Chargé
    13
    Développeur 13
    Évaluation
    (12)
    Projets
    19
    42%
    Arbitrage
    2
    0% / 100%
    En retard
    3
    16%
    Travail
    14
    Développeur 14
    Évaluation
    (1)
    Projets
    2
    0%
    Arbitrage
    1
    0% / 0%
    En retard
    0
    Gratuit
    15
    Développeur 15
    Évaluation
    (48)
    Projets
    60
    22%
    Arbitrage
    8
    38% / 38%
    En retard
    5
    8%
    Gratuit
    Commandes similaires
    I would like to have an MT5 EA created urgently. Code should be clean and well sophisticated with great post implementation support for at least 1 month. 📌 RSI Following Forex Trading Strategy – EA Specification Entry Rules Buy Entry: When RSI ≤ 5 and the candle closes → Open Buy trade. Sell Entry: When RSI ≥ 95 and the candle closes → Open Sell trade. RSI Length: Must be a user-modifiable field (default: 14)
    I need a professional MetaTrader 5 Expert Advisor built specifically for Gold (XAUUSD) scalping. The EA must be safe, reliable, optimized for small and large accounts, and include risk management, AI logic, and full trade control. It should allow both automatic trading and manual trades, with seamless management of both. Core Requirements: 1. Automatic Trade Execution Open trades with multiple lot sizes. Instant flip
    When you scroll down, you’ll see the box for requirements. Here’s a structure you can copy-paste and edit: Project Description I need a trading robot (Expert Advisor) for MetaTrader 5 (MQL5). The EA should execute trades automatically based on predefined strategy rules. Trading Strategy Rules Entry: [Explain your entry condition, e.g., “Buy when 50 EMA crosses above 200 EMA”] Exit: [Explain exit condition, e.g
    Hi i wanted to see what you will charge me to make a simple indicator in TOS which i can plot on my activity and positions section. Firstly I want a custom column where we can calculate the difference between the trade price and the current price of a stock, or future or option. so we we have the value in that column. Example NVDA - Trade price 140 - Mark is 190 so this new colum will show +50 and option we bought at
    Hello, I am looking for an experienced QuantConnect/Lean developer for a trading strategy project on futures (Micro Nasdaq – MNQ) with Interactive Brokers integration (paper + live). The strategy includes several key features: • Multi-timeframe analysis (signal validation across multiple horizons) • Integration of economic news/events into the trading logic • Advanced risk management (daily stop, position sizing
    Dear all, I have Ctrader Bot that runs correctly per one asset per day. I would like to change the settings so that the bot can be run on multiple assets on the same platform at the same day. For example, the current situation is that there will be one trade set up on GE30 in the morning, the bot will execute those trades correctly. Then I would like to run the bot on US30 later that day, in order to do that I have
    Please translate the FX Blue copy trading EA into Chinese EA. Additionally, the software must centrally manage newly installed and uninstalled MT4/MT5 platform directories to uniformly manage the association between multi-terminal login trading accounts and copy trading accounts. Existing program solutions are preferred; candidates with relevant project development experience will be given priority consideration
    Bainanans 500+ USD
    Bainanan good f المؤشر. ينبغي إضافة نقطة صفراء عند أعلى نقطة في الشموع في منطقة ذروة الشراء - وهي نقطة H. ينبغي إضافة نقطة خضراء عند النقطة المنخفضة للشموع في منطقة ذروة البيع - وهي نقطة L. إذا وُجدت نقطة L واحدة على الأقل بين نقطتي H، فابحث عن نقطة LL في الفترة الفاصلة بينهما. ستكون الشمعة ذات أدنى سعر قاع هي نقطة LL. بشكل عام، لا تُعتبر نقطة LL بالضرورة نقطة L. ابحث عن الشموع ذات أدنى سعر قاع. إذا كانت هناك نقطة H
    Døsh forex 30 - 200 USD
    I want a robot that will help me and trade the the robot will be very good I don’t want to loose money I repeat I don’t want to loose money
    We are looking for an experienced MT5/MQL5 developer to build a data bridge that connects an external market data feed (tick-by-tick from a third-party provider) into the MT5 platform. Requirements: Capture real-time tick-by-tick market data (bid/ask/last price, volume) from an external API (source: WebSocket/REST or DLL). Push this data into MT5 in a format compatible with native charts and order execution

    Informations sur le projet

    Budget
    50+ USD

    Client

    Commandes passées2
    Nombre d'arbitrages0