GoldGridBot Grid Risk Simulator
- Indicators
-
Dennis Hoinkis
MT5Bots – Expert Advisors for MetaTrader 5 with published backtests - Version: 1.0
Gold Grid Risk Simulator calculates how a planned buy or sell grid affects your account: drawdown, margin level, margin-call price, stop-out price and the balance the grid needs.
Main features
- Level-by-level simulation from a start price: entry, lot, cumulative lots, average price, basket TP, floating P/L, used margin, equity, margin level.
- Margin-call and stop-out prices, solved exactly between grid levels, with the distance from start in price units and %.
- Warning if stop-out comes before the grid is full, plus maximum survivable adverse move and loss at stop-out.
- Recommended minimum balance, so that the full grid plus an extra adverse move stays above the stop-out level.
- Scenario table for adverse moves (default 10, 25, 50, 100 price units) with status OK, MARGIN CALL or STOPPED OUT.
- Compact mode (default on): the level table shows only levels 1, 5, 10, 14, the last level and the first rows below margin call or stop-out, so the panel fits on a 1080p chart.
- Chart lines for start price, grid levels, average price, basket TP, margin call and stop-out; the start line can be dragged with the mouse.
- Uses tick value and tick size, so cent accounts, other deposit currencies, indices and Forex pairs also work.
How to use it
Enter your grid settings and read the panel. Rows turn red below the margin-call level; "MC" and "SO" mark margin call and stop-out. The recommended minimum balance is green when the simulated balance is sufficient, red otherwise.
Worked example: XAUUSD, buy grid from 4000.00, 0.01 lot fixed, spacing 1.50, 18 levels, balance 3,000 USD, leverage 1:100. Last level 3974.50, average price 3987.25. At level 18: floating loss -229.50 USD, margin 717.71 USD, margin level 386.0 %. Margin call at 3860.46 (3.49 % from start), stop-out at 3840.52 (3.99 %), recommended minimum balance 1,128.35 USD.
Main inputs
- Direction, start price (0 = current price), spacing (150 points), first lot (0.01), lot mode fixed or multiplier (1.3), max levels (18), basket TP (100 points).
- Balance and leverage to simulate (0 = account values), stop-out level (50 %), margin-call level (100 %), margin method Auto or formula only.
- Optional spread and commission per lot (0 = ignored).
- Scenarios (10, 25, 50, 100) and extra adverse move (30 price units).
- Panel, compact mode (optionally every Nth level), chart lines, colors, object prefix.
Notes and limitations
- Swap, slippage and gaps are ignored; open positions are not included.
- Margin is taken at each order's entry price. Results can differ with tiered leverage or changing margin requirements.
- Orders are assumed to fill exactly at grid prices. Results are a planning estimate, not a market forecast.
This tool does not trade.

User didn't leave any comment to the rating