Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
DNC - indicator for MetaTrader 5
- Views:
- 4619
- Rating:
- Published:
- 2018.10.25 18:35
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22191