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

Specification

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!


Responded

1
Developer 1
Rating
(19)
Projects
23
9%
Arbitration
6
33% / 50%
Overdue
1
4%
Busy
2
Developer 2
Rating
(13)
Projects
20
40%
Arbitration
1
0% / 100%
Overdue
1
5%
Free
3
Developer 3
Rating
(273)
Projects
402
27%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
4
Developer 4
Rating
(147)
Projects
156
42%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
5
Developer 5
Rating
(17)
Projects
20
35%
Arbitration
3
67% / 0%
Overdue
1
5%
Loaded
6
Developer 6
Rating
(14)
Projects
19
11%
Arbitration
4
50% / 25%
Overdue
4
21%
Working
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(8)
Projects
9
0%
Arbitration
2
0% / 50%
Overdue
1
11%
Working
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Add smart trailing 30 - 40 USD
Hello, I have the EA source code ready, and it is open-source/editable. I need you to add and improve the trailing stop logic with two clear inputs: 1. Trailing Start 2. Trailing Step Please implement it carefully and accurately. Trailing Start This is the profit distance where the EA starts activating the trailing stop. Example: If Trailing Start = 35 pips, the EA should not move the Stop Loss until the trade
Hello, I have a Pine Script (TradingView) code for a professional sniper strategy and I want to convert it to MQL5 for MetaTrader 5. Full conversion of the Pine Script logic (EMA filters, ADX, and entry signals). Implement the Fair Value Gaps (FVG) boxes on the chart. Create a Dashboard (Multi-Symbol Scanner) that monitors multiple pairs (Gold, GBPUSD, EURUSD, etc.) and shows signal status for each. Important: Setup
I need a professional developer to help me create an EA using RSI and Moving averages.The strategies are well organised and everything is in order. I will send all the details in the inbox
MT5 Indicator SMC 30 - 100 USD
Hello, I would like to clarify something before we proceed. I already have a base code prepared for the indicator. However, the code is not the final version and it still requires professional refinement, debugging, and optimization. Because of this, I am specifically looking for a highly experienced developer who can understand the full logic and structure of the system and improve it properly. Before I send you the
Project Overview I need assistance coding a hedging Expert Advisor (EA) that operates in "closed cycles" with a strict limit of five simultaneous open positions . EA Logic & Mechanism Initial Entry: Open a Buy position of 0.01 lots (Position A) with a Take Profit (TP) target of $1.00. Scenario 1: Price Drops (Hedging Step 1): If the price moves against the first trade, open two positions simultaneously: a Sell 0.02
Hello, I would like to clarify something before we proceed. I already have a base code prepared for the indicator. However, the code is not the final version and it still requires professional refinement, debugging, and optimization. Because of this, I am specifically looking for a highly experienced developer who can understand the full logic and structure of the system and improve it properly. Before I send you the
Powerful 30 - 100 USD
I really want a powerful developed EA that can generate a minimum of 10% every month without martingale, greed or any dangerous strategy for sale. Developer must provide the mql5 file or the raw file for modification etc
I already have a fully developed MT5 Expert Advisor with all required prop firm features, including: Risk management Daily loss & max drawdown limits Spread & slippage filters News filter Trade management system The EA structure is complete. 👉 What I need is a professional developer to replace ONLY the entry logic with a high-quality, rule-based trading strategy. 🚨 STRICT REQUIREMENT (READ CAREFULLY): I am NOT
SMC Price Action Pro 30 - 100 USD
Hello, I have a source code for an MT5 indicator that is open-source and belongs to me. However, it still requires professional improvements and some corrections. At the moment the indicator does not work as expected and there are several issues in the logic and performance that need to be fixed. Because of this, I am looking for a highly experienced MT5 developer who is comfortable working with existing code
Hello, I’m looking for an experienced developer who can help convert an existing cTrader indicator into a fully functional Quantower indicator . I already have the complete source code for the cTrader indicator (written in C#) , and I would like the same logic, behavior, and visual output to be accurately replicated in Quantower

Project information

Budget
50+ USD
Deadline
from 1 to 3 day(s)