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

Spécifications

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!


Répondu

1
Développeur 1
Évaluation
(19)
Projets
23
9%
Arbitrage
6
33% / 50%
En retard
1
4%
Occupé
2
Développeur 2
Évaluation
(13)
Projets
20
40%
Arbitrage
1
0% / 100%
En retard
1
5%
Gratuit
3
Développeur 3
Évaluation
(273)
Projets
402
27%
Arbitrage
40
40% / 50%
En retard
1
0%
Gratuit
4
Développeur 4
Évaluation
(147)
Projets
156
42%
Arbitrage
3
33% / 33%
En retard
1
1%
Travail
5
Développeur 5
Évaluation
(17)
Projets
20
35%
Arbitrage
3
67% / 0%
En retard
1
5%
Chargé
6
Développeur 6
Évaluation
(14)
Projets
19
11%
Arbitrage
4
50% / 25%
En retard
4
21%
Travail
7
Développeur 7
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
8
Développeur 8
Évaluation
(8)
Projets
9
0%
Arbitrage
2
0% / 50%
En retard
1
11%
Travail
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
AI Trading MQL5: Maximizing Profit from a $10 Investment Achieving significant profits from a small initial capital like $10 in AI trading with MQL5 requires a highly strategic and disciplined approach. While the potential for exponential growth exists, it's crucial to manage expectations and understand the inherent risks. **Key Strategies for Small Capital AI Trading:** 1. **Low-Risk, High-Probability
I’m looking for an experienced NinjaTrader developer to complete an existing custom indicator. The project is already partially built and is well organized, completely functional, and well documented. The former developer experienced some personal difficulties and unfortunately cannot continue. Key Requirement (Read Carefully): You MUST have direct, hands-on experience with NinjaTrader and NinjaScript (C#) . This is
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
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
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
You can control via Telegram: /start - enable bot, begin trading, /stop - end trading, disable bot /status - trade status Bot requirements: • Automated trading throughout the day until 00:00 UTC (Moscow time) (I do not want to trade or turn the bot on 100 times a day). • Auto shutdown of the bot in Telegram at 00:00 UTC (Moscow time) and manual restart when convenient. • Market analysis 24/5 using 20 EMA, RSI, and
I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl
Looking for a trading bot / Expert Advisor that wont make dozens of small successful trades and then one or two unsuccessful trades that wipes out your account Requirements: - MT4 capable - Use on the major currency pairs - although open to other currency pairs - Be successful in monetary terms not necessarily in how many successful trades

Informations sur le projet

Budget
50+ USD
Délais
de 1 à 3 jour(s)