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:
Tick or T
XMIN (for example, 10MIN for 10 minute variable aggregation)
Daily or D
Weekly or W
Monthly or M
The expression follows this syntax:
function (source.InputField, value, value, value).PlotName where:
function = an abbreviation that identifies the study. View the list of available function names.
source = the symbol on which to plot the study.
InputField = the data value on which to calculate the study
value = the value of the study's parameter(s). String multiple parameters together separated by commas.
PlotName = the plot name to calculate for studies that draw multiple plot lines. Go here for more information and examples.
Examples:
Input |
Result |
=DAILY:MA ('IN A0') =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) =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. |