Errors, bugs, questions - page 2120
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
Doesn't look like it's narrowly focused. Doesn't look like it's in the public domain yet.
It may well be the internal product of analysis of its own publicity, forum and something else
The description somehow corresponds poorly with only internal usage.
?
Result: 3 4
What's the difference?
?
Result: 3 4
What is the difference?
There is, of course, a difference. In the first case, first goes ++a, then +, then ++a.
The second is b+=1, then b+=1, then b+b.
Can you advise newbies? In the past, in MQL4, when writing a condition in an EA, we used to simply write Close[0] indicating the close price, for instance, a candle closed above the moving average and the order was opened. In MQL5 (for Forts) it doesn't work, different indicators can be compared via handles, but simple candlestick analysis will not work. Maybe the candlestick data (high,low,open,close) have to be declared somewhere? But for MT4, I just wrote Close[0] in the condition and the system realized that this is the close price of the current bar.
Use function CopyXXXX
There is, of course, a difference.
The second is b+=1, then b+=1, then b+b.
If you follow this logic then
First c+=1, then c+c and the result is 1+1= 2. And the result = 1
If you follow this logic then
First c+=1, then c+c and the result is 1+1= 2. And the result = 1
It only works incorrectly in the script, and it works fine in the EA.
I mean the previous example.
If you follow that logic then
First c+=1, then c+c and the result is 1+1= 2. And the result = 1
You're missing the logic.
You're missing the point.
If I don't get the logic, then why is the result https://www.mql5.com/ru/forum/1111/page2140#comment_6484866 the same in both cases in C99\C++?