MoneyFlowIndex.Result
property · MoneyFlowIndex · cAlgo.API.Indicators
DesktopCLICloud
The time series of the Money Flow Index indicator.
Definition
IndicatorDataSeries Result {get; set;}
moneyFlowIndex.Result: IndicatorDataSeries
Returns IndicatorDataSeries
Examples
private MoneyFlowIndex _moneyFlow;
protected override void OnStart()
{
_moneyFlow = Indicators.MoneyFlowIndex(Period);
}
protected override void OnBar()
{
var currentValue = _moneyFlow.Result.LastValue;
Print("Money Flow Index: {0}", currentValue);
}
def on_start(self):
self.moneyFlow = api.Indicators.MoneyFlowIndex(api.Period)
def on_bar(self):
currentValue = self.moneyFlow.Result.LastValue
api.Print(f"Money Flow Index: {currentValue}")
{
"Parameters": [
{
"Name": "Period",
"Type": "Integer",
"DefaultValue": 21
}
]
}