Study Syntax

To add studies and study-based expressions to a quote board or quote grid, you must use specific syntax. The syntax, in its simplest form, is as follows:

 

=Aggregation:Expression

 

The following aggregations are available:

 

 

 

The expression follows this syntax:

 

function (source.InputField, value, value, value).PlotName where:

 

 

Examples:

 

Input

Result

=DAILY:MA ('IN A0')
or

=DAILY:MA ('IN A0', 9)

Calculates a Daily Moving Average (MA) on the symbol IN A0 (S&P 500). Uses the default parameter value of 9 (Period).

=DAILY:MA ('IN A0'.HIGH, 12)

Calculates a Daily Moving Average (MA) on the High of symbol IN A0 (S&P 500). Overrides the parameter value of Period to 12.

=10MIN:ROC('C 1!')

or

=10MIN:ROC('C 1!', 10)

Calculates a 10 minute Rate of Change (ROC) on the front month of the symbol C 1! (Corn). Uses the default parameter value of 10 (Period).

=10MIN:ROC('C 1!', 20)

Calculates a 10 minute Rate of Change (ROC) on the front month of the symbol C 1! (Corn). Overrides the parameter value of Period to 20.

=DAILY:DMA('DJ 1!'.HIGH)
or

=DAILY:DMA('DJ 1!'.HIGH, 9, 10)

Calculates a Daily Displaced Moving Average (DMA) on the High of the front month of the symbol DJ (Dow Jones Industrial Day). Uses the default parameter values of 9 (Period) and 10 (Displacement).

=TICK:DMA('DJ 1!', 7, 8)

Calculates a Tick Displaced Moving Average (DMA) on the front month of the symbol DJ (Dow Jones Industrial Day). Overrides the parameter value of Period to 7 and the parameter value of Displacement to 8.

 

Related Topics