[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 83
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
Roman, thanks for the reply..... Unfortunately, I still don't understand one thing. In the textbook, https://book.mql4.com/ru/basics/expressions, under "Type Adduction. Option 4.1. Calculating the result of an integer type
and Variant 4.2. A similar situation occurs when looking for a result as a value of a real type", the same formula is given, but in one case, the type of the variable F is denoted as int
and in the second example, the variable is double
Unfortunately, I still don't understand the logic of the conversion. If in the first variant it is clear why int is assigned to variable F (i.e., according to rule of implicit type conversion), then why double.... is assigned in the second variant totally confuses me.
Please clarify what I may have missed in my explanations here?
Thanks in advance.
Well, there are rather complex things describing the peculiarities of the compiler's work which are not really needed in practice. They can be safely skipped.
The only thing we have to take out of it
As for the examples, simply write the types
int = double + int (All you're saying is that int to the right of the plus sign is converted to double, then the operands are summed and then the result is converted to the type of the variable being assigned)
double = double + int (about the same, only without the last conversion, double is immediately assigned)
Guys, what does #INF mean - is it out of allowed range of double? see the second line from the top (it counts the product of double TWR, namely its previous value is multiplied by the next one). How to correctly count THOSE values taken by TWR variable?
I wonder. May #INF appear one day instead of balance too? :) :) :)
Guys, what does #INF mean - is it out of allowed range of double? see the second line from the top (it counts the product of double TWR, namely its previous value is multiplied by the next one). What is the correct way to count THOSE values taken by TWR variable?
infinity is infinity... is only cured by reducing the appetite, the TWR values are too high.
Oh, really?
Some Smarties don't go around the mountain, they go the other way round, only uphill and uphill! :)))))
I wonder. Could #INF ever appear instead of balance too? :) :) :)
Not funny. I'd rather have something to do...
This is infinity... can only be treated by reducing the appetites, TWR values are too high.
What to do?
see here - it's all right there, all by the book... All the appetites are strictly in line with R. Vince's methodology.
Not funny. You'd better get to the point...
I wrote my suggestion on the previous page.
What to do?
see here - it's all right there, all by the book... All the appetites are strictly in line with R. Vince's method.
Maybe in the week I'll think of a better way to do it. But busy with my task most of my free time.
Maybe in the week I'll think about the best way to do it. But busy with my task most of my free time.
Thank you, Victor.
I wrote my suggestion on the previous page.
Sorry, didn't notice... :-)))
I checked it several times - there are no errors, everything is strictly according to the formulas.
Apparently, it is necessary to divide the product into parts and then compare them... Read more here.