|
Lean
$LEAN_TAG$
|
This indicator computes the MidPrice (MIDPRICE). The MidPrice is calculated using the following formula: MIDPRICE = (Highest High + Lowest Low) / 2 More...
Public Member Functions | |
| MidPrice (string name, int period) | |
| Initializes a new instance of the MidPrice class using the specified name and period. More... | |
| MidPrice (int period) | |
| Initializes a new instance of the MidPrice class using the specified period. More... | |
Public Attributes | |
| override bool | IsReady => Samples >= _period |
| Gets a flag indicating when this indicator is ready and fully initialized More... | |
| int | WarmUpPeriod => _period |
| Required period, in data points, for the indicator to be ready and fully initialized. More... | |
Protected Member Functions | |
| override decimal | ComputeNextValue (IBaseDataBar input) |
| Computes the next value of this indicator from the given state More... | |
Protected Member Functions inherited from QuantConnect.Indicators.BarIndicator | |
| BarIndicator (string name) | |
| Creates a new TradeBarIndicator with the specified name More... | |
Additional Inherited Members | |
Properties inherited from QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider | |
| int | WarmUpPeriod [get] |
| Required period, in data points, for the indicator to be ready and fully initialized. More... | |
This indicator computes the MidPrice (MIDPRICE). The MidPrice is calculated using the following formula: MIDPRICE = (Highest High + Lowest Low) / 2
Definition at line 25 of file MidPrice.cs.
| QuantConnect.Indicators.MidPrice.MidPrice | ( | string | name, |
| int | period | ||
| ) |
Initializes a new instance of the MidPrice class using the specified name and period.
| name | The name of this indicator |
| period | The period of the MIDPRICE |
Definition at line 36 of file MidPrice.cs.
| QuantConnect.Indicators.MidPrice.MidPrice | ( | int | period | ) |
Initializes a new instance of the MidPrice class using the specified period.
| period | The period of the MIDPRICE |
Definition at line 48 of file MidPrice.cs.
|
protected |
Computes the next value of this indicator from the given state
| input | The input given to the indicator |
Definition at line 68 of file MidPrice.cs.
| override bool QuantConnect.Indicators.MidPrice.IsReady => Samples >= _period |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 56 of file MidPrice.cs.
| int QuantConnect.Indicators.MidPrice.WarmUpPeriod => _period |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 61 of file MidPrice.cs.