|
Lean
$LEAN_TAG$
|
In technical analysis Beta indicator is used to measure volatility or risk of a target (ETF) relative to the overall risk (volatility) of the reference (market indexes). The Beta indicators compares target's price movement to the movements of the indexes over the same period of time. More...
Public Member Functions | |
| Beta (string name, Symbol targetSymbol, Symbol referenceSymbol, int period) | |
| Creates a new Beta indicator with the specified name, target, reference, and period values More... | |
| Beta (Symbol targetSymbol, Symbol referenceSymbol, int period) | |
| Creates a new Beta indicator with the specified target, reference, and period values More... | |
| Beta (string name, int period, Symbol targetSymbol, Symbol referenceSymbol) | |
| Creates a new Beta indicator with the specified name, period, target and reference values More... | |
| override void | Reset () |
| Resets this indicator to its initial state More... | |
Public Attributes | |
| override bool | IsReady => _targetReturns.IsReady && _referenceReturns.IsReady |
| Gets a flag indicating when the indicator is ready and fully initialized More... | |
Protected Member Functions | |
| override decimal | ComputeIndicator () |
| Computes the beta value of the target in relation with the reference using the target and reference returns More... | |
Protected Member Functions inherited from QuantConnect.Indicators.DualSymbolIndicator< IBaseDataBar > | |
| DualSymbolIndicator (string name, Symbol targetSymbol, Symbol referenceSymbol, int period) | |
| Initializes the dual symbol indicator. More... | |
Additional Inherited Members | |
Properties inherited from QuantConnect.Indicators.DualSymbolIndicator< IBaseDataBar > | |
| IReadOnlyWindow< TInput > | TargetDataPoints [get] |
| RollingWindow to store the data points of the target symbol More... | |
| IReadOnlyWindow< TInput > | ReferenceDataPoints [get] |
| RollingWindow to store the data points of the reference symbol More... | |
| Symbol | ReferenceSymbol [get] |
| Symbol of the reference used More... | |
| Symbol | TargetSymbol [get] |
| Symbol of the target used More... | |
In technical analysis Beta indicator is used to measure volatility or risk of a target (ETF) relative to the overall risk (volatility) of the reference (market indexes). The Beta indicators compares target's price movement to the movements of the indexes over the same period of time.
It is common practice to use the SPX index as a benchmark of the overall reference market when it comes to Beta calculations.
The indicator only updates when both assets have a price for a time step. When a bar is missing for one of the assets, the indicator value fills forward to improve the accuracy of the indicator.
| QuantConnect.Indicators.Beta.Beta | ( | string | name, |
| Symbol | targetSymbol, | ||
| Symbol | referenceSymbol, | ||
| int | period | ||
| ) |
Creates a new Beta indicator with the specified name, target, reference, and period values
| name | The name of this indicator |
| targetSymbol | The target symbol of this indicator |
| period | The period of this indicator |
| referenceSymbol | The reference symbol of this indicator |
| QuantConnect.Indicators.Beta.Beta | ( | string | name, |
| int | period, | ||
| Symbol | targetSymbol, | ||
| Symbol | referenceSymbol | ||
| ) |
Creates a new Beta indicator with the specified name, period, target and reference values
| name | The name of this indicator |
| period | The period of this indicator |
| targetSymbol | The target symbol of this indicator |
| referenceSymbol | The reference symbol of this indicator |
Constructor overload for backward compatibility.
|
protected |
| override void QuantConnect.Indicators.Beta.Reset | ( | ) |
| override bool QuantConnect.Indicators.Beta.IsReady => _targetReturns.IsReady && _referenceReturns.IsReady |