QuantStudio Financial Data Analysis and Trading Framework

TRIX Class

TRIX Index (TRIX)

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

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

[Visual Basic]
Public Class TRIX
    Inherits TIndicator
[C#]
public class TRIX : 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 TRIX indicator oscillates around a zero line. Its triple exponential smoothing is designed to filter out insignificant cycles and show the prevailing trend of the base instrument.

As the indicator reacts very sluggishly to market changes, trades should be placed when the indicator changes direction. Most traders prefer to plot a 9-period Moving Average of the TRIX to create a "signal" line, much like in the MACD indicator. When the TRIX line rises above its average, a buy signal is triggered. When it falls below its average, a sell signal is triggered.
The further away from the central line the TRIX moves, the more successful the trend signals.

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","TRIX DEMO",600,400);

TRIX TRIX = new TRIX(Daily, 14);

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

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

Requirements

Namespace: RQuant.Indicator

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

See Also

TRIX Members | RQuant.Indicator Namespace