
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Even though MODE_SMA is the same, it's still not a good idea to use it.
I understand this very well, and I've even written above why not. I've been programming since '96, I started trying MQL somewhere in 2009-10 when I discovered MT after other terminals :).
So I know the rules of "good and correct code" :)
Even though MODE_SMA matches, you still shouldn't use it.
Can you think of any reason why you shouldn't use it?
Or is there only one reason, as always, spread fingers in the way?
Not only MODE_SMA matches but all other sliding methods as well. And even if period of iMAOnArray() doesn't coincide with period of iBandsOnArray() there's no need to double copy a part of buffer array to user array, you just should understand what happens when these functions are called.
Can you think of any reason why you shouldn't use it?
Or is there only one reason, as always, spread fingers in the way?
Not only MODE_SMA matches, but all other sliding methods as well. And even if period of iMAOnArray() doesn't coincide with period of iBandsOnArray() there's no need to copy a part of buffer array to user array twice, you just should understand what happens when these functions are called.
Can you think of any reason why you shouldn't use it?
...
I can. But I don't want to.
I described the reasons for inconsistency in my post on page 4. If you do not take your word for it, set the original one on M1 chart and your version below, enter LWMA smoothing for MA and period 100.
Sergey, I did not immediately understand the reason for all your manipulations, in the normal way there is no need to do such tricks. If you want to limit the history for recalculation, there are other ways to do it, and use these functions for the entire array, that is, where you want to put 300 you can safely put 0 and there won't be any brakes.
And once again I will try to explain that referring to "you" with all respect and kindness is much better than "you" with a small letter and the address where "you" are being sent.
You don't see my answer either? I pointed out why you shouldn't use it.
I can. But I don't want to.
You're doing the right thing or you'll break your fingers. Take it easy.
ps; wait for an answer, I'm going to rest...
You're doing the right thing or you'll break your fingers. Take it easy.
Sergey, I did not immediately understand the reason for all your manipulations, in the normal way there is no need to do such tricks. If you want to limit the history for recalculation, there are other ways to do it, and use these functions for the whole array, that is, where you want to put 300 you can safely put 0 and there won't be any brakes.