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

DNC Percentage oscillator displays a relative price position inside the Donchian channel in a separate window.

It has two configurable parameters:

  • Period - calculation period
  • Analyze current bar - consider the value of the current bar in calculations (Yes/No)

Calculation:

Percentage = ((Close - Bottom) / (Top - Bottom)) * 100.0  

where:

Top    = Max(High, Period) Bottom = Min(Low, Period)

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. DNC Percentage

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. DNC Percentage and Donchian channel

22193