NinjaScript > Educational Resources > Reference Samples > Indicator >

Using a secondary series as an input series for an indicator

Print this Topic Previous pageReturn to chapter overviewNext page

Adding additional series to a script can be useful. You may also want to use this added data for an indicator's Input Series.

 

Key concepts in this example

Adding series
Supplying a series object to an indicator as the input series parameter
Plotting using data from two different series

 

Important related documentation

Add()
Plot Class
DataSeries Class

 

Import instructions

1.Download the file contained in this Help Guide topic to your PC desktop
2.From the Control Center window, select the menu File > Utilities > Import NinjaScript
3.Select the downloaded file and click Import.

 

SampleSecondarySeriesAsInputSeries_NT7.zip