![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Greetings!
Today again the XAUUSD Expert Advisor traded at a strange price:
AlpariNZ-MT5 server, demo account.
Is it a simple non-market price ejection? Has anybody encountered it?
Greetings!
The XAUUSD Expert Advisor traded at a strange price again today:
AlpariNZ-MT5 server, demo account.
Is it a simple non-market price ejection? Has anybody encountered it?
Hello, the signals tab in MT4 is gone, was there in the morning, came in the evening and it's gone. And now the popup is not executing, what to do please advise
If it was a demo, if it were a real account you could ask the broker and already ask questions to Service Desk on the basis of his response. I'm just wondering what is the reason for that.
I wouldn't say no to such a 'binge' in real life either... ;-)
But this situation is not the first time, and it confuses statistics of Expert Advisors.
I don't have any complaints, I just wonder why it happens.
I wouldn't say no to such a 'binge' in real life either... ;-)
But this situation is not the first time, and it confuses statistics of Expert Advisors.
I have no complaints, I just wonder why it happens.
To improve programming purity I would like to ask the public about this.
Suppose there is a flag (bool Flag) declared globally. When certain events/conditions occur, it must be set to a certain value.
The first variant:
Second option:
Which option:
1. faster in terms of performance?
2. If I may say so, "more professional"?
This code section is supposed to get control quite often, e.g. every tick.
Of course, the first variant is faster. Fewer instructions, and also one less comparison/branching.
Thank you.
Still decided to check for sure. Strange as it may seem, the results show that the comparison operation is faster than the assignment operation.
Result:
Experts, could you please comment on the situation?
I decided to check for sure, though. Oddly enough, the results show that the comparison operation is faster than the assignment operation.
Result:
Experts, could you please comment on the situation?
Can't you see that in the second case assignment is performed only once?
In other words, all that's left is comparison, which is much faster than direct assignment, which is the case in the first test. The results are absolutely correct.
Can't you see that in the second case the assignment is done only once?
That is, all that is left is the comparison, which is much faster than the direct assignment, which is in the first test. The results are absolutely correct.
So, it appears that I phrased my question differently the first time?
Absolutely.
And it's too bad that you don't understand such simple things.