Navigation: Study Formulas > Range/Volatility

Range/Volatility

Top  Previous  Next

The study formulas included in the Range/Volatility section are:

 

 

averageTrueRange()

 

This function calculates the Average True Range using Wilder's original formula.

 

Parameters

 

period

the input length

inv

select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval

 

 

 

hisVolatility1()

 

This function calculates the historical volatility ratio using the formula: StdDev(Log(C/C[-1]),short)/StdDev(Log(C/C[-1]),long). The input stream can be a standard data point or it can be another study.

 

Parameters

 

short

the fast input length

long

the slow input length

source1

the input stream. select from one of the standard data points or select the output of another study as input for this study

inv

select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval

 

 

 

hisVolatility2()

 

This function calculates the historical volatility ratio using the formula: (StdDev(Log(C/C[-1]),period)*Sqrt(365)*100). The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the input period

source1

the input stream. select from one of the standard data points or select the output of another study as input for this study

inv

select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval

 

 

 

relativeStrengthIBD()

 

This function calculates the relative strength of the input stream using the algorithm popularized by Investors Business Daily. Typically used with daily data although it can be applied to any input stream. The input stream can be a standard data point or it can be another study.

 

Parameters

 

quadrant

the input period (typically 60)

source1

the input stream. select from one of the standard data points or select the output of another study as input for this study

inv

select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval

 

 

 

trueRange()

 

This function calculates the True Range using Wilder's original formula.

 

Parameters

 

inv

select the bar interval on which this study should be calculated or leave blank to calculate on the default bar interval