iCCI (HistoricalData data, int period)
method
Returns an instance of the class Indicator, which calculates the value of the indicator CCI.
Syntax
public Indicator iCCI (HistoricalData data,int period)
Parameters
data — HistoricalData
Data for the calculation of the indicator
period — int
The number of bars that will be used for calculations
Return
Indicator
Returns an instance of the class Indicator
Example
The following code example shows how to use the indicator CCI.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PTLRuntime.NETScript;
using System.Drawing;
using PTLRuntime.NETScript.Indicators;
namespace Indicators
{
public class IndicatorExample : NETStrategy
{
private Indicator indicator;
public override void Init()
{
indicator = Indicators.iCCI(CurrentData, 5);
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.
IndicatorsCollection methods
- iAC (HistoricalData data)
- iAD (HistoricalData data)
- iADX (HistoricalData data, int period)
- iADX (HistoricalData data, int period, MAMode mode)
- iADX (HistoricalData data, int period, MAMode mode, PriceType priceType)
- iAlligator (HistoricalData data, int jaw_period, int jaw_shift, int teeth_period, int teeth_shift, int lips_period, int lips_shift, MAMode mode, PriceType priceType)
- iAO (HistoricalData data)
- iATR (HistoricalData data, int period)
- iATR (HistoricalData data, int period, MAMode mode)
- iBands (HistoricalData data, int period)
- iBands (HistoricalData data, int period, MAMode mode)
- iBands (HistoricalData data, int period, MAMode mode, double deviation)
- iBands (HistoricalData data, int period, MAMode mode, double deviation, PriceType priceType)
- iBands (Func<int, double> func, int period, MAMode mode, double deviation)
- iBearsPower (HistoricalData data, int period, PriceType priceType)
- iBullsPower (HistoricalData data, int period, PriceType priceType)
- iBWMFI (HistoricalData data)
- iCCI (HistoricalData data, int period, MAMode mode)
- iCCI (HistoricalData data, int period, MAMode mode, PriceType priceType)
- iCCI (Func<int, double> func, int period, MAMode mode)
- iCustom (string name, HistoricalData data, object[] arguments)
- iDeMarker (HistoricalData data, int period)
- iEnvelopes (HistoricalData data, int period, MAMode mode, double deviation, PriceType priceType)
- iEnvelopes (Func<int, double> func, int period, MAMode mode, double deviation)
- iForce (HistoricalData data, int period, MAMode mode, PriceType priceType)
- iFractals (HistoricalData data)
- iGator (HistoricalData data, int jaw_period, int jaw_shift, int teeth_period, int teeth_shift, int lips_period, int lips_shift, MAMode mode, PriceType priceType)
- iIchimoku (HistoricalData data, int tenkan_sen, int kijun_sen, int senkou_span)
- iMA (HistoricalData data, int period, MAMode mode)
- iMA (Func<int, double> func, int period, MAMode mode)
- iMA (HistoricalData data, int period, MAMode mode, int ma_shift, PriceType priceType)
- iMA (Func<int, double> func, int period, MAMode mode, int ma_shift)
- iMACD (HistoricalData data, int fast_ema_period, int slow_ema_period, int signal_period)
- iMACD (HistoricalData data, int fast_ema_period, int slow_ema_period, int signal_period, PriceType priceType)
- iMFI (HistoricalData data, int period)
- iMomentum (HistoricalData data, int period)
- iMomentum (HistoricalData data, int period, PriceType priceType)
- iMomentum (Func<int, double> func, int period)
- InitIndicator (NETIndicator netIndicator, HistoricalData data, object[] arguments)
- iOBV (HistoricalData data, PriceType priceType)
- iOsMA (HistoricalData data, int fast_ema_period, int slow_ema_period, int signal_period, PriceType priceType)
- iRSI (HistoricalData data, int period)
- iRSI (HistoricalData data, int period, RSIMode mode)
- iRSI (HistoricalData data, int period, RSIMode mode, PriceType priceType)
- iRSI (Func<int, double> func, int period, RSIMode mode)
- iRVI (HistoricalData data, int period)
- iRVI (HistoricalData data, int period, MAMode mode)
- iSAR (HistoricalData data, double step, double koefficient)
- iStdDev (HistoricalData data, int period, MAMode mode, PriceType priceType)
- iStdDev (HistoricalData data, int period, MAMode mode, int ma_shift, PriceType priceType)
- iStdDev (Func<int, double> func, int period, MAMode mode)
- iStochastic (HistoricalData data, int kperiod, int dperiod, int slowing, MAMode mode)
- iWPR (HistoricalData data, int period)