Errors, bugs, questions - page 3130

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
I don't understand this code at all.
What does the highlighted & in this code mean? And in which loop should if(h_plus) be executed? Didn't you miss any curved brackets?
MQL bool is true if greater than 0, in other languages a boolean value is true only if == 1
I don't understand this code at all.
What does the highlighted & in this code mean? And in which loop should if(h_plus) be executed? Aren't you missing any curved brackets?
In fact, I came across this feature by accident. That's not what I wanted...
or
The trouble is that n can be quite large, so I wanted to wrap up this long chain of conditions into a compact for. I tried it this way:
but it turned out to be a bit of a mess. Well at least because h_plus with this algorithm will have to take the whole sum of checked conditions, including the condition with redundant index array check, which didn't happen in first unwrapped if, without for. And other varnings spoil the picture.
Is this even worth considering? Is it possible to override it?
Something like this:
Bitwise AND operation of binary representations of y and x y &= x;
https://www.mql5.com/ru/docs/basis/operations/assign
Which line of your snapshot has &=
Bitwise AND operation of binary representations of y and x y &= x;
https://www.mql5.com/ru/docs/basis/operations/assign
I don't understand this code at all.
What does the highlighted & in this code mean?
I can only answer for &= immediately:
MQL5 Reference Guide / Language basics / Operations and expressions / Assignment operations:Bitwise operation AND of binary representations of y and x y &= x;
similar to the cumulative variable y:
Increasing the value of the y variable by x y += x;
But this is my first experience of using &=, so I could be wrong.
And in which loop should the if(h_plus) be executed? Did you miss the curved brackets?
Which line of your image has &=
https://stackoverflow.com/questions/33304407/c-meaning-and
You think too much of me... I never learned this enemy language... so it happened... and now it's too late.
Something like that:
I've already tried both break and even return in the heat of the moment, but it only made things worse. I'll try to simplify the code some more and rethink with break...