MT4 EA – Multi-Zone Instant Close Blocker with Cooldown (Pure MQL4, NO DLL) - Demo Required before Payment

指定

Updated Freelance Job Instruction (Copy-Paste Ready)

Description:

Hello,

I need a simple, secure MT4 Expert Advisor (pure MQL4, NO DLLs) that protects my XAUUSD trading by instantly closing any new position opened by another EA (identified by magic number) when price is inside user-defined "block zones", and then enforces a cooldown period before allowing the next position from that EA.

This is for risk management on M1 timeframe – the other EA is aggressive and opens many positions in bad zones, causing cumulative spread losses. The goal is to limit openings in block zones to 1 per cooldown period (e.g., 5 minutes) while allowing normal trading outside zones.

Detailed Requirements:

  • Pure MQL4 only – no DLLs, no external libraries, no Windows API calls. Must compile with 0 errors/warnings in strict mode.
  • 10 independent block zones defined in inputs (grouped for easy editing).
  • Each zone has:
    • High price (double)
    • Low price (double)
    • Cooldown in minutes (int, e.g., 5) – time to wait after an allowed open before the next one is permitted.
  • If High=0 or Low=0 or High≤Low → zone disabled.
  • Magic number filter: Input for blocked magic numbers (string, comma-separated, e.g., "123456,202312"). Only positions with these magic numbers are affected.
  • Symbol filter: Input for protected symbol (default "XAUUSD").

Core Logic (Must Work Exactly Like This):

  • Run on every tick for instant reaction.
  • Scan all open orders.
  • If a position matches:
    • Protected symbol
    • Blocked magic number
    • Current price (Bid for buy, Ask for sell) is inside any active zone
  • Then:
    • If cooldown is active for that zone → instantly close the position (market or pending).
    • If cooldown is finished → allow the position and start/restart cooldown for that zone.
    • Cooldown timer must restart on every closure to enforce the full minutes.
  • Result: Maximum 1 position per cooldown period per zone → minimal spread loss.

Notifications (Important – One-Time Only):

  • Send one notification (Alert + Print + optional Push/Email) when price first enters any block zone ("Block Zone Active – Cooldown Enforced").
  • Send one notification when price exits all block zones ("All Block Zones Exited – Normal Trading Resumed").
  • Do not notify on every tick or every closure — only once on entry and once on exit.

Visuals:

  • Optional red semi-transparent rectangles for active zones on chart (toggle in inputs).
  • Tooltip on rectangle: "Block Zone X – Cooldown Active"

Other:

  • OnInit: Print "Blocker active".
  • OnDeinit: Clean up objects.
  • Log prints when closing or allowing a position.
  • Compatible with VPS/RDP.
  • Test with EA Gold Stuff (magic usually 123456 or similar) to confirm no rapid re-opens in zones.

Budget: $50

Timeline: 1–2 days

Please confirm you can do this without DLL and share similar work.

Thank you!


反馈

1
开发者 1
等级
(18)
项目
22
9%
仲裁
6
33% / 50%
逾期
1
5%
工作中
2
开发者 2
等级
(12)
项目
19
37%
仲裁
1
0% / 100%
逾期
1
5%
空闲
3
开发者 3
等级
(271)
项目
400
27%
仲裁
39
41% / 49%
逾期
1
0%
空闲
4
开发者 4
等级
(133)
项目
142
38%
仲裁
3
33% / 33%
逾期
1
1%
工作中
5
开发者 5
等级
(12)
项目
13
15%
仲裁
1
100% / 0%
逾期
0
已载入
6
开发者 6
等级
(12)
项目
16
13%
仲裁
4
50% / 25%
逾期
4
25%
工作中
7
开发者 7
等级
项目
0
0%
仲裁
0
逾期
0
空闲
8
开发者 8
等级
(4)
项目
5
0%
仲裁
1
0% / 100%
逾期
1
20%
空闲
9
开发者 9
等级
项目
0
0%
仲裁
0
逾期
0
空闲
相似订单
Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows: market entries are performed when MACD's main and signal lines intersect in the current trend direction. 2. Trend is determined based on the Exponential Moving Average with the specified period
EA 30+ USD
EA trading assistant that can analyse the market and provide accurate signals. Should be able to trade in mt5. The EA should indicate when to enter the market and when to exit. Should trade prop firms
Project Title Freedom ORB – Fully Automated MT5 Expert Advisor (ORB + Structure + Liquidity) (MT5) Project Description I require a fully automated MT5 Expert Advisor based on a structured Opening Range Breakout (ORB) model with market structure and liquidity confirmation. The EA must: Detect ORB session range Wait for breakout (close-based) Wait for retrace Confirm M1 structure + displacement Execute trade
I’m looking for a trading bot where I can use a balance of £1000 to make regular entries making £20-£40 per entry. obviously, I want to have minimum loss with a lot more profit being made
Dear Developer, I am looking to develop both a MetaTrader 5 Indicator and a MetaTrader 5 Expert Advisor (EA) based on the swing depth logic shown in the Pine Script code attached below. The indicator and EA must be built as separate files but must follow the exact same signal logic so both display and execute identically. Please carefully review the requirements below and confirm your understanding before starting
I have a High-Frequency Trading EA and I need a full conversion and optimization for MT5. The goal is to ensure stable execution and reliable performance on real accounts (IC Markets Raw and similar ECN brokers). I need an experienced and reputable MQL5 developer to: Convert the existing strategy to MT5 with full fidelity to the original trading logic (entries, SL, breakeven, trailing, pending orders). Optimize the
Hello friends, We need Robot, EA , or Trading software with proven( 6 to 12 months) and it should be given consistent profit upto 3 % per month with no risk ( low Drawdown ), we will pay what you ask, and also We are regulated forex broker and we have all access like FIX API etc, and we dealing with Top tier 1 LPs . Thanks
I need a professional MT5 Expert Advisor (fully automated trading robot) for scalping on M1 timeframe. 1. General Requirements Platform: MetaTrader 5 Type: Fully automated EA (no manual confirmation) Timeframe: M1 only Symbols: XAUUSD, BTCUSD, USDCAD Must support running on multiple charts simultaneously Clean, optimized, and low-latency execution logic 2. Strategy Logic (Scalping Model) The EA should use: Trend +
The indicator a bit inverted. But it doesn’t matter to me as long as the winrate make sense for investment. For brief details regarding the indicator. What should have been a sell, i inverted it into buy with sl and tp swapped(only change the name of sl and tp for visualisation , but the code still on right tp and sl) . And in script ive inverted the signal command code. But the trouble is the tp and sl cant be
All other Necessary filters already coded , Mostly it is referring to another expert copy pasting . Live Chart Optimization . Optimization from Signal Trigger Point . Apply to stay ahead . While applying please explain the correct trailing stop loss for value gap entries

项目信息

预算
50+ USD
截止日期
 1  3 天