User login

  

Indicators

The following lists alphabetically general-purpose PTL indicators.

iACiBearsPoweriFractalsiMomEx
iADiBullsPoweriGatoriOBV
iADXiBWMFIiIchimokuiOsMA
iADXExiCCIiMAiRSI
iAlligatoriCCIiMAExiRSIEx
iAOiCCIExiMACDiRVI
iATRiDeMarkeriMACDExiSAR
iBandsiEnvelopesiMFIiSTO
iBandsExiForceiMomiWPR

 

 

 

iAC

Calculates the Accelerator/Decelerator Indicator.

Syntax

double iAC( int shift)

Parameters

  • shift - Index number of the bar to inspect.

 

iAD

Calculates the Accumulation/Distribution Indicator

Syntax

double iAD( int shift)

Parameters

  • shift - Index number of the bar to inspect.

 

iADX

Calculates the Average Directional Movement Index

Syntax

double iADX( int period, int line, int shift, int index)

double iADX( int period, int line, int index)

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

double iADX( int period, int appliedPrice, int line, int index)

double iADX( int period, int appliedPrice, int line, int index, int ma_mode)

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

double iAlligator( int jawPeriod, int jawShift, int teethPeriod, int teethShift, int lipsPeriod,

                  int lispShift, int ma_method, int appliedPrice, int mode, int shift)

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

double iAC( int shift)

Parameters

  • shift - Index number of the bar to inspect.

 

iATR

Calculates the Average True Range

Syntax

double iATR(int period, int shift, int ma_mode)

double iATR(int period, int shift)

\

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

double iBands(int period, double deviation, int mode, int shift, int ma_mode, double confidence)

double iBands(int period, double deviation, int mode, int shift)

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

double iBearsPower( int period, int appliedPrice, int shift)

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

double iBullsPower( int period, int appliedPrice, int shift)

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

double iBWMFI( int shift)

Parameters

  • shift - Index number of the bar to inspect.

 

iCCI

Calculates the Commodity Channel Index

Syntax

double iCCI(int period, int shift, int ma_mode)

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

double iCCI(int period, int shift)

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

double iCCIEx(int period, int appliedPrice, int shift, int ma_mode)

double iCCIEx(int period, int appliedPrice, int shift)

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

double iDeMarker(int period, int shift)

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

double iEnvelopes(int period, int ma_period, double deviation, int appliedPrice, int mode, int shift)

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

double iForce(int period, int appliedPrice, int shift, int ma_mode)

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

double iFractals(int mode, int shift)

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

double iGator(int jaw_period, int jaw_shift, int teeth_period, int teeth_shift, int lips_period,

             int lips_shift, int ma_method, int appliedPrice, int mode, int shift)

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

double iIchimoku(int tenkan_sen, int kijun_sen, int senkou_span, int mode, int shift)

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

double iMA(int mode, int ma_method, int shift)

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

double iMAEx(int mode, int ma_method, int ma_shift, int appliedPrice, int shift)

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

double iMACD(int fast_ema_period, int slow_ema_period, int signal_period, 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.
  • 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

double iMA(int period, int shift)

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

double iMom(int period, int shift)

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

double iMomEx(int period, int appliedPrice, int shift)

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

double iOBV(int appliedPrice, int shift)

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

double iOBV(int fast_ema_period, int slow_ema_period, int signal_period, int appliedPrice, 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 - 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

double iRSI(int period, int shift, int rsi_method)

double iRSI(int period, int shift)

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

double iRSIEx(int period, int period2, int appliedPrice, int mode, int shift, int ma_mode int rsi_method)

double iRSIEx(int period, int period2, int appliedPrice, int mode, int shift)

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

double iRVI(int period, int mode, int shift, int ma_mode)

double iRVI(int period, int mode, int shift)

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

double iSAR(double step, double maximum, int shift, double koeff).

double iSAR(double step, double maximum, int shift)

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

double iSTO(int kperiod, int dperiod, int slowing, int method, int mode, int shift)

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

double iSAR(int period, int shift)

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).
12345