Lean
$LEAN_TAG$
|
Represents the LogReturn indicator (LOGR) More...
Public Member Functions | |
LogReturn (string name, int period) | |
Initializes a new instance of the LogReturn class with the specified name and period More... | |
LogReturn (int period) | |
Initializes a new instance of the LogReturn class with the default name and period More... | |
![]() | |
override void | Reset () |
Resets this indicator to its initial state More... | |
Public Attributes | |
int | WarmUpPeriod => Period |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
![]() | |
int | Period |
Gets the period of this window indicator More... | |
override bool | IsReady |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
virtual int | WarmUpPeriod |
Required period, in data points, to the indicator to be ready and fully initialized More... | |
Protected Member Functions | |
override decimal | ComputeNextValue (IReadOnlyWindow< IndicatorDataPoint > window, IndicatorDataPoint input) |
Computes the next value for this indicator from the given state. More... | |
![]() | |
WindowIndicator (string name, int period) | |
Initializes a new instance of the WindowIndicator class More... | |
override decimal | ComputeNextValue (T input) |
Computes the next value of this indicator from the given state More... | |
abstract decimal | ComputeNextValue (IReadOnlyWindow< T > window, T input) |
Computes the next value for this indicator from the given state. More... | |
Additional Inherited Members | |
![]() | |
int | WarmUpPeriod [get] |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
Represents the LogReturn indicator (LOGR)
Definition at line 25 of file LogReturn.cs.
QuantConnect.Indicators.LogReturn.LogReturn | ( | string | name, |
int | period | ||
) |
Initializes a new instance of the LogReturn class with the specified name and period
name | The name of this indicator |
period | The period of the LOGR |
Definition at line 37 of file LogReturn.cs.
QuantConnect.Indicators.LogReturn.LogReturn | ( | int | period | ) |
Initializes a new instance of the LogReturn class with the default name and period
period | The period of the SMA |
Definition at line 46 of file LogReturn.cs.
|
protected |
Computes the next value for this indicator from the given state.
window | The window of data held in this indicator |
input | The input value to this indicator on this time step |
Definition at line 58 of file LogReturn.cs.
int QuantConnect.Indicators.LogReturn.WarmUpPeriod => Period |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 30 of file LogReturn.cs.