InSeries

Description

InSeries is a DataSeries object in which the input data for an indicator or strategy is stored.

If the indicator is used without any explicit instructions for the input data, then the closing price for the current market prices will be used.

When calling up the SMA(20) the smoothing average is calculated on the basis of the closing prices for the current chart price data (this is equivalent to SMA(close,20).

InSeries[0] = Close[0].

When calling up the SMA(high, 20) the high price values are loaded and used for the calculation of the smoothing average.

InSeries[0] = High[0].

This way you can select which data series should be used for the calculation of the indicator.

double d = RSI(SMA(20), 14, 3)[0]; calculates the 14 period RSI using the SMA(20) as the input data series. InSeries[0] = SMA(20)[0].

Usage

InSeries
InSeries[int barsAgo]

Example

Print("The input data for the indicators are " + Input[0]);

Last updated