Volatility Regime Percentile answers a simple question: is the market quiet or busy right now compared with its own recent history? Instead of reading a raw ATR value that means something different on every symbol and timeframe, it converts ATR into a percentile rank from 0 to 100, so the same thresholds work on gold, oil, forex pairs and indices.
How it works
Panel
Ideas for use
Alerts
Optional alert when a closed bar changes regime (one alert per bar).
Notes
Inputs
| Input | Default | Description |
|---|---|---|
| ATR period | 14 | Period of the ATR |
| Lookback bars for the percentile rank | 250 | Window used to rank the current ATR |
| Low-volatility threshold (percentile) | 25 | At or below = LOW regime |
| High-volatility threshold (percentile) | 75 | At or above = HIGH regime |
| Show info panel | true | Shows the panel in the indicator window |
| Panel on the right side | true | false = left side |
| Panel text colour | Silver | Colour of the panel text |
| Panel font size | 9 | Font size of the panel |
| Alert when a closed bar changes regime | false | Pop-up alert on a regime change |
Trade Settings — Persist and Migrate Per-Trade Settings
Standalone MQL5 library for storing custom settings separately for each trade and following a verified pending-order-to-position lifecycle. It supports double, ulong and price-unit fields, terminal-local Global Variables, safe cleanup gates and an offline self-test. Includes a demo EA, source archive, and installation guide. A different-ticket transition, reconnection as a separate scenario, and netting behavior remain untested.
Building a Confluence Signal Engine in MQL5: Leading Triggers, Confirmation Filters and a Live Dashboard
Free source code included: a DST-aware Market Sessions + PVSRA vector-candle indicator, 5 preset files and a printable confluence cheat sheet.
Truncation Audit: Detecting Look-Ahead and Repainting in MQL5 Indicators.
Part 3 of the indicator regression-testing series. Compares the value an indicator had when each bar closed with the value recomputed on the later history, flags every bar that changed (look-ahead or repainting), and measures how many future bars each value needed before it settled.
Squeeze Momentum: Bollinger Bands Inside Keltner Channel
Squeeze Momentum indicator: detects periods of volatility compression, when the Bollinger Bands move inside the Keltner Channel, and shows the direction and strength of the momentum that builds up during and after the squeeze.