QuantStudio Financial Data Analysis and Trading Framework

MASS Class

Mass Index (MASS)

For a list of all members of this type, see MASS Members.

System.Object
   RQuant.Indicator.TTimeArray
      RQuant.Indicator.TDoubleArray
         RQuant.Indicator.TIndicator
            RQuant.Indicator.MASS

[Visual Basic]
Public Class MASS
    Inherits TIndicator
[C#]
public class MASS : TIndicator

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The Mass Index, developed by Donald Dorsey, focuses on the oscillation on the daily range of prices. It is used to identify trend reversals by measuring the narrowing and widening of the range between the high and low prices. A widening range displays an increasing Mass Index; conversely, a narrowing range displays a decreasing Mass Index.

The most significant pattern in the Mass Index indicator is a reversal bulge. A reversal bulge occurs when a Mass Index with length equals to 25, rises above 27.0 and subsequently falls below 26.5, indicating a likely price reversal.
A 9-period Exponential Moving Average is often used to determine whether the reversal bulge indicates a buy or sell signal. A buy position should be taken if the Moving Average is trending down in anticipation of the reversal, and a sell position is the appropriate choice if the Moving Average is trending up.

This indicator is described in more details in the Steve Achelis' book "Technical Analysis from A to Z".

Formula:

Example

TDataManager.cd("Demo");

TDailyArray Daily1 = TDataManager.GetStock("YHOO").DailyArray;

DateTime Date1 = DateTime.Parse("1999/02/08"); 
DateTime Date2 = DateTime.Parse("2000/12/29"); 

TDailyArray Daily = Daily1.Clone(Date1, Date2);

TCanvas Canvas = new TCanvas("Canvas","MASS DEMO",600,400);

MASS MASS = new MASS(Daily, 14, 10);

Canvas.cd(1);
Daily.Draw("c");

Canvas.cd(2);
MASS.Draw();

Requirements

Namespace: RQuant.Indicator

Assembly: RQuant.Indicator (in RQuant.Indicator.dll)

See Also

MASS Members | RQuant.Indicator Namespace