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)

 
There is an error in the indicator code. That's why it doesn't compile :(
 
After updating the platform, the code is showing an error when compiling. error
Files:
Capturar.PNG  8 kb
 
Antonio Marques #:
After a platform update, the code is showing an error when compiling.

Change the two places you've mentioned from MODE_CLOSE to MODE_CL and that should solve it. He's saying that he doesn't know which value to use because there's a number since he's using MODE_CLOSE.