Skip to content

Algo.Indicators

property · Algo · cAlgo.API.Internals

DesktopCLICloud

Access to the built-in Indicators.

Definition

public IIndicatorsAccessor Indicators {get;}
api.Indicators: IIndicatorsAccessor

Returns IIndicatorsAccessor

Examples

var sma = Indicators.SimpleMovingAverage(Bars.ClosePrices, 20);
Print("SMA(20) last value: {0}", sma.Result.LastValue);
sma = api.Indicators.SimpleMovingAverage(api.Bars.ClosePrices, 20)
api.Print(f"SMA(20) last value: {sma.Result.LastValue}")