Skip to content

ChaikinMoneyFlow.Result

property · ChaikinMoneyFlow · cAlgo.API.Indicators

DesktopCLICloud

The time series of the Chaikin Money Flow Indicator.

Definition

IndicatorDataSeries Result {get; set;}
chaikinMoneyFlow.Result: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

private ChaikinMoneyFlow _chaikinMoneyFlow;

protected override void OnStart()
{
    _chaikinMoneyFlow = Indicators.ChaikinMoneyFlow(Period);
}
protected override void OnBar()
{
    var currentValue = _chaikinMoneyFlow.Result.LastValue;
    Print("Chaikin Money Flow: {0}", currentValue);
}
def on_start(self):
    self.chaikinMoneyFlow = api.Indicators.ChaikinMoneyFlow(api.Period)

def on_bar(self):
    currentValue = self.chaikinMoneyFlow.Result.LastValue
    api.Print(f"Chaikin Money Flow: {currentValue}")
{
  "Parameters": [
    {
      "Name": "Period",
      "Type": "Integer",
      "DefaultValue": 21
    }
  ]
}