The following lists alphabetically general-purpose PTL indicators.
iAC
Calculates the Accelerator/Decelerator Indicator.
Syntax
Parameters
- shift - Index number of the bar to inspect.
iAD
Calculates the Accumulation/Distribution Indicator
Syntax
Parameters
- shift - Index number of the bar to inspect.
iADX
Calculates the Average Directional Movement Index
Syntax
Parameters
- period - Period for which to compute the indicator.
- line - Number of the indicator value buffer. It's equal to number of line of indicator.
- shift - Index number of the bar to inspect.
- index - Index of the value in the buffer (the last bar index is 0).
iADXEx
Calculates the Average Directional Movement Index (extended) with price's type
Syntax
Parameters
- period - Period for which to compute the indicator.
- appliedPrice - Applied prices, example, PRICE_CLOSE, PRICE_OPEN and etc.
- line - Number of the indicator value buffer. It's equal to number of line of indicator.
- index - Index number of the bar to inspect.
- ma_mode - Index of the value in the buffer (the last bar index is 0) on the main line
iAlligator
Calculates the Alligator Index with price's type
Syntax
Parameters
- jawPeriod - Number of periods for calc jaw of alligator (usually 13).
- jawShift - Shift to forward of jaw of alligator (usually 8)
- teethPeriod - Number of periods for calc teeth of alligator (usually 8).
- teethShift - Shift to forward of teeth of alligator (usually 5)
- lipsPeriod - Number of periods for calc lips of alligator (usually 5).
- lipsShift - Shift to forward of lips of alligator (usually 3)
- ma_method - Determines the kind of moving average. Values: MODE_SMA, MODE_EMA, MODE_SMMA, MODE_LWMA.
- appliedPrice - Applied prices, example, MODE_CLOSE, MODE_OPEN and etc.
- mode - Source of data. Example, MODE_GATORJAW, MODE_GATORLIPS and MODE_GATORTEETH.
- shift - Index number of the bar to inspect.
iAO
Calculates the Awesome Oscillator
Syntax
Parameters
- shift - Index number of the bar to inspect.
iATR
Calculates the Average True Range
Syntax
Parameters
- period - Period for which to compute the indicator.
- shift - Index number of the bar to inspect.
- ma_mode - Index of the value in the buffer (the last bar index is 0) on the main line.
iBands
Calculates the Bollinger Bands Indicator
Syntax
Parameters
- period - Period for which to compute the indicator.
- deviation - Deviation from the main line.
- mode - Index of the value in the buffer (the last bar index is 0).
- shift - Index number of the bar to inspect.
- ma_mode - Index of the value in the buffer (the last bar index is 0) on the main line.
- confidence - value of confidence level
iBandsEx
Calculates the Bollinger Bands Indicator (extended)
Syntax
double iBandsEx(int period, double deviation, int bandsShift, int appliedPrice, int mode, int shift, int ma_mode, double confidence) double iBandsEx(int period, double deviation, int bandsShift, int appliedPrice, int mode, int shift) |
Parameters
- period - Period for which to compute the indicator.
- deviation - Deviation from the main line.
- bandsShift - Index number of the bar of calculated values to inspect.
- appliedPrice - Applied price. Example, MODE_OPEN, MODE_CLOSE.
- mode- Index of the value in the buffer (the last bar index is 0).
- shift - Index number of the bar to inspect.
- ma_mode - Index of the value in the buffer (the last bar index is 0) on the main line.
- confidence - value of confidence level
iBearsPower
Calculates the Bears Power Indicator
Syntax
Parameters
- period - Period for which to compute the indicator.
- appliedPrice - Applied price. Example, MODE_OPEN, MODE_CLOSE.
- shift - Index number of the bar to inspect.
iBullsPower
Calculates the Bulls Power Indicator
Syntax
Parameters
- period - Period for which to compute the indicator.
- appliedPrice - Applied price. Example, MODE_OPEN, MODE_CLOSE.
- shift - Index number of the bar to inspect.
iBWMFI
Calculates the Market Facilitation Index
Syntax
Parameters
- shift - Index number of the bar to inspect.
iCCI
Calculates the Commodity Channel Index
Syntax
Parameters
- period - Period for which to compute the indicator.
- shift - Index number of the bar to inspect.
- ma_mode - Index of the value in the buffer (the last bar index is 0) on the main line.
iCCI
Calculates the Commodity Channel Index (the mode is MODE_SMA)
Syntax
Parameters
- period - Period for which to compute the indicator.
- shift - Index number of the bar to inspect.
iCCIEx
Calculates the Commodity Channel Index (extended), by default the mode is MODE_SMA
Syntax
Parameters
- period - Period for which to compute the indicator.
- appliedPrice - Applied price. Example, MODE_OPEN, MODE_CLOSE.
- shift - Index number of the bar to inspect.
- ma_mode - Index of the value in the buffer (the last bar index is 0) on the main line.
iDeMarker
Calculates the DeMarker Indicator
Syntax
Parameters
- period - Averaging period for calculation.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iEnvelopes
Calculates the Envelopes Indicator
Syntax
Parameters
- period - Averaging period for calculation.
- ma_period - Averaging period for calculation of the main line.
- deviation - Percent deviation from the main line.
- appliedPrice - Applied price. Example, MODE_OPEN, MODE_CLOSE.
- mode - Indicator line index.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iForce
Calculates the Force Indicator
Syntax
Parameters
- period - Averaging period for calculation.
- appliedPrice - Applied price. Example, MODE_OPEN, MODE_CLOSE.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
- ma_mode - MA method
iFractals
Calculates the Fractals Indicator
Syntax
Parameters
- mode - Indicator line index.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iGator
Calculates the Gator Oscillator
Syntax
Parameters
- jawPeriod - Number of periods for calc jaw of alligator (usually 13).
- jawShift - Shift to forward of jaw of alligator (usually 8)
- teethPeriod - Number of periods for calc teeth of alligator (usually 8).
- teethShift - Shift to forward of teeth of alligator (usually 5)
- lipsPeriod - Number of periods for calc lips of alligator (usually 5).
- lipsShift - Shift to forward of lips of alligator (usually 3)
- ma_method - Determines the kind of moving average. Values: MODE_SMA, MODE_EMA, MODE_SMMA, MODE_LWMA.
- appliedPrice - Applied prices, example, MODE_CLOSE, MODE_OPEN and etc.
- mode - Indicator line index.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iIchimoku
Calculates the Ichimoku Kinko Hyo Indicator
Syntax
Parameters
- tenkan_sen - Tenkan Sen averaging period.
- kijun_sen - Kijun Sen averaging period.
- senkou_span - Senkou span averaging period.
- mode - Indicator line index.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iMA
Calculates the Moving Average
Syntax
Parameters
- mode - Indicator line index.
- ma_method - MA method. Example, MODE_SMA
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iMAEx
Calculates the Moving Average (extended)
Syntax
Parameters
- mode - Indicator line index.
- ma_method - MA method. Example, MODE_SMA
- ma_shift - MA shift.
- appliedPrice - Applied price
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iMACD
Calculates the Moving Averages Convergence/Divergence Indicator
Syntax
Parameters
- fast_ema_period - Number of periods for fast moving average calculation.
- slow_ema_period - Number of periods for slow moving average calculation.
- signal_period - Number of periods for signal moving average calculation.
- mode - Indicator line index.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iMACDEx
Calculates the Moving Averages Convergence/Divergence Indicator (extended)
Syntax
double iMACD(int fast_ema_period, int slow_ema_period, int signal_period, int appliedPrice, int mode, int shift) |
Parameters
- fast_ema_period - Number of periods for fast moving average calculation.
- slow_ema_period - Number of periods for slow moving average calculation.
- signal_period - Number of periods for signal moving average calculation.
- appliedPrice - Applied Price.
- mode - Indicator line index.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iMFI
Calculates the Money Flow Index
Syntax
Parameters
- period - Period (amount of bars) for calculation of the indicator.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iMom
Calculates the Momentum Indicator
Syntax
Parameters
- period - Period (amount of bars) for calculation of the indicator.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iMomEx
Calculates the Momentum Indicator (extended)
Syntax
Parameters
- period - Period (amount of bars) for calculation of the indicator.
- appliedPrice - Period (amount of bars) for calculation of the indicator.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iOBV
Calculates the On Balance Volume Indicator
Syntax
Parameters
- appliedPrice - Period (amount of bars) for calculation of the indicator.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iOsMA
Calculates the Moving Average of Oscillator
Syntax
Parameters
- fast_ema_period - Number of periods for fast moving average calculation.
- slow_ema_period - Number of periods for slow moving average calculation.
- signal_period - Number of periods for signal moving average calculation.
- appliedPrice - Period (amount of bars) for calculation of the indicator.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iRSI
Calculates the Relative Strength Index. By default rsi_method equal to MODE_RSI_SIMPLE
Syntax
Parameters
- period - Number of periods for calculation.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
- rsi_method - RSI method (Example, MODE_RSI_SIMPLE)
iRSIEx
Calculates the Relative Strength Index (extended). By default mode is equal to MODE_SMA and rsi_method is equal to MODE_RSI_SIMPLE
Syntax
Parameters
- period - Number of periods for calculation.
- period2 - Number of periods for calculation.
- appliedPrice - Applied price.
- mode - Indicator line index.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
- mode - Indicator line index on the main line.
- rsi_method - RSI method. Example, MODE_RSI_SIMPLE
iRVI
Calculates the Relative Vigor Index
Syntax
Parameters
- period - Number of periods for calculation.
- mode - Indicator line index.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
- ma_mode - Indicator line index on the main line.
iSAR
Calculates the Parabolic Stop and Reverse system indicator. By default coefficient is equal to 0.2
Syntax
Parameters
- step - Increment, usually 0.02.
- maximum - Maximum value, usually 0.2.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
- koeff - Coefficient, usually 0.2.
iSTO
Calculates the Stochastic Oscillator Indicator
Syntax
Parameters
- kperiod - %K line period.
- dperiod - %D line period.
- slowing - Slowing value.
- method - MA method.
- mode - Indicator line index.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
iWPR
Calculates the Larry Williams' Percent Range Indicator
Syntax
Parameters
- period - Number of periods for calculation.
- shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).