거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Gold Volatility and Risk Meter (XAUUSD): ATR regime and stop cost - MetaTrader 5용 지표

Pavel Polikarpov
Pavel Polikarpov
  • Директор 에  Мотосервисе
  • 러시아
  • 905
Энтузиаст который познает технологии!
조회수:
154
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Gold Volatility and Risk Meter is a MetaTrader 5 indicator for XAUUSD and any other symbol. It answers two questions that every gold trader, and every user of a gold Expert Advisor, has to answer before the next trade: is gold quiet or wild right now compared with its own history, and what does a normal volatility stop cost in money today.

Gold Volatility and Risk Meter on XAUUSD

It does not place, modify or close orders, and it is not a trade signal.

Features

  • Daily ATR(14) (Wilder) of the last completed day, in price and as a share of the price.
  • Regime badge: CALM below the 25th percentile, NORMAL from 25 to 75, ELEVATED from 75 to 95, EXTREME above 95. The window is 1, 3 or 5 years (3 by default).
  • Percentile ladder for 1, 3 and 5 years at once, so you can see that the same ATR can be "average" for the last year and "high" for the last five.
  • Monthly strip: the median daily ATR of each of the last 24 months, coloured by regime, with the current month in gold.
  • Risk translator:
  • stop distance = k × ATR of a chosen timeframe (2 × H1 ATR by default), plus the same stop at the median volatility of the window;
  • money lost at that stop with the minimum lot;
  • lot size for your risk percentage, rounded down to the volume step, or "below min" when even the minimum lot is too large;
  • the risk of the minimum lot as a percentage of the base, and the base you would need for your risk percentage.
  • Risk base is account equity, account balance or a fixed amount, which is handy for planning a new account.
  • Optional dotted lines at bid ± stop distance.
  • Objects use the prefix GVRM_ and are removed with the indicator.

How it measures

  1. ATR uses Wilder smoothing over completed bars. The daily value is taken from the last completed D1 bar; when the market is closed for the weekend, Friday counts as completed.
  2. The percentile rank compares that value with the daily ATR of the previous 250, 750 and 1,250 trading days (about 1, 3 and 5 years). With less history the panel says how many days were used.
  3. Money per stop uses the symbol's tick value and tick size from the terminal, so it follows your broker's contract and account currency.

An example from the screenshot

XAUUSD on one broker server at the close of 20 November 2026: daily ATR 95.89, which ranks at 37% of the last year, 77% of the last three years and 86% of the last five. Two H1 ATRs made a stop of 55.85 in price. With a fixed base of 1,000 USD and 1% risk, even 0.01 lot was too large: that stop at the minimum lot costs 55.85 USD, or 5.59% of the base, and a 1% risk would need about 5,585 USD. At the three-year median volatility the same stop would have been 27.86. Your broker's prices and contract may differ; this is a measurement, not a forecast.

Inputs

Input Default Meaning
ATR period 14 Wilder ATR for the daily and the stop timeframe.
Regime window, years 3 1, 3 or 5.
Months in the strip 24 Monthly medians shown.
Stop timeframe, multiple H1, 2.0 Stop distance = multiple × ATR of that timeframe.
Risk per trade, % 1.0 Used for the lot size and the minimum-lot check.
Risk base, fixed amount equity, 1000 Equity, balance, or a fixed amount.
Panel offsets, font, stop lines, colours Display settings.

How to use it

  1. Attach it to XAUUSD on any timeframe.
  2. Before you start or keep running an Expert Advisor, compare its stop and lot with the panel: if the minimum lot already risks more than you planned, the account is small for that volatility.
  3. When the regime moves from CALM to ELEVATED, a fixed lot with an ATR stop carries much more money risk. In the example above the daily ATR was about twice its three-year median (95.89 against 47.82). Decide in advance what your EA should do then.
  4. Do not read the regime as a buy or a sell. It describes volatility only.

Requirements

  • MetaTrader 5. About five years of D1 history for the 5-year rank; less works with a note.
  • No DLL, no WebRequest, no internet access. The indicator does not trade.

About the author

I also develop the Golden Sniper XAU Expert Advisor for MetaTrader 5. More free tools from the same author: https://www.mql5.com/en/users/krechet233

Spread and Liquidity Clock: Time-of-Day Spread, Activity and Cost-to-Range Profile from Your Broker's History Spread and Liquidity Clock: Time-of-Day Spread, Activity and Cost-to-Range Profile from Your Broker's History

Builds a time-of-day profile from your own broker's history: the typical spread, the typical tick activity and the typical spread-to-range cost of every time slot of the trading day. Cheap and expensive slots are marked in the indicator window, the daily rollover window is flagged, and a panel lists the best and worst slots and ranks the current spread against its own slot.

Noise Band Momentum - intraday Nasdaq breakout of the noise area (Zarattini 2024 rules) Noise Band Momentum - intraday Nasdaq breakout of the noise area (Zarattini 2024 rules)

Intraday momentum EA for the Nasdaq 100: trades breakouts of a noise band around the New York open (rules of Zarattini, Aziz and Barbon, 2024), exits inside the band or across the session VWAP, flat at 16:00 New York.

Gold Weekend Gap Map (XAUUSD): gap size in ADR and fill time Gold Weekend Gap Map (XAUUSD): gap size in ADR and fill time

Marks every weekend gap on the chart, measures it in price and in ADR, shows whether and how fast it was filled, and keeps fill statistics for recent weeks. Display only, it does not trade.

Closed-bar alert example Closed-bar alert example

An MQL5 indicator example that checks the latest closed candle and suppresses duplicate alerts.