MQL4 iFractals Indicator

Overview

Calculates the Fractals indicator and returns its value.

Function Signature

double iFractals(string symbol, int timeframe, int mode, int shift);

Parameters

  • symbol (string): Symbol name for calculation. NULL uses the current symbol.
  • timeframe (int): Timeframe. Use ENUM_TIMEFRAMES values. 0 uses the current chart timeframe.
  • mode (int): Indicator line index. Use Indicators line identifiers enumeration.
  • shift (int): Index of the value from the indicator buffer (shift relative to the current bar).
  • Returned Value

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

    double val = iFractals(NULL, 0, MODE_UPPER, 3);
    

    Related Functions

  • iForce
  • iGator
  • Platform Support

  • MQL4
  • Related Resources

  • [MQL4 Reference](/)
  • [Technical Indicators](/indicators)
  • [Download MQL4 Help](https://www.mql5.com/files/docs/mql4.chm)