# Relative Performance

#### Description <a href="#description_94" id="description_94"></a>

Calculates the price ratio between current and selected symbols.

#### Further information <a href="#further-information_34" id="further-information_34"></a>

<http://stockcharts.com/articles/mailbag/2012/01/how-can-i-chart-relative-performance-qqq-underperforms-spy-.html?st=relative+performance>

<http://www.wikinvest.com/wiki/Relative\\_performance>

#### Usage <a href="#usage_90" id="usage_90"></a>

```csharp
RelativePerformance (Instrument)
RelativePerformance (Instrument)[int barsAgo]
```

#### Return value <a href="#return-value_88" id="return-value_88"></a>

**double**

#### Parameters <a href="#parameters_81" id="parameters_81"></a>

IInstrument

#### Visualization <a href="#visualization_85" id="visualization_85"></a>

![Relative Performance](https://agenatrader.github.io/AgenaIndicator-documentation/media/RelativePerformance.png)
