指定

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






















































































































































































































    ファイル:

    応答済み

    1
    開発者 1
    評価
    (8)
    プロジェクト
    17
    41%
    仲裁
    1
    0% / 100%
    期限切れ
    3
    18%
    仕事中
    2
    開発者 2
    評価
    (2)
    プロジェクト
    2
    0%
    仲裁
    0
    期限切れ
    0
    3
    開発者 3
    評価
    (10)
    プロジェクト
    12
    8%
    仲裁
    6
    33% / 33%
    期限切れ
    2
    17%
    取り込み中
    4
    開発者 4
    評価
    (1)
    プロジェクト
    0
    0%
    仲裁
    2
    0% / 0%
    期限切れ
    0
    仕事中
    5
    開発者 5
    評価
    (255)
    プロジェクト
    378
    25%
    仲裁
    23
    57% / 22%
    期限切れ
    1
    0%
    取り込み中
    6
    開発者 6
    評価
    (238)
    プロジェクト
    244
    31%
    仲裁
    0
    期限切れ
    3
    1%
    パブリッシュした人: 2 codes
    7
    開発者 7
    評価
    (5)
    プロジェクト
    5
    0%
    仲裁
    2
    50% / 0%
    期限切れ
    1
    20%
    8
    開発者 8
    評価
    (463)
    プロジェクト
    908
    76%
    仲裁
    25
    16% / 68%
    期限切れ
    99
    11%
    仕事中
    パブリッシュした人: 1 article, 6 codes
    9
    開発者 9
    評価
    (2)
    プロジェクト
    2
    0%
    仲裁
    0
    期限切れ
    0
    10
    開発者 10
    評価
    (170)
    プロジェクト
    194
    42%
    仲裁
    10
    10% / 40%
    期限切れ
    9
    5%
    パブリッシュした人: 3 codes
    11
    開発者 11
    評価
    (9)
    プロジェクト
    9
    11%
    仲裁
    1
    0% / 0%
    期限切れ
    1
    11%
    多忙
    12
    開発者 12
    評価
    (6)
    プロジェクト
    6
    17%
    仲裁
    0
    期限切れ
    0
    取り込み中
    13
    開発者 13
    評価
    (12)
    プロジェクト
    19
    42%
    仲裁
    2
    0% / 100%
    期限切れ
    3
    16%
    仕事中
    14
    開発者 14
    評価
    (1)
    プロジェクト
    2
    0%
    仲裁
    1
    0% / 0%
    期限切れ
    0
    15
    開発者 15
    評価
    (48)
    プロジェクト
    60
    22%
    仲裁
    8
    38% / 38%
    期限切れ
    5
    8%
    類似した注文
    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

    プロジェクト情報

    予算
    50+ USD

    依頼者

    出された注文2
    裁定取引数0