Result Property
Summary
Commodity Channel Index Result Series.
Signature
| public abstract IndicatorDataSeries Result {get;}
|
Return Value
IndicatorDataSeries
Declaring Type
cAlgo.API.Indicators.CommodityChannelIndex
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13 | //...
private CommodityChannelIndex _commodityChannelIndex;
//...
protected override void OnStart()
{
_commodityChannelIndex = Indicators.CommodityChannelIndex(Periods);
}
protected override void OnBar()
{
// Print to log
Print("The Current Commodity Channel Index is: {0}", _commodityChannelIndex.Result.LastValue);
}
//...
|
Last update: February 3, 2023