
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 have a suggestion to the developers - make default values for all built-in types. C++ is not a model in this sense.
You will really save a lot of time and nerves for yourself and those answering the questions as above.
while((a/b)<1 && !IsStopped())//---------
what equals a?
By default (in the example above) a=2.652664430987377e-314 , but in this case the while loop works its way to a+b=30.
Of course, you can immediately assign double a=1;
But the situation doesn't change.
The output is always a+b=30
And return returns 0 , the debugger shows it all.
What are these glitches or am I missing something?
Initialisation of variables:
Any variable can be initialised when defined. If the variable is not explicitly initialized, the value stored in the variable can be whatever you want. Implicit initialization is not performed.
Fia:
The output is always a+b=30
And return returns 0 , the debugger shows it all.
I can hardly believe it.
What's stopping you from checking it out?
Especially for this purpose I gave a simple code.
I have two builds of 687 (on different brokers), tried to compile both with the same result (but sometimes I get 30 correctly), I can not understand whether I'm dumb or the ski is not moving!
Check I do not know what to think.
So far, it hasn't been possible to reproduce. So let's start at the beginning.
What bit rate, OS?
No luck with reproduction yet.
What bit rate, OS?
Win7 64 bit
Don't even know, just unloaded just now loaded MT5 compiled, same thing.
I can take off video (will think I'm making fun of it).
P.S. Now i just tapped it, once again it worked 30, i compiled it and now it works null a few more times (magic)
Good afternoon.
I'm trying to use MQL5.I have disassembled exp_tema.mq5 and modified the code. Now I should print in log MA of each candle (last 20). But I don't understand why some entries are missing in the log. I noticed that if ma[3] is missing in log, then there is no ma[13]. Why is this happening? Where is the error there?
Win7 64 bit
I don't know, just unloaded MT5 now, ran a copy, same thing.
I can take off a video or something (i think i'm just messing with you).
You do not need a screenshot.
Make a detailed Print in the code so that we can see in the log what the intermediate variables are equal to.