Probability Grid EA: Dynamic Grid Trading and the Maths Behind It
By Sajjad Ali Ansari · Published 22 September 2026 · Updated 24 November 2026, 06:00 GMT
Rewritten for the new site from the original article's topic. The original post could not be re-fetched, so this is original educational content on the same topic — not a verbatim migration. No performance figures are claimed.
Grid trading buys every dip and sells every rally, profiting while price ranges. The maths looks attractive — until the range breaks and the grid keeps buying into a falling market.
What's happening
Dynamic grid EAs, which adjust their spacing and lot size from volatility and probability estimates, are among the most downloaded retail robots — and among the most common causes of blown accounts.
Why it matters
A grid can show a smooth, rising equity curve for months and then lose everything in one trending week. Understanding that payoff shape before running one is the entire point of this guide.
What grid trading is
A grid places buy and sell orders at fixed intervals above and below the current price. As price moves through the grid, each level triggers a trade, and the system banks small profits when price returns. In a ranging market it harvests the range, level by level.
A dynamic grid adjusts the spacing from volatility — wider spacing when the market is wild, tighter when it is calm — and sometimes adjusts lot size from a probability estimate of how far price is likely to travel. The word 'probability' refers to the spacing model, not to a guarantee.
How the EA works
The EA defines a grid: a centre price, a spacing (often ATR-based), a number of levels, and a lot-size rule. When price reaches a level, it opens a trade in the direction of the grid, with a take profit at the next level.
If price keeps moving against the open trades, the grid keeps adding positions at each new level, so the average entry improves but the total exposure grows. The system only becomes profitable again when price retraces far enough to close the basket — which is why a strong trend is the grid's worst enemy.
A responsible version caps the number of levels, caps total exposure, and has a hard equity stop that closes the whole basket. A version without those caps is not a strategy; it is a countdown.
- Fixed spacing from ATR — levels adapt to volatility.
- Capped levels and capped total exposure — the grid must have an end.
- Hard equity stop closes the entire basket at a defined loss.
- No martingale lot doubling without a cap — doubling is how grids blow up.
Key settings to understand
Grid settings look harmless in isolation. Together they define the maximum loss, which is the only number that matters.
| Setting | Typical value | What it does |
|---|---|---|
| Grid spacing | ATR-based, 15 - 40 pips | Distance between levels; wider spacing survives bigger moves. |
| Maximum levels | 5 - 10 | Hard cap on how many positions the grid can open. |
| Lot sizing | Fixed or capped progression | How size grows per level — never uncapped doubling. |
| Basket take profit | Next grid level | Where the basket closes in profit. |
| Equity stop | 2% - 5% of account | Closes everything if the basket loss reaches this level. |
| Trading sessions | London / New York | Avoids thin hours where grids trigger on noise. |
Risks — the honest warning
Grid trading has a dangerous payoff shape: many small wins, then one large loss that can exceed all the wins combined. Backtests hide this because ranging periods dominate most historical data, while the one trending month that breaks the grid may sit outside the test window.
Martingale lot sizing makes it worse: doubling at each level means the final positions are enormous, and a single further move against the grid can trigger a margin call. Any grid EA that doubles without a hard cap should not be run on live capital.
If you test a grid EA, test it through a strong trending period — a month where the pair moved 500+ pips without a deep retracement — and check the maximum drawdown, not the win rate. A 90% win rate means nothing if the remaining 10% ends the account.
Downloads
AnsariOnline does not currently provide a download for this EA. No verified Drive or GitHub link, version, or backtest report is available, so no download is offered on this page. This guide is educational: it explains how the system works, its settings and its risks.
Related Coverage
Frequently Asked Questions
Is grid trading profitable?
It can be profitable for long stretches in ranging markets, and it can lose an entire account in one strong trend. The strategy's risk is concentrated in rare, large losses — so judge it by maximum drawdown, not by win rate.
What is the difference between a grid and martingale?
A grid opens positions at set price levels; martingale doubles the lot size after each loss. Many grid EAs combine the two. Fixed-size grids are less dangerous than doubling grids, but both need a hard equity stop.
Do prop firms allow grid trading?
Almost never. Grid and martingale strategies routinely violate daily-loss and drawdown rules, and most firms prohibit them explicitly. Check the rulebook before assuming otherwise.
Key Takeaways
- Grids profit in ranges by banking small moves at each level.
- The risk is one strong trend: exposure grows while price moves away.
- Cap levels, cap exposure, and set a hard equity stop — no exceptions.
- Judge a grid by maximum drawdown in a trending month, never by win rate.
What to Watch Next
- Risk Management 101 — drawdown maths and why win rate misleads.
- Statistical Arbitrage EA — a market-neutral alternative to grids.
- Prop Firm Challenge Pass EA — why grids are banned in challenges.
