Indicators: Donchian Channel

 

Donchian Channel:

The indicator draws the Donchian channel.


Author: Scriptor

 

Hi Scriptor, thank you for your indicator. I've downloaded it from MT5 but somehow it is failing. When I compile the code using the editor I get:

'Dochian_Channel.mq5'	Dochian_Channel.mq5
ambiguous access, can be one of:        Dochian_Channel.mq5     118     19
   0. enumeration value 'MODE_CLOSE'            0       0
   1. enumeration value 'MODE_CLOSE'    Dochian_Channel.mq5     45      4
1 errors, 0 warnings            2       1

Can you suggest how to fix it?

 
gpepe07 :

Привет, Scriptor, спасибо за индикатор. Я скачал его с MT5, но почему-то не работает. Когда я компилирую код с помощью редактора, я получаю:

Подскажите, как исправить?

Correct line 118      if(InpMode==MODE_CLOSE)  on      if(InpMode==0)

Reason: