Why are you "writing code for Donchian channel."?
If you would have searched here or if you just click on the link provides by MQ about Donchian channel you would have found at least this article that contains not only the indicator but as well the trading system. And believe me its easier to amend a working system than trying to write everything from the scratch - especially for beginner.
Bear in mind there's almost nothing that hasn't already been programmed for MT4/MT5 and is ready even for you.
Its easier and the result has fff: far fewer faults than a do-it-yourself-EA generally speaking!
Why are you "writing code for Donchian channel."?
If you would have searched here or if you just click on the link provides by MQ about Donchian channel you would have found at least this article that contains not only the indicator but as well the trading system. And believe me its easier to amend a working system than trying to write everything from the scratch - especially for beginner.
Bear in mind there's almost nothing that hasn't already been programmed for MT4/MT5 and is ready even for you.
Its easier and the result has fff: far fewer faults than a do-it-yourself-EA generally speaking!
Hi Carl, I appreciate your suggestion. But writing a code by self help fine tune skills and gives a better learning. I can easily copy, but i wanted to know where am i wrong.
Here, i even tried a for loop to calculate Highest/Lowest, but still there was same error. I you can point my mistake, i will be greatful.
For series arrays, count down.
int first = (rates_total==prev_calculated) ? 0 : (prev_calculated==0) ? rates_total-1-Bar_Period : rates_total-1-prev_calculated; for(int i = first ; i>=0 ; i--)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi experts.
I tried writing code for Donchian channel. But every time the new bar comes, the channel drops to ZERO.
I tried everything but still the same issue. Please help and guide me, where am I wrong.