Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1450
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
Okay. But I can only look at it in my spare time - work, home, family, cat and children/grandchildren... Mother-in-law, yes...
Yes, cats...
I've gone off somewhere today to do a litter.
A beautiful little Scottish girl who likes to sleep on her back :)
Well, look at the code - Vitaly posted it directly
My question had nothing to do with Vitaly's code. Now I figured it out myself... it turns out that the code in the library controls the recalculation depth itself. That is, the first run recalculates the entire buffer, and on subsequent ones just the right amount... That's what I wanted to hear from you. I'm lazy like that. It's easier to ask than to figure it out myself... But sometimes I have to............
My question had nothing to do with Vitaly's code. Now I figured it out myself... it turns out that the code in the library controls the recalculation depth itself. That is, the first run recalculates the entire buffer, and on subsequent ones just the right amount... That's what I wanted to hear from you. I'm lazy like that. It's easier to ask than to figure it out myself... But sometimes I have to............
So, Vitali's code duplicated this function from SB, which you asked - and everything is right there in plain sight - one look is enough to understand the answer to your question.
So Vitaly's code duplicated this function from the SB you asked about - and everything is right there in plain sight - just a glance is enough to understand the answer to your question.
Did you see the tininess in the original?
Did you see how tough the original is?
I didn't really compare it. In my opinion, there is tininess in both files. And the logic is not clear at all - when the condition is empty and filling the buffer with an empty value is taken out of brackets of the condition. Well, my job is to make it to an A. I don't care how it works - let it be as it is.
I haven't done much comparing. I think it's a mess in both files. And the logic is not clear at all - when the condition is empty and filling the buffer with an empty value is taken out of brackets of the condition. Well, my job is to make it to an A. I'll leave it as it is.
My task is to understand from this code how to replaceiMAOnArray
That is, make as few changes to the existing code as possible and makeSo in Vitaly's code this function was duplicated from SB that you were asking about - and everything is right there in plain sight - it only takes one look to understand the answer to your question.
Well, you grabbed it... I don't know how to do that. I have to go through all the code thoroughly with understanding.
My task is to understand how to replaceiMAOnArray in this code.
That is, make as few changes to the existing code as possible and use it toTrying to understand this question, I see the following situation.
In your code it says this
and in the documentation
total
[in] Number of elements to calculate. 0 means all elements of the array.
As for redoing it with minimal changes, you're wrong. It's easier to take the algorithm and redo it.
Good afternoon, please help me to understand...
MathMax returns the maximum of two numeric values, i.e. it returns the maximum numeric value from two identical arrays high[rates_total] with a difference of -1 and -2 bars?
In simple words: in the first array 12345 and in the second 1234 the function will return 5?