On Gold (XAUUSD) many traders watch the same pivot levels, so price often reacts there. This indicator takes the high, low and close of the previous day, week or month and draws the pivot P with R1, R2, R3 above and S1, S2, S3 below, one set for each period, so you also see the levels that price respected on the days before.
Classic formula by default, or Fibonacci with the range at 0.382, 0.618 and 1.0 from P. Each line starts where its period starts and carries its name and price. An optional alert fires when a candle closes across any level of the current period.
A pivot is a reference, not an entry by itself. The levels come from your broker daily, weekly and monthly bars, so a broker with a short Sunday candle or a different server time will give slightly different numbers.

Any symbol. It reads the D1, W1 or MN1 bars of the symbol and draws trend line segments and text objects only. It has no buffers, it is redrawn once per new bar and it never trades. Push notifications need your MetaQuotes ID in the terminal options.
Run it on XAUUSD, XAGUSD, EURUSD, GBPUSD, US30 or NAS100, put a daily and a weekly copy together and see where the levels line up. Compare how often price turns at P against R1 and S1, and combine the pivots with Smart Money Concepts liquidity or support and resistance zones. XP_Calc holds both formulas in one function, so it is easy to add Camarilla or Woodie or to use the levels in an EA.
Open source. Use it as it is, adapt it, build your own version on top of it. Questions, suggestions and your own tests are welcome in the comments below. Provided as is, use at your own risk.
Related: PDH PDL Sweep Levels, Round Number Levels Session Grid, Auto Fibonacci Retracement, Opening Range Breakout Box.
v1.0 (2026-12-05): initial release.
ATR Stop Loss Take Profit Levels
ATR stop loss and take profit levels for Gold (XAUUSD) and any symbol on MT5. Draws the stop and two targets from the ATR for a buy at the ask and a sell at the bid, with the lot for your risk in percent of the balance. Open source code.
Monte Carlo Drawdown from Your Account History, with Capital Check
Shuffles your closed trades thousands of times to show how deep the drawdown can realistically get (p50/p95/p99), and checks whether your account size can carry it. Reads the account history or a CSV file and writes a readable HTML report.
Spread Monitor Alert
Spread monitor for Gold (XAUUSD) and any symbol on MT5. Shows the spread now, its average and the highest of the day in a small panel and alerts when the spread opens above your limit or above twice the average. Open source code.
MACD Signals
Indicator edition for new platform.