DNC indicator - Donchian channel.
The indicator has three input parameters:
- Period - calculation period
- Analyze current bar - consider the value of the current bar in calculations (Yes/No)
- Show middle line - display the channel middle line (Yes/No)
Calculation:
Top = Max(High, Period) Bottom = Min(Low, Period) Middle = (Top + Bottom) / 2
