Lean
$LEAN_TAG$
|
An indicator that will always return the same value. More...
Public Member Functions | |
ConstantIndicator (string name, decimal value) | |
Creates a new ConstantIndicator that will always return the specified value More... | |
override void | Reset () |
Resets this indicator to its initial state More... | |
Public Attributes | |
override bool | IsReady => true |
Gets true since the ConstantIndicator is always ready to return the same value More... | |
Protected Member Functions | |
override decimal | ComputeNextValue (T input) |
Computes the next value of this indicator from the given state More... | |
An indicator that will always return the same value.
T | The type of input this indicator takes |
T | : | IBaseData |
Definition at line 25 of file ConstantIndicator.cs.
QuantConnect.Indicators.ConstantIndicator< T >.ConstantIndicator | ( | string | name, |
decimal | value | ||
) |
Creates a new ConstantIndicator that will always return the specified value
name | The name of this indicator |
value | The constant value to be returned |
Definition at line 40 of file ConstantIndicator.cs.
|
protected |
Computes the next value of this indicator from the given state
input | The input given to the indicator |
Definition at line 55 of file ConstantIndicator.cs.
override void QuantConnect.Indicators.ConstantIndicator< T >.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 63 of file ConstantIndicator.cs.
override bool QuantConnect.Indicators.ConstantIndicator< T >.IsReady => true |
Gets true since the ConstantIndicator is always ready to return the same value
Definition at line 33 of file ConstantIndicator.cs.