Block trades that would push margin usage beyond your limit.
Before any trade is executed, PipsGuard calculates what your margin usage would be after the trade. If it would exceed your configured maximum, the trade is blocked.
The rule also monitors existing positions — if margin spikes above the limit (due to price movement), it can alert you or close positions. This prevents over-leveraging, which is one of the fastest ways to blow a funded account.
| Parameter | Default | Description |
|---|---|---|
| max_margin_percent | 50.0% | Maximum allowed margin usage |
| warning_threshold_pct | 0 | Warn at this percentage (0 = disabled) |
| auto_close_on_breach | false | Close positions if margin spikes above limit |