Valid Input Data for Indicator Methods
<< Click to Display Table of Contents >> Valid Input Data for Indicator Methods |
System indicator methods require valid input data to function property. Indicator methods can accept the following forms of input data:
// Printing the current value of the 10 period SMA of closing prices |
Open, High, Low, Close and Volume can all be used as input for an indicator method.
// Passing in the a price series of High prices and printing out the current value of the |
// Printing the current value of the 20 period simple moving average of a 14 period RSI |
// Instantiating a new Series<double> object and passing it in as input to calculate |
// Passing in the second Bars object held in a multi-instrument and timeframe strategy |
Tip: The input series of an indicator cannot be the hosting indicator itself, as this will cause recursive loops.
|