Questions from Beginners MQL5 MT5 MetaTrader 5 - page 820

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
Study the maths. Confused between two pine trees...
There's this:
Questions about begin:
1. What is it? Its value = 0. Is it an index?
2. What is it essentially? What is meaningful data? What other kinds of data are there?
3. On what basis is this value calculated? And what variations are possible in principle? For example, can meaningful data not start at index 0 but at index 5?
4. Why is this parameter inserted into OnCalculate?
If I have missed where it is written in the help, please just point it out.
Can anyone advise how to get rid of these multi-digit values in the debug window (variables are normalised)?
Can anyone advise how to get rid of these multi-digit values in debug window (variables are normalized)?
Add a string variable, set it to DoubleToString() and watch it in the debug window.
You could put it all in a macro #ifdef _DEBUG
Add a string variable, set it to DoubleToString() and watch it in the debug window.
You could put it all in a macro #ifdef _DEBUG
Thanks, but the question arises - these multi-digit values, do they correspond to reality or so, "light play".
The point is not that it should look nice, but which values are used for further calculations.
Thank you, but the question arises - are these multi-valued values true, or are they just "light play".
It's not about making it look nice, but about what values are used for further calculations.
To be sure, it is recommended to use NormalizeDouble() with a given accuracy.
These are the multi-meaning ones. And they sometimes spoil the picture, especially in comparison expressions.
To be sure, it is recommended to use NormalizeDouble() with specified accuracy.
So it's these "buggers" that come out of the normalised values. There seems to be something missing in this soup (MT5).
Until now I naively believed that normalisation is the truth in the last resort.
Could you please show me a code fragment where the problem occurs. Perhaps the cause is something else.
Until now, I naively believed that normalisation was the truth in the last resort.
Could you please show me a code fragment where the problem occurs. Perhaps the cause is something else.
Here's a snippet, though, which is enough to see the "effect".
Here is the result:
It's the same with or without normalisation.
Андрей:
It's the same with or without normalisation.
Yeah.
Actually, in comparison expressions (as if "on the fly") normalization works.
As far as I understand, problems arise in the process of simple calculation.
But if a number is normalized, the normalized number should be stored too.
But alas.
I wonder what the developers have to say about it.