Skip to content

IIndicatorsAccessor.ChaikinMoneyFlow

method · IIndicatorsAccessor · cAlgo.API.Internals

DesktopCLICloud

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

Overloads

ChaikinMoneyFlow(int periods)

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

ChaikinMoneyFlow ChaikinMoneyFlow(int periods)
api.Indicators.ChaikinMoneyFlow(periods: int) -> ChaikinMoneyFlow

Parameters

Name C# type Python type Description
periods int int The period used for the calculation

Returns ChaikinMoneyFlow — Chaikin Money Flow indicator instance

Examples

var chaikinMoneyFlow = Indicators.ChaikinMoneyFlow(21);
var isBuyingPressure = chaikinMoneyFlow.Result.Last(1) > 0;
Print("Chaikin Money Flow: {0}, buying pressure: {1}", chaikinMoneyFlow.Result.Last(1), isBuyingPressure);
chaikinMoneyFlow = api.Indicators.ChaikinMoneyFlow(21)
isBuyingPressure = chaikinMoneyFlow.Result.Last(1) > 0
api.Print(f"Chaikin Money Flow: {chaikinMoneyFlow.Result.Last(1)}, buying pressure: {isBuyingPressure}")

ChaikinMoneyFlow(Bars bars, int periods)

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

ChaikinMoneyFlow ChaikinMoneyFlow(Bars bars, int periods)
api.Indicators.ChaikinMoneyFlow(bars: Bars, periods: int) -> ChaikinMoneyFlow

Parameters

Name C# type Python type Description
bars Bars Bars The Bars that will be used by indicator, you can pass another timeframe/symbol bars
periods int int The period used for the calculation

Returns ChaikinMoneyFlow — Chaikin Money Flow indicator instance

Examples

var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyChaikinMoneyFlow = Indicators.ChaikinMoneyFlow(dailyBars, 21);
Print("Daily Chaikin Money Flow: {0}", dailyChaikinMoneyFlow.Result.Last(1));
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyChaikinMoneyFlow = api.Indicators.ChaikinMoneyFlow(dailyBars, 21)
api.Print(f"Daily Chaikin Money Flow: {dailyChaikinMoneyFlow.Result.Last(1)}")