Try to look for the variable/fromula for dPosition_Trend_RendementRatio ... Do a special case if there is a zero division or so ...
In general, I mean, you have to consider every case that could happen to get the dPosition_Trend_RendementRatio value.
Also, in printing/showing dPosition_Trend_RendementRatio on chart, you have to change the value to string.
This could help.
Good luck.
Hi
I use some notification alerts in my EA for displaying variables. See the picture.
To minimize the number of decimal numbers I use the NormalizeDouble() function to decrease the number of decimals to 2.
NormalizeDouble(dPosition_Trend_RendementRatio,2)
But sometimes. This function does not work. (see the picture)
Does anybody know why? And how to solve this.
Thanks

- en.wikipedia.org
Thanks for all the input.
It's not a zero division problem, it's already checked in the code.
Maybe I should use the DoubleToString() function because I only need to see two decimal numbers, is this correct?
I realize that the NormalizeDouble() function does not round and "CUT" the value off as I was expecting.
Thanks for the help.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
I use some notification alerts in my EA for displaying variables. See the picture.
To minimize the number of decimal numbers I use the NormalizeDouble() function to decrease the number of decimals to 2.
NormalizeDouble(dPosition_Trend_RendementRatio,2)
But sometimes. This function does not work. (see the picture)
Does anybody know why? And how to solve this.
Thanks