Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
2269
Rating:
(4)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Average Daily Range is an indicator that measures the volatility of an asset. It shows the average price movement between the maximum and minimum over the last few days.

To calculate the average, the indicator first counts the difference between the maximum and minimum prices for a given number of days, and then calculates the average on the calculated data:

Average Day Range = SMA(High - Low, Length)

Average Day Range (14)

Average Day Range (Average Day Range) and ATR (Average True Range) technical indicators are used to analyse volatility in the markets, but are calculated and interpreted differently.

Average Day Range (ADR)

Average Day Range (ADR) measures the average amplitude of price fluctuations over a specific period. To calculate the ADR, you usually take the difference between the maximum and minimum price of each day for a selected period (for example, 14 days) and then calculate the average of these differences. ADR helps traders understand what volatility can be expected from an instrument during a trading day and use this information to plan trading strategies.

Average True Range (ATR)

The Average True Range (ATR) also serves as a measure of volatility, but is calculated in a slightly different way, which makes it a more versatile and accurate indicator. To calculate the ATR, you first determine the true range for each day, which is the maximum of the following three values:

  1. The difference between the current day's maximum and minimum prices.
  2. The difference between the current day's maximum price and the previous day's closing price.
  3. The difference between the current day's minimum price and the previous day's closing price.

Then, using these true range values, calculate the average value for a certain period (often 14 days). ATR takes into account the gaps between days, making it a more accurate indicator of volatility, especially in markets with large price gaps between trading sessions.

Main differences

  • Calculation methodology: ADR simply considers the average range between the maximum and minimum prices for the day, while ATR also takes into account the gaps between the closes and opens of trading days.
  • Usage: ADR is more commonly used to estimate daily volatility, while ATR is used to estimate volatility without time frame and can be used in a variety of trading strategies, including risk management and stop-losses.
  • Flexibility: ATR is considered a more versatile indicator because of its ability to adapt to market conditions and take price gaps into account.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/49013

KSU_martin KSU_martin

Closing martingale trades

Daily Lot Statistics Daily Lot Statistics

Modern indicator that displays your daily trading statistics directly on your MT5 chart. Track your trading performance with a beautiful flat design panel showing lots traded, number of orders, and profit/loss for each day.

Confluence Index Stoch+RSI+MACD Confluence Index Stoch+RSI+MACD

MULTI TF Confluence Index Stoch+RSI+MACD

YY_Cross_2_Ma YY_Cross_2_Ma

The two moving averages crossover strategy is one of the most common trading strategies in the financial market. It is based on the use of two moving averages (usually long and short term) and signals an entry into a position based on their crossover.