Let's just show how your code is not reliable (apart from being off topic).
BarVolAvg is a calculated value and it is extremely unlikely that it will always be calculated to a nice convenient 2 fractional digits.
What if it was calculated to
Now, if you wanted to display that to 2 fractional digits you'd want it displayed as
So let's try that with your code
It prints as
Not really the wanted result is it?
we need to TRIM all AnyNumber.00000000000000xxx000011000x0099999999999
till 2 digits, right?
is this big difference what happend after 3 digit? ... if you cant round it to 2 normaly (dont left other digits)
I don't know what that means!
In your exaple:
MAIN RESULT IS -> you got 2x digits after . dot anyways, right?!!!!! (thats we are talking about)
we are not talking about foolisn 1 cent, but about that then we get your xxx.yyyyyyyyyy value roundedtil. xx.yy only.
*** you noobs (who dont read post main question is talking about).
This is what was I just now posted in my prifile (after registering in MQL community for 3x days :D LOL) ->
I dont participate in posts and do not help ohters to resorve theyr programming problems. ;)
That's good to know, thanks.
Ty, im fine ;)
(It was my first post i participaed (and I think it was aslo last)... therefore - Ty Im fine ;)and better I will not loose my time reading all "this"... :D
If I banned people for not thinking things through before posting, I would probably have banned myself a few times by now Alain.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.