Lean
$LEAN_TAG$
|
The Chaikin Money Flow Index (CMF) is a volume-weighted average of accumulation and distribution over a specified period. More...
Public Member Functions | |
override void | Reset () |
Resets this indicator to its initial state More... | |
ChaikinMoneyFlow (string name, int period) | |
Initializes a new instance of the ChaikinMoneyFlow class More... | |
Public Attributes | |
override bool | IsReady => _flowRatioSum.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
Protected Member Functions | |
override decimal | ComputeNextValue (TradeBar input) |
Computes the next value for this indicator from the given state. More... | |
Protected Member Functions inherited from QuantConnect.Indicators.TradeBarIndicator | |
TradeBarIndicator (string name) | |
Creates a new TradeBarIndicator with the specified name More... | |
Properties | |
int | WarmUpPeriod [get] |
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... | |
The Chaikin Money Flow Index (CMF) is a volume-weighted average of accumulation and distribution over a specified period.
CMF = n-day Sum of [(((C - L) - (H - C)) / (H - L)) x Vol] / n-day Sum of Vol
Where: n = number of periods, typically 21 H = high L = low C = close Vol = volume
Definition at line 35 of file ChaikinMoneyFlow.cs.
QuantConnect.Indicators.ChaikinMoneyFlow.ChaikinMoneyFlow | ( | string | name, |
int | period | ||
) |
Initializes a new instance of the ChaikinMoneyFlow class
name | A name for the indicator |
period | The period over which to perform computation |
Definition at line 69 of file ChaikinMoneyFlow.cs.
override void QuantConnect.Indicators.ChaikinMoneyFlow.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 57 of file ChaikinMoneyFlow.cs.
|
protected |
Computes the next value for this indicator from the given state.
input | The input value to this indicator on this time step |
Definition at line 82 of file ChaikinMoneyFlow.cs.
override bool QuantConnect.Indicators.ChaikinMoneyFlow.IsReady => _flowRatioSum.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 47 of file ChaikinMoneyFlow.cs.
|
get |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 52 of file ChaikinMoneyFlow.cs.