Topic: Donchian not working...

Hi there,

I am very happy with most FSB indicators working in MT4. However, Donchian Channel seems not to work. While all other indicators in MT4 show values which change according to the attached forex chart, all Donchian values always remain zero. And the entry and exit conditions do not work either which confirms that the indicator does not work in reality in MT4.

Someone else having those problems?

Thank you for your help.

Kind regards

Re: Donchian not working...

I cannot reproduce that issue. Donchian Channel works in all slots for me.

http://s32.postimg.org/a8e09bnk1/screenshot_1592.jpg

Can you attach your strategy?

Re: Donchian not working...

Thank you for your quick reply and the screenshot. Indeed, when I change the Donchian Channel parameters, it suddenly begins working. Apparently the reason is that some parameters for Donchian Channel do not make sense in MT4.

However, it seems that within FSB, the Donchian Channel makes sense with those parameters chosen by the automatic generator and optimizer.

I have attached the strategy. Thank you for having a look.

Kind regards

Post's attachments

TP-EURUSD-15min - 1.mq4 227.47 kb, 6 downloads since 2016-05-08 

You don't have the permssions to download the attachments of this post.

Re: Donchian not working...

You are right!

The problem comes from the shift parameter and the fact the EA loads a limited number of bars in order to provide faster calculations.

You can fix by changing  line number 2327 of your EA from:

   for(int bar=firstBar; bar<Data.Bars-shift; bar++)

to:

   for(int bar=period+previous+2; bar<Data.Bars-shift; bar++)

I'll also make this correction in the next version of the Donchian Channel indicator.

Re: Donchian not working...

Please find attached a fixed MQL version of Donchian Channel.

Installation: Download the attached file and put it in the following folder:

C:\Program Files\Forex Strategy Builder Pro\User Files\MT4 Files\MQL\Forexsb.com\Indicators

You have to reexport your experts that use Donchian Channel.

Post's attachments

DonchianChannel.mqh 12.85 kb, 18 downloads since 2016-05-08 

You don't have the permssions to download the attachments of this post.

Re: Donchian not working...

Thanks a lot for your fabulous service, it is working now.

Kind regards