Grid Martingale Risk Simulator Planner MT5
- Indicateurs
- Version: 1.0
- Activations: 5
**Know exactly where your grid or martingale basket blows up – before you trade it.**
Grid and Martingale Risk Simulator is a visual what-if tool for traders who use grids, martingale, averaging or hedged baskets. Place virtual BUY and SELL orders directly on the chart, drag them to any price, and the indicator recalculates your simulated account in real time: Balance, Equity, Margin, Free Margin, Margin Level, the Margin Call price and the Stop Out price.
The indicator never opens, modifies or closes real orders. It is a planning and risk-control tool.
**Main features**
Virtual orders on the chart
- Add single BUY / SELL orders or a whole grid in one click (levels, step in points, lot multiplier).
- Every order is a box on its own price line: number, group, type, lot, price, floating P/L and a Close button.
- Drag a box anywhere: up/down changes the entry price, left/right moves the box. TP and SL follow the order.
- Click a box to open its editor: group, lot, TP, SL, Close order, Delete order.
- Click the type cell to flip BUY/SELL, click the group cell to cycle groups.
- Orders are saved to a file and restored after a timeframe change or terminal restart.
Groups A to G
- Put orders into groups to model separate baskets in one chart.
- Each group shows its average (break-even) price and total P/L, linked with dotted lines to its orders.
TP / SL
- Set TP/SL per order by value or by button, then drag the TP/SL lines.
- Labels show price, distance in points and money result at TP/SL.
- Optional auto-close: when the real price touches a virtual TP/SL, the order moves to history.
Simulated account (live while you drag)
- Side-by-side table: Real account | Simulation at current price | Simulation at test price.
- Balance, Equity, Margin, Free Margin, Margin Level and floating P/L.
- Margin Level is colour-coded against your broker's Margin Call and Stop Out levels.
Test price line
- Drag the test line to any price and see the account status there: alive, Margin Call or Stop Out.
- Every order line shows its P/L in money and in % of balance, now and at the test price.
Margin Call and Stop Out projection
- The Margin Call and Stop Out prices are found with a numerical solver that recalculates margin at every candidate price, so they stay correct for CFDs, gold, indices and hedged baskets.
- Shows the distance to Stop Out in points and %, and the extra loss until then.
- Risk grade based on how many average daily ranges (ATR D1) away the Stop Out is.
Capital planning
- Minimum capital to survive a chosen adverse move (points).
- Recommended capital with your safety factor.
- Capital needed to survive 3x and 5x ATR D1.
- Clear message whether the current capital is enough, or how much is missing.
Averaging and break-even plan
- Shows the next averaging entries using your step and lot multiplier.
- For each planned entry: lot, total lots, the new break-even price and how many points price must retrace.
- Marks the first planned entry that would be reached only after a Stop Out.
Real orders
- "Mirror Real Orders" places a virtual copy on each real order of the symbol (same price, lot, TP, SL, including swap and commission), so the simulation starts from your real situation.
- "Follow Real Orders" mode keeps mirrors in sync: new real orders are added, closed ones move to history.
Order tables
- Market orders and order history: lots, number of orders, profit and margin for BUY, SELL and total.
- Buttons to close all BUY, all SELL, all orders, or clear the history.
**Account and symbol support**
- Works with standard and cent accounts, Forex, metals, indices, CFDs and crypto CFDs.
- Uses your broker's own Stop Out mode (percent or money), Margin Call level, leverage and contract specification.
- MT5: hedging and netting accounts. MT4: margin taken directly from the broker's margin requirement, including hedged margin.
**How to use**
1. Attach the indicator to a chart.
2. Set Deposit (0 = use your real account) and the grid settings in the panel.
3. Click +BUY, +SELL, Grid BUY or Grid SELL.
4. Drag orders and the test price line; watch the account table, the Stop Out line and the capital panel.
**Input parameters**
- Initial simulated deposit (0 = use the real account)
- Default lot, grid levels, grid step (points), lot multiplier
- Auto-close virtual orders on TP/SL
- Adverse move to survive (points), safety factor, ATR period
- Include real margin, commission per lot
- Panel position, order box position, font, font size and all colours
**Notes**
- The simulation covers the symbol of the chart. Margin used by real positions on other symbols is included as a constant when Deposit = 0.
- Swap of virtual orders is not projected.
- Results are estimates based on your broker's current specifications. Brokers that change margin dynamically (for example around news) can differ from the projection.
- In the Strategy Tester the panel is displayed, but chart clicks and dragging are not available. Use the indicator on a live or demo chart.
---
