DNC indicator - Donchian channel.
The indicator has three input parameters:
Calculation:
Top = Max(High, Period) Bottom = Min(Low, Period) Middle = (Top + Bottom) / 2

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22191