AccumulativeSwingIndex.Result
property · AccumulativeSwingIndex · cAlgo.API.Indicators
DesktopCLICloud
The time series of AccumulativeSwingIndex.
Definition
IndicatorDataSeries Result {get;}
accumulativeSwingIndex.Result: IndicatorDataSeries
Returns IndicatorDataSeries — The Output Series of AccumulativeSwingIndex.
Examples
//...
private AccumulativeSwingIndex _accumulativeSwingIndex;
//...
//...
protected override void OnStart()
{
_accumulativeSwingIndex = Indicators.AccumulativeSwingIndex(LimitMove);
}
protected override void OnBar()
{
// Print to log
Print("The Current Accumulative Swing Index is: {0}", _accumulativeSwingIndex.Result.LastValue);
}
//...
def on_start(self):
self.accumulativeSwingIndex = api.Indicators.AccumulativeSwingIndex(api.LimitMove)
def on_bar_closed(self):
api.Print(f"The Current Accumulative Swing Index is: {self.accumulativeSwingIndex.Result.LastValue}")
{
"Parameters": [
{
"Name": "LimitMove",
"DisplayName": "Limit Move",
"Type": "Integer",
"DefaultValue": 12
}
]
}