This EA builds a symmetric grid of market orders and toggles Buy/Sell modules based on ZigZag direction. It can grow lots with martingale, and it resets on equity profit/loss, ZigZag direction change, Close All, or Flip. You can change every parameter live from the panel.
Read ZigZag direction (in AutoZZ mode).
up → only Buy module active
down → only Sell module active
If the module is active and the distance to the nearest open in that module ≥ GridStep, the EA opens a new market order.
Optional: assign per-position TP/SL.
If Martingale is on, each new order in the same module uses
lot = base_lot × (Multiplier ^ open_count_in_module) .
When equity change hits Global Profit % or Global Loss %, the EA resets: closes positions (scope depends on your setting) and restarts the initial routine.
On ZigZag direction change, the EA resets if KeepPositionsOnDirChange = false .
Start / Stop – run/pause the EA.
Close All – close positions (either account-wide or just this EA, per your setting).
Flip – invert the active side (works in AutoZZ/BuyOnly/SellOnly).
Info lines – Balance/Equity/Margin, P/L, trade count & volume, equity %, current martingale multipliers.
TradeMode: AutoZZ , BuyOnly , SellOnly , Both
AutoZZ is safer: only one side trades with trend bias from ZigZag.
Both opens both sides (higher exposure and margin use).
GlobalProfit% / GlobalLoss% – equity basket levels that trigger a reset.
CloseAllPositionsOnReset
true : close all account positions.
false : close only this symbol & this EA’s magic numbers.
KeepPositionsOnDirChange
false (recommended): reset on ZigZag flips to avoid fighting the new trend.
Larger values = less noise, fewer direction flips.
Too small = frequent flips/resets and overtrading.
GridStepPoints – spacing in points from the nearest open in that module.
On 5-digit FX: 1 pip = 10 points (e.g., 50 points = 5 pips).
Per-Position TP/SL – TP/SL applied to each order.
If TP/SL is very tight, spread/slippage can cause missed or premature closes.
Enable with UseMartingale and set Multiplier > 1.00.
If ≤ 1.00, the EA warns and won’t scale up lots.
Risk: in strong trends, position size grows fast. Pair it with a sensible GlobalLoss%.
Fixed – constant base lot.
Auto – base_lot = (Equity / 10,000) × AutoLot
Example: Equity $3,000, AutoLot = 0.02 → 0.006 lot.
AutoLot is not a percent; think “lots per 10k equity.”
InpMagicBuy / InpMagicSell – avoid clashes with other EAs.
ZigZag indicator must be compiled at Indicators\Examples\ZigZag .
If missing, AutoZZ won’t trade (the EA pauses that mode and warns).
TradeMode: AutoZZ
GlobalProfit% / GlobalLoss%: 1.0–2.0 / 2.0–3.0
KeepPositionsOnDirChange: false
GridStepPoints: 80–120 (8–12 pips)
Per-TP/SL: Off (observe first)
UseMartingale: Off
Lot: Fixed 0.01, or AutoLot 0.01 (≈ 0.01 per 10k equity)
TradeMode: AutoZZ
GlobalProfit% / GlobalLoss%: 2–3 / 3–4
GridStepPoints: 60–90 (6–9 pips)
Per-TP: On, TP = 100–150 pts (10–15 pips)
UseMartingale: On, Multiplier = 1.3–1.5
AutoLot: 0.02 (≈ 0.02 per 10k equity)
TradeMode: Both or AutoZZ
GlobalProfit% / GlobalLoss%: 4–6 / 5–7
GridStepPoints: 40–60 (4–6 pips)
Per-TP/SL: On, TP = 80–120, SL = 150–250 pts
UseMartingale: 1.7–2.0 (high risk)
AutoLot: 0.03–0.05
Note: On crypto/commodities or high-volatility symbols, increase GridStep, widen TP/SL. Always confirm the symbol’s point/pip format before setting numbers.
ZigZag tuning: Higher Depth/Deviation reduces “fake” flips and lowers reset frequency.
Spread/Slippage: The EA uses trade.SetDeviationInPoints(3) . Don’t set ultra-tight TP/SL during wide-spread hours.
Timeframe: On H1, wider GridStep and TP are usually healthier.
No hard max positions: There’s no built-in cap. Your real safety valves are GlobalLoss% and a modest Multiplier.
Flip button: Handy to manually switch bias at turns; not used in Both mode.
Reset scope: If you run other EAs, keep CloseAllPositionsOnReset = false so you only close this EA’s trades.
Uptime: Use a VPS to avoid missing resets or panel actions.
Testing path: Backtest → demo → small live. Scale slowly.
ZigZag indicator present, compiled, and loaded?
Symbol specs (point size, min/max/step) match your lot/point settings?
TradeMode set correctly (AutoZZ recommended)?
GlobalProfit% / GlobalLoss% realistic for your risk?
GridStep sized to volatility?
If using martingale, start with Multiplier ≤ 1.5.
Magic numbers don’t collide with other EAs?
Pressed Start and checked the log for warnings/errors?
Grid + martingale is high risk. Test gradually, always set equity-based protection (GlobalLoss%), and start with one symbol. This is not investment advice; you are responsible for the outcome.
If for any reason you do not like the purchased program, you can request a refund within 30 days from the date of purchase. You can also make an exchange for any other product at an equal cost or by paying the difference.
Simply send a request for refund or exchange with your order number by email: support@fx-market.pro.
Refund requests received more than 30 days after purchase will be rejected.