Relative Spread Strength (RSS)

View as Markdown

Description

Developed by Ian Copsey, Relative Spread Strength is a variation to the Relative Strength Index.

Syntax

RSS(int eMA1, int eMA2, int length)

RSS(ISeries\<double\> input, int eMA1, int eMA2, int length)

Returns default value

RSS(int eMA1, int eMA2, int length)[int barsAgo]

RSS(ISeries\<double\> input, int eMA1, int eMA2, int length)[int barsAgo]

Return Value

double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.

Parameters

ParameterDescription
eMA1First EMA’s period
eMA2Second EMA’s period
inputIndicator source data (Series<T>)
lengthNumber of bars used in the calculation

Examples

1// Prints the current value of the RSS using default price type
2double value = RSS(10, 40, 5)[0];
3Print("The current RSS value is " + value.ToString());
4
5// Prints the current value of the RSS using high price type
6double value = RSS(High, 10, 40, 5)[0];
7Print("The current RSS value is " + value.ToString());

Source Code

You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.