
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
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.
Such as
10694990411.760000
What if it was calculated to
10694990411.759999 ?
Now, if you wanted to display that to 2 fractional digits you'd want it displayed as
10694990411.76
Wouldn't you?
So let's try that with your code
It prints as
10694990411.75
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)
we need to TRIM all AnyNumber.00000000000000xxx000011000x0099999999999
till 2 digits, right?
I don't know what that means!
I don't know what that means!
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.
Such as
10694990411.760000
What if it was calculated to
10694990411.759999 ?
Now, if you wanted to display that to 2 fractional digits you'd want it displayed as
10694990411.76
Wouldn't you?
So let's try that with your code
It prints as
10694990411.75
Not really the wanted result is it?
In your exaple:
1.
10694990411.76
2.
10694990411.75
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. ;)
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.
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
That's good to know, thanks.
Just ban him and we will get rid of this new moron.
If I banned people for not thinking things through before posting, I would probably have banned myself a few times by now Alain.
;D