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 | Swing Highs and Lows

If a high has two preceding highs (rising) and two succeeding highs (falling), it is considered a swing high

If a low has two preceding lows (falling) and two succeeding lows (rising), it is considered a swing low

The color of buffer can be changed from code : To obtain color of your choice -> Webcolors

#property indicator_colors

MetaTrader Experts, Indicators, Scripts and Libraries

47051