
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
So stop being stupid together with Fedoseyev and answer the question who gave you the right to forbid the discussion of mql4 in this thread? The discussion is comparable to mql5.
Lack of clarity of thought for statements leave it to those who are better at it.
And in this thread for 12 pages I have only to refute your conjectures, such as that we should zeroize indicator buffers in the loop.Not to zero; to initialize the elements of an array that is an indicator buffer.
If we take the classical indicator, at the first start or when the history is loaded, all elements of the array are reinitialized - the indicator recalculates its values for all elements of the array, that is, it forcibly assigns certain values to each element of the array - I hope it is clear?
Not to zero, but to initialize the elements of the array, which is the indicator buffer.
If we take the classic indicator, then on the first start or when history is loaded, all elements of the array are reinitialized - the indicator recalculates its values for all elements of the array, i.e. it forcibly assigns certain values to each element of the array - I hope this is clear?
I do, but you do not seem to understand it. What is the difference between zeroing an array and filling all the elements with zeroes?
I'm sorry, I've said it again in a way that you don't find convenient. What is the difference between zeroing an array and initializing all the array items with zeroes?
It makes sense to me, but it doesn't to you. What is the difference between zeroing an array and filling all the elements with zeros?
What is your understanding of the term "zeroing of array"? Code please.
Nothing other than assigning ALL elements of the array a value of 0 or 0.0 which is more competent for a double array.
Code? Please, we have an array of type double, it can be zeroed in several ways.
1. in a loop. your suggestion. I'm too lazy to write a loop, you'll see for yourself.
2. ArrayInitialize(array, 0.0);
3. ZeroMemory(array);
So, if I don't need any calculations over the whole history of the indicator, who forbids to assign zeros to ALL elements of the array buffer in the way of 2 or 3 ?
///
So if I don't need any calculations on the whole history of the indicator, then who forbids assigning zeros to ALL elements of the buffer array in way 2 or 3 ???
Nothing like assigning ALL elements of an array a value of 0 or 0.0 which is more intelligent for a double array.
Code? Please, we have an array of type double, it can be zeroed in several ways.
1. in a loop. your suggestion. I'm too lazy to write a loop, you'll see for yourself.
2. ArrayInitialize(array, 0.0);
3. ZeroMemory(array);
So, if I don't need any calculations over the whole history of the indicator, who forbids to assign zeros to ALL elements of the array buffer in the way of 2 or 3 ?
Forum on trading, automated trading systems and strategy testing
prev_calculated
fxsaber, 2016.10.19 07:47
ArrayFill(Buffer, prev_calculated, rates_total - prev_calculated, EMPTY_VALUE);
I have seen this. But to explain why it doesn't fit you need to repeat everything from page 7 and a bit before.
No problem in principle, a crutch has been found. Only one question remains: What prevents or makes it difficult to do as in mql4.
I have seen this. But to explain why it doesn't fit you need to repeat everything from page 7 and a bit before.
No problem in principle, a crutch has been found. Only one question remains: What prevents or makes it difficult to do as in mql4.
Only one question remains: What prevents or makes it difficult to do as in mql4.
There was no one in this thread who could do it. Instead of contacting those who can (Service Desk), they started arguing and proving their point.
Forum addiction will not do any good. If you have a specific proposal to the developers - contact Service Desk. So far all my requests have been very carefully studied and commented on by the developers. They have made appropriate corrections/additions. Appreciate your time. Less visit the forum.