ChaikinMoneyFlow


Summary

The Chaikin Money Flow indicator measures the money flow volume over a specific period.

Syntax

public ChaikinMoneyFlow ChaikinMoneyFlow(int periods)
public ChaikinMoneyFlow ChaikinMoneyFlow(MarketSeries marketSeries, int periods)

Parameters

NameDescription

Example 1

private ChaikinMoneyFlow _chaikinMoneyFlow;
[Parameter("Period", DefaultValue = 21)]
public int Period { get; set; }
protected override void OnStart()
{
   _chaikinMoneyFlow = Indicators.ChaikinMoneyFlow(Period);
}
protected override void OnBar()
{
   var index = MarketSeries.Open.Count - 1;
   double currentChaikinMF = _chaikinMoneyFlow.Result[index];
   double previousChaikinMF = _chaikinMoneyFlow.Result[index-1];
}