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

Specifiche

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!


Con risposta

1
Sviluppatore 1
Valutazioni
(19)
Progetti
24
8%
Arbitraggio
9
33% / 33%
In ritardo
1
4%
Caricato
2
Sviluppatore 2
Valutazioni
(13)
Progetti
20
40%
Arbitraggio
1
0% / 100%
In ritardo
1
5%
Gratuito
3
Sviluppatore 3
Valutazioni
(274)
Progetti
403
28%
Arbitraggio
40
40% / 50%
In ritardo
1
0%
Gratuito
4
Sviluppatore 4
Valutazioni
(163)
Progetti
172
44%
Arbitraggio
3
33% / 33%
In ritardo
1
1%
In elaborazione
5
Sviluppatore 5
Valutazioni
(22)
Progetti
28
43%
Arbitraggio
4
50% / 50%
In ritardo
1
4%
In elaborazione
6
Sviluppatore 6
Valutazioni
(20)
Progetti
27
30%
Arbitraggio
4
50% / 25%
In ritardo
4
15%
Caricato
7
Sviluppatore 7
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
8
Sviluppatore 8
Valutazioni
(10)
Progetti
12
0%
Arbitraggio
3
33% / 33%
In ritardo
1
8%
Gratuito
9
Sviluppatore 9
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
Prop Firm EA 30 - 40 USD
I am looking for an MT5 Expert Advisor specifically designed to help meet common prop-firm evaluation requirements while prioritizing consistency, low drawdown, and strong risk management. The EA should use a robust trend-following and market structure-based strategy with multi-timeframe confirmation, momentum filtering, and optional news filtering to avoid low-quality trades. It must include configurable risk
We need someone to add the created account with the trades they uploaded to FxBook. This is done via FTP, along with their own positions. IMPORTANT! The positions didn't exist on the real market but were created in MetaTrader 4 through the admin panel. I have instructions in Russian on how to do this, but they're not detailed. We need an experienced specialist who understands this
Hello, I have a tradingview buy/sell indicator that also tells when to exit the trades with labels and everything. The indicator is of course manual and I want this to be automated into an MT5 bot. In return for this project you will get the indicator and bot for free! The indicator is simple yet very powerful/profitable. It works on all timeframes and pairs. It tells you when to buy/sell and when to "book profit"
The indicator should look for specific conditions in the market based on kijun sen, tenkan sen and kumo values, where kijun sen, tenkan sen, kumo a and b close values are equal to previous close vakues
I need a simple bot for opening range. Simple Entry / Exit rules, to be able to customize the timeframe, time zone (entry candle) and other normal settings like size, etc
Platform: MT5 (MQL5) OVERVIEW: I need a custom MT5 indicator that generates only high-probability A+ buy and sell signals. The indicator should combine market structure, support/resistance, liquidity sweeps, candlestick confirmations, session filtering, and Fibonacci retracement logic. FEATURES REQUIRED: SUPPORT & RESISTANCE Automatically detect and draw support and resistance levels. Levels should update
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
i want a developer to build me a robot according to mt style i want an engine which is going to trade gold with small accounts, i want it to be perfect or any developer who has that existing robot we can negoiate the price
Hi, I am looking for an experienced MQL5 developer to modify an existing, fully functional MetaTrader 5 Expert Advisor (Source code .mq5 Version 2.62 will be provided). Brief Overview of the EA: It executes trades based on 4 custom Supply/Demand levels (R1, R2, S1, S2) which are inputted manually . It uses two custom indicators for confirmation: SPA (Price Action filter) and AMG (Volume/Momentum filter). The code
Description: I am looking for an experienced MQL5 developer to build a fully automated Expert Advisor (EA) for MT5 tailored for Prop Firm challenges and funded accounts. I need a robust, plug-and-play solution with rigorous risk controls. Key Requirements: Platform: MT5 Trading Logic: I am looking for a reliable strategy based either on a Breakout Strategy (e.g., London session breakout) or a Mean Reversion Strategy

Informazioni sul progetto

Budget
50+ USD
Scadenze
da 1 a 3 giorno(i)