Navigation:  ActFX > Algorithmic Trading > Appendix >

The list of indicator objects with descriptions/examples of their usage.

Previous pageReturn to chapter overviewNext page

Accelerator/Decelerator Oscillator

Object Class:

ADOscillator: TindicatorADOscillator;

Creating the object

ADOscillator := TIndicatorADOscillator.Create(History, 'ADOscillator');

Getting values

ADOscillator.Graph.Last;

Setting the parameters

ADOscillator.PeriodSmall := 5;

ADOscillator.PeriodBig := 34;

 

ADX

Object Class:

ADX: TIndicatorADX;

Creating the object

ADX := TIndicatorADX.Create(History, 'ADX');

Getting values

ADX.Graph.Last

Setting the parameters

ADX.Period := 14;

 

Alligator

Object Class:

Alligator: TIndicatorAlligator;

Creating the object

Alligator := TIndicatorAlligator.Create(History, 'Alligator');

Getting values

Alligator.JawGraph.Last

Alligator.TeethGraph.Last

Alligator.LipsGraph.Last

Setting the parameters

Alligator.PeriodJaws := 13;

Alligator.ShiftJaws := 8;

Alligator.PeriodTeeth := 5;

Alligator.ShiftTeeth := 3;

Alligator.PeriodLips := 8;

Alligator.ShiftLips := 5;

 

Average True Range

Object Class:

ATR: TIndicatorAverageTrueRange;

Creating the object

ATR := TIndicatorAverageTrueRange.Create(History, 'AverageTrueRange');

Getting values

ATR.Graph.Last

Setting the parameters

ATR.Period := 14;

 

Awesome Oscillator

Object Class:

AwesomeOscillator: TIndicatorAwesomeOscillator;

Creating the object

AwesomeOscillator := TIndicatorAwesomeOscillator.Create(History, 'AwesomeOscillator');

Getting values

AwesomeOscillator.Graph.Last

Setting the parameters

AwesomeOscillator.PeriodSmall := 5;

AwesomeOscillator.PeriodBig := 34;

 

Bollinger Bands

Object Class:

BollingerBands: TIndicatorBollingerBands;

Creating the object

BollingerBands := TIndicatorBollingerBands.Create(History, 'BollingerBands');

Getting values

BollingerBands.TopGraph.Last

BollingerBands.Graph.Last

BollingerBands.BottomGraph.Last

Setting the parameters

BollingerBands.Period := 20;

BollingerBands.Deviation := 2;

 

Commodity Channel Index

Object Class:

CCI: TIndicatorCommodityChannelIndex;

Creating the object

CCI := TIndicatorCommodityChannelIndex.Create(History, 'CommodityChannelIndex');

Getting values

CCI.Graph.Last

Setting the parameters

CCI.Period := 14;

 

DeMarker

Object Class:

DeMarker: TIndicatorDeMarker;

Creating the object

DeMarker := TIndicatorDeMarker.Create(History, 'DeMarker');

Getting values

DeMarker.Graph.Last

Setting the parameters

DeMarker.Period := 14;

 

Envelopes

Object Class:

Envelopes: TIndicatorEnvelopes;

Creating the object

Envelopes := TIndicatorEnvelopes.Create(History, 'Envelopes');

Getting values

Envelopes.TopGraph.Last

Envelopes.BottomGraph.Last

Setting the parameters

Envelopes.Period := 14;

Envelopes.Deviation := 10;

 

Fractals

Object Class:

Fractals: TIndicatorFractals;

Creating the object

Fractals := TIndicatorFractals.Create(History, 'Fractals');

Getting values

Fractals.Value(i)

Setting the parameters

Fractals.Period:=5;

 

Gator

Object Class:

Gator: TIndicatorGator;

Creating the object

Gator := TIndicatorGator.Create(History, 'Gator');

Getting values

Gator.GraphUp.Last

Gator.GraphDown.Last

Setting the parameters

Gator.PeriodJaws := 13;

Gator.ShiftJaws := 8;

Gator.PeriodTeeth := 5;

Gator.ShiftTeeth := 3;

Gator.PeriodLips := 8;

Gator.ShiftLips := 5;

 

Linear Regression

Object Class:

LinearRegression: TIndicatorLinearRegression;

Creating the object

LinearRegression := TIndicatorLinearRegression.Create(History, 'LinearRegression');

Getting values

LinearRegression.Graph.Last

Setting the parameters

LinearRegression.Period := 14;

 

MACD/OsMA

Object Class:

MACD: TIndicatorMACD;

Creating the object

MACD := TIndicatorMACD.Create(History, 'MACD');

Getting values

MACD.Graph.Last

MACD.SignalGraph.Last

MACD.HistoGraph.Last

Setting the parameters

MACD.PeriodShorterEMA := 12;

MACD.PeriodLongerEMA := 26;

MACD.PeriodForSignal := 9;

 

Momentum

Object Class:

Momentum: TIndicatorMomentum;

Creating the object

Momentum := TIndicatorMomentum.Create(History, 'Momentum');

Getting values

Momentum.Graph.Last

Setting the parameters

Momentum.Period := 16;

 

Moving Average

Object Class:

MA: TIndicatorMovingAverage;

Creating the object

MA := TIndicatorMovingAverage.Create(History, 'MovingAverage');

Getting values

MA.Graph.Last

Setting the parameters

MA.Period :=5;

MA.Kind := makSimple;

 

Parabolic SAR

Object Class:

ParabolicSAR: TIndicatorParabolicSAR;

Creating the object

ParabolicSAR := TIndicatorParabolicSAR.Create(History, 'ParabolicSAR');

Getting values

ParabolicSAR.Graph.Last

Setting the parameters

ParabolicSAR.InitStep := 0.02;

ParabolicSAR.MaxStep := 2;

 

 

Relative Strength Index

Object Class:

RSI: TIndicatorRSI;

Creating the object

RSI := TIndicatorRSI.Create(History, 'RSI');

Getting values

RSI.Graph.Last

Setting the parameters

RSI.Period := 14;

 

Standard Deviation

Object Class:

StandardDeviation: TIndicatorStandardDeviation;

Creating the object

StandardDeviation := TIndicatorStandardDeviation.Create(History, 'StandardDeviation');

Getting values

StandardDeviation.Graph.Last

Setting the parameters

StandardDeviation.Period := 10;

 

Stochastic

Object Class:

Stochastic: TIndicatorStochastic;

Creating the object

Stochastic := TIndicatorStochastic.Create(History, 'Stochastic');

Getting values

Stochastic.GraphK.Last

Stochastic.GraphD.Last

Setting the parameters

Stochastic.Period := 5;

Stochastic.AveragePeriod := 3;

Stochastic.Slow:=True;

Stochastic.Slow:=False;

 

William's Percent Range

Object Class:

WilliamsPercentRange: TIndicatorWilliamsPercentRange;

Creating the object

WilliamsPercentRange := TIndicatorWilliamsPercentRange.Create(History, 'WilliamsPercentRange');

Getting values

WilliamsPercentRange.Graph.Last

Setting the parameters

WilliamsPercentRange.Period := 14;