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 | MI Fractal

Original author:

Oreshkin A.V.

A Fractal indicator with extended functionality.

You can specify the number of candlesticks on each side for fractal determination, and also the minimum difference between extreme points and adjacent peaks:

//+----------------------------------------------+
//| Indicator input parameters                   |
//+----------------------------------------------+
input uint LeftCount=10;  // Number of candles to the left
input uint RightCount=2;  // Number of candles to the right
input uint MinDiff=10;    // Minimum distance from extreme points to peaks 
input int  UpLable=217;   // Up fractal label
input int  DnLable=218;   // Down fractal label

The original code has been published in Code Base on 27.12.2012.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. The MI_Fractal indicator

12691

Best MetaTrader Indicators + Profitable Expert Advisors