iDeMarker Indicator

Calculates the DeMarker indicator and returns its value.

Function Signature

double iDeMarker(string symbol, int timeframe, int period, int shift);

Parameters

  • symbol (string): Symbol name for calculation. NULL for current symbol.
  • timeframe (int): Timeframe. ENUM_TIMEFRAMES value. 0 for current chart timeframe.
  • period (int): Averaging period for calculation.
  • shift (int): Index of the value taken from the indicator buffer (shift relative to the current bar).
  • Return Value

  • double: Numerical value of the DeMarker indicator.
  • Example

    double val = iDeMarker(NULL, 0, 13, 1);
    

    Related Indicators

  • [iCustom](/indicators/icustom)
  • [iEnvelopes](/indicators/ienvelopes)