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 | Wide_Narrow_Spread

Indicator Wide/Narrow Spread bar displays the largest and the smallest bar over the selected period as colored candles.

It has three adjustable parameters:

  • Range - search range
  • Show wide spread bar - show the largest bar (Yes/No)
  • Show narrow spread bar - show the smallest bar (Yes/No)

Calculations:

  • If Max = HL,
    WS = Max/Point and the candle color is blue
  • If Min = HL,
    NS = Min/Point and the candle color is red

where:

HL = High - Low
Max, Min - the maximum and minimum HL within the Range

MetaTrader Experts, Indicators, Scripts and Libraries

23535