Navigation: Study Formulas > Averages

Averages

Top  Previous  Next

The study formulas included in the Averages section are:

 

 

dema()

 

This function calculates a double exponential moving average. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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

 

 

 

exponentialMA()

 

This function calculates a exponential moving average. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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

 

 

 

hullMA()

 

This function calculates a hull moving average. The indicator is named after Alan Hull who developed the logic for this low-lag average. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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

 

 

 

kama()

 

This function calculates the Kaufman Adaptive Moving Average (KAMA), which is an exponential-style adaptive moving average developed by Perry J. Kaufman. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

input length

fast

fast period

slow

slow 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

 

 

 

leastSquaresMA

 

This function calculates a least square moving average (LSMA) of the input stream. Also known as an endpoint moving average. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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

 

 

 

mama()

 

This function calculates a Mesa Adaptive Moving Average (MAMA), which is a low-lag average developed by John Ehlers. The input stream can be a standard data point or it can be another study.

 

Parameters

 

fast

fast coefficient between 0 and 1

slow

slow coefficient between 0 and 1

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

 

 

 

simpleMA

 

This function calculates a simple moving average. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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

 

 

 

smoothedAverage()

 

This function calculates what is known as a smoothed moving average. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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

 

 

 

smoothedEMA()

 

This function calculates as smoothed exponential moving average (basically an average, of an average, of an average, etc.). The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the input length

smooth

number of smoothing levels (1-5)

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

 

 

 

smoothedSMA()

 

This function calculates as smoothed simple moving average (basically an average, of an average, of an average, etc.). The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the input length

smooth

number of smoothing levels (1-5)

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

 

 

 

t3MA()

 

This function calculates a T3 moving average. The T3 is an adaptive moving average developed by Tom Tillson . The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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

 

 

 

triangularMA()

 

This function calculates what is known as a triangular moving average. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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

 

 

 

volWeightedMA()

 

This function calculates a volume-weighted moving average. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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

 

 

 

weightedMA()

 

This function calculates a standard weighted moving average. The input stream can be a standard data point or it can be another study.

 

Parameters

 

period

the 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