Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Advanced_Fractal_Envelopes

Indicator Advanced Fractal Envelopes builds two envelopes on the mean prices of the pre-defined number of upper and lower fractals and the central line.

It has three adjustable parameters:

  • Average - number of fractals to build a moving average on their prices
  • Show central line - show the central line
  • Show fractals - show the fractals

Calculations:

Top     = AvgFractUp
Bottom  = AvgFractDn
Central = (AvgFractUp + AvgFractDn) / 2.0

where:

AvgFractUp = SMA(SumAvgUp, Average)
AvgFractDn = SMA(SumAvgDn, Average)

SumAvgUp - sum of the prices of upper fractals within the Average number
SumAvgDn - sum of the prices of lower fractals within the Average number

MetaTrader Experts, Indicators, Scripts and Libraries

23425