MassIndex (Function)

image\trumpet2.gif Disclaimer

The MassIndex series function returns a value that is used to warn of an impending direction change.

Syntax

MassIndex(SmoothingLength, SummationLength)

Returns (Double)

A numeric value containing MassIndex for the current bar.

Parameters

Name

Type

Description

SmoothingLength

Numeric

Sets the number of periods for the exponential moving average.

SummationLength

Numeric

Sets the number of periods for the summation and second exponential moving average.

Remarks

The formula for the function is:

MassIndex = Numerator/Denominator

…where

 Numerator = Summation(XAverage(High-Low, Smoothing), Summation)

 Denominator = XAverage(XAverage(High-Low, Smoothing), Summation)

Example

Plot1(MassIndex(9,25));

Reference

Dorsey, Donald. The Mass Index. Technical Analysis of Stocks and Commodities. June 1992, Pages 67-69.