Build MT4 EA to Disable AutoTrading in 10 Custom Block Zones for Risk Management (XAUUSD) - Demo Required

MQL4 专家

指定

EA Development Request: Multi-Zone AutoTrading Blocker for MT4 (XAUUSD Focused)

Description:

Hello Freelancers,

I'm a disciplined gold trader based in Canada, focusing on XAUUSD with a strong emphasis on risk management. I need a simple, bulletproof MT4 EA that disables AutoTrading (turning the button red) when price is inside any of 10 user-defined "block zones" to prevent any new positions from opening (from other EAs or manually). This will limit risk in bad areas without closing existing trades.

The EA should be clean, visual (optional red rectangles), and run on any chart (not necessarily XAUUSD). No trading logic – just the block function.

Detailed Requirements:

  • Language & Platform: MQL4 for MT4 (build 1415+ compatible). No DLLs or external libraries. Strict mode.
  • Core Functionality:
    • When current Bid price is inside any active block zone, disable AutoTrading globally (set TerminalInfoInteger(TERMINAL_TRADE_ALLOWED, false) or equivalent if second argument needed).
    • When price leaves all zones, re-enable AutoTrading (set to true).
    • No closing of existing positions – only prevent new opens.
    • Work from any chart (use MarketInfo for XAUUSD Bid price).
    • Handle multiple zones simultaneously (if price in any one, block).
    • No lag – check on every tick.
  • Inputs (all in Input section):
    • 10 zones, grouped for easy editing:
      • Zone 1 High (double, default 0)
      • Zone 1 Low (double, default 0)
      • Zone 2 High (double, default 0)
      • Zone 2 Low (double, default 0)
      • ... up to Zone 10 High/Low
    • If High = 0 or Low = 0 or High <= Low, ignore that zone.
    • ShowZones (bool, default true) – toggle visual rectangles
    • ZoneColor (color, default clrRed)
    • Transparency (int, default 70) – for rectangle background
    • ProtectedSymbol (string, default "XAUUSD") – symbol to monitor
  • Visuals (if ShowZones = true):
    • Draw red semi-transparent rectangles for each active zone on the chart.
    • Rectangles extend left/right for visibility (e.g. 7 days left, 30 days right).
    • Tooltip on rectangle: "Block Zone X – AutoTrading Disabled"
    • Update dynamically if inputs changed.
  • Other Details:
    • No magic number needed – this EA doesn't open trades.
    • OnInit: Enable AutoTrading if disabled.
    • OnDeinit: Re-enable AutoTrading and clean up objects.
    • Log prints/alerts when entering/exiting block state (e.g. "Block Zone Active – AutoTrading Disabled").
    • Compatible with VPS/Remote Desktop.
    • Test on demo with another EA like Gold Stuff to confirm no opens in zones.
    • Clean code, comments, no warnings on compile.

Budget & Timeline:

  • Budget: $50
  • Timeline: NA
  • Payment on full testing & satisfaction.

Please provide your MQL4 portfolio and bid.

Thank you!


反馈

1
开发者 1
等级
(16)
项目
19
11%
仲裁
4
25% / 50%
逾期
1
5%
工作中
2
开发者 2
等级
(163)
项目
236
32%
仲裁
30
27% / 30%
逾期
26
11%
空闲
3
开发者 3
等级
(452)
项目
786
48%
仲裁
70
16% / 53%
逾期
139
18%
工作中
4
开发者 4
等级
(16)
项目
19
21%
仲裁
0
逾期
1
5%
空闲
5
开发者 5
等级
(13)
项目
16
6%
仲裁
8
38% / 38%
逾期
2
13%
已载入
6
开发者 6
等级
(43)
项目
74
50%
仲裁
4
0% / 50%
逾期
19
26%
空闲
7
开发者 7
等级
(3)
项目
3
33%
仲裁
0
逾期
0
空闲
8
开发者 8
等级
(6)
项目
10
30%
仲裁
0
逾期
2
20%
工作中
9
开发者 9
等级
(14)
项目
15
40%
仲裁
2
50% / 50%
逾期
1
7%
空闲
10
开发者 10
等级
(322)
项目
499
67%
仲裁
5
40% / 0%
逾期
4
1%
空闲
发布者: 8 代码
相似订单
I am looking for an experienced specialist to assist with the installation and configuration of multiple existing trading robots for use on prop firm accounts. Requirements: Proven experience working with high-performance and profitable trading robots Strong knowledge of prop firm requirements and constraints Assistance with MT4 setup and prop account connectivity Hands-on support and availability for follow-up
Based on 5 ema, 200, 100, 50 , 5 ema apply to high and 5 ema apply to low, reach out for more information........... . . . . . . . . . . . . . . . . . . . . . . Tp should be based on rr with options of fixed profit as well as percentange
I want to create an SMC bot base on ICT and Market structure,the bot must be able to keep adding on more positions while started.The bot must have a perfect risk management
Hi, im not looking into developing a new EA. I am looking into purchasing an existing EA that can deliver such results like: mq5 source, 4‑year backtest (2022‑2025) report, equity curve, trade list, strategy description, and 1‑month demo access. Please without concrete prove of experience functioning existing EA working perfectly and as contained on my description, then we can't strike a deal. Thank you
Title: Ultimate Quantum EA V1.01 | Dynamic Hedge Recovery System Description: Professional automated trading system designed for high-precision execution and advanced risk management. Key Features: Dynamic Hedge Recovery: Automatically manages losing trades by opening calculated hedge positions (2x-3x) to exit in total profit. Basket Profit Management: Closes all open positions once the total dollar profit target is
I am looking for an experienced MT5 (MQL5) Expert Advisor developer to fix a chart distortion / corruption issue in my existing EA ( EA ALPHA ). Issue Description When the EA is attached to the chart on a specific broker (ATFX), the chart becomes visually distorted The distortion appears on the left-hand side / historical area of the chart The same EA works correctly on other brokers (e.g. CFI) A previous developer
Subject: Experienced MQL5 Developer | High-Quality Execution & Error Handling "Hello, I am interested in developing your trading system. I specialize in building robust MQL5 Expert Advisors that are not only logically sound but also technically optimized for the MT5 platform. Why work with me? Error-Free Execution: I have deep experience in handling common MT5 execution errors such as Invalid Volume, Not Enough
I need a Python script that runs continuously on a VPS and acts as a bridge between our platform and MetaTrader 5 . The script should connect to MT5 accounts in read-only (Investor mode) and synchronize account data (no trading or order execution). Looking for an experienced developer with Python and MT5 API experience. Please share relevant experience and availability
"Hello! I am an experienced programmer specializing in automated trading software for MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5). My goal is to help traders turn their manual strategies into fully automated robots (Expert Advisors) and custom indicators. My services include: Developing Expert Advisors (EA) from scratch based on your strategy. Creating Custom Indicators and Scripts. Modifying existing EAs (adding
I need an arrow that works on mt5 that shows winrate with potential to be triggered on binary.com or deriv. Show me example arrows as picture or video. I'm not interested in coming up with the idea i just want something that works and has source code. Show me examples and state your budget or cost for the solution

项目信息

预算
50+ USD
截止日期
 2  4 天

客户

所下订单2
仲裁计数0