PivotBoss AdvancedADR-Indicator
PivotBoss AdvancedADR-Indicator
#The Advanced ADR indicator allows you to calculate the average range in multiple
periodicities and for a user-defined number of periods. The default setting is
(1,10), which calculates the average range of a single bar over the last 10
periods. If you are in a Daily timeframe, this will give you the average daily
range over the last 10 sessions, while being in a 60-minute chart with this setting
would give you the average hourly range of the last 10 hours. To calculate a
rolling 5-day average range use (5,10) in a Daily timeframe, or use (3,10) to
calculate a rolling 3-day average. Use 1 Periods to analyze the current range, and
5 periods to analyze the current average range.
declare lower;
input Days = 1;
input Periods = 10;
input Expansion = 1.25;
input Compression = .65;
input AvgPeriods = 10;