> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Relative Spread Strength (RSS)

## Description

Developed by Ian Copsey, **Relative Spread Strength** is a variation to the [Relative Strength Index](/developer/desktop-sdk/references/common/system-indicator-methods/relative-strength-index-rsi).

## 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

| Parameter | Description                                                                                     |
| --------- | ----------------------------------------------------------------------------------------------- |
| eMA1      | First EMA's period                                                                              |
| eMA2      | Second EMA's period                                                                             |
| input     | Indicator source data ([Series\<T>](/developer/desktop-sdk/references/common/iseriest/seriest)) |
| length    | Number of bars used in the calculation                                                          |

## Examples

```csharp
// Prints the current value of the RSS using default price type
double value = RSS(10, 40, 5)[0];
Print("The current RSS value is " + value.ToString());

// Prints the current value of the RSS using high price type
double value = RSS(High, 10, 40, 5)[0];
Print("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.