Lean
$LEAN_TAG$
|
Provides a wrapper for IndicatorBase<IBaseData> implementations written in python More...
Public Member Functions | |
PythonIndicator () | |
Initializes a new instance of the PythonIndicator class using the specified name. More... | |
PythonIndicator (params PyObject[] args) | |
Initializes a new instance of the PythonIndicator class using the specified name. More... | |
PythonIndicator (PyObject indicator) | |
Initializes a new instance of the PythonIndicator class using the specified name. More... | |
void | SetIndicator (PyObject indicator) |
Sets the python implementation of the indicator More... | |
Protected Member Functions | |
override decimal | ComputeNextValue (IBaseData input) |
Computes the next value of this indicator from the given state More... | |
Properties | |
override bool | IsReady [get] |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
int | WarmUpPeriod [get, protected set] |
Required period, in data points, for the indicator to be ready and fully initialized More... | |
Properties inherited from QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider | |
int | WarmUpPeriod [get] |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
Provides a wrapper for IndicatorBase<IBaseData> implementations written in python
Definition at line 26 of file PythonIndicator.cs.
QuantConnect.Indicators.PythonIndicator.PythonIndicator | ( | ) |
Initializes a new instance of the PythonIndicator class using the specified name.
This overload allows inheritance for python classes with no arguments
Definition at line 38 of file PythonIndicator.cs.
QuantConnect.Indicators.PythonIndicator.PythonIndicator | ( | params PyObject[] | args | ) |
Initializes a new instance of the PythonIndicator class using the specified name.
This overload allows inheritance for python classes with multiple arguments
Definition at line 47 of file PythonIndicator.cs.
QuantConnect.Indicators.PythonIndicator.PythonIndicator | ( | PyObject | indicator | ) |
Initializes a new instance of the PythonIndicator class using the specified name.
indicator | The python implementation of IndicatorBase<IBaseDataBar> |
Definition at line 56 of file PythonIndicator.cs.
void QuantConnect.Indicators.PythonIndicator.SetIndicator | ( | PyObject | indicator | ) |
Sets the python implementation of the indicator
indicator | The python implementation of IndicatorBase<IBaseDataBar> |
Definition at line 66 of file PythonIndicator.cs.
|
protected |
Computes the next value of this indicator from the given state
input | The input given to the indicator |
Definition at line 136 of file PythonIndicator.cs.
|
get |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 104 of file PythonIndicator.cs.
|
getprotected set |
Required period, in data points, for the indicator to be ready and fully initialized
Definition at line 129 of file PythonIndicator.cs.