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

Termos de Referência

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!


Respondido

1
Desenvolvedor 1
Classificação
(18)
Projetos
22
9%
Arbitragem
6
33% / 50%
Expirado
1
5%
Trabalhando
2
Desenvolvedor 2
Classificação
(12)
Projetos
19
37%
Arbitragem
1
0% / 100%
Expirado
1
5%
Livre
3
Desenvolvedor 3
Classificação
(271)
Projetos
400
27%
Arbitragem
39
41% / 49%
Expirado
1
0%
Livre
4
Desenvolvedor 4
Classificação
(133)
Projetos
142
38%
Arbitragem
3
33% / 33%
Expirado
1
1%
Trabalhando
5
Desenvolvedor 5
Classificação
(12)
Projetos
13
15%
Arbitragem
1
100% / 0%
Expirado
0
Carregado
6
Desenvolvedor 6
Classificação
(12)
Projetos
16
13%
Arbitragem
4
50% / 25%
Expirado
4
25%
Trabalhando
7
Desenvolvedor 7
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(4)
Projetos
5
0%
Arbitragem
1
0% / 100%
Expirado
1
20%
Livre
9
Desenvolvedor 9
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
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) 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 automatically
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
I would like to create a robot with the smart money concepts, that integrates order block,FVG,supply & demand ,read the market structure,liquidity and also trade with the session and also after a liquidity sweep a market structure is needed to verify the reversal and a retracement to the order block and sometimes fair value Gap

Informações sobre o projeto

Orçamento
50+ USD
Prazo
de 1 para 3 dias