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
can't get an integer from two doubles unless you cast it.
i dont understand what you have written
i list the results i want and the way I think I can do that in the reply to Raptor
nah, don't bother. just do like 'the offspring' says: gotta keep 'em seperated.
I find the documentation on type casting a little unclear . . . https://docs.mql4.com/basis/types/casting so I coded an elementary script . . .
the output was this: 2011.08.19 14:47:24 TypeCast EURCAD,M30: ma1= 2.7 ma2= 1.1 i1= 1 int i2=1
Looks OK to me . . .
therefore the result is always a decimal eg 0.00100 = 100 pips
so to make it a whole number i will multiply it by 10000
I find the documentation on type casting a little unclear . . . https://docs.mql4.com/basis/types/casting so I coded an elementary script . . .
the output was this: 2011.08.19 14:47:24 TypeCast EURCAD,M30: ma1= 2.7 ma2= 1.1 i1= 1 int i2=1
Looks OK to me . . .
won't be the first time i've put the hoof in the mouth. but the documentation re is as clear as mud to me and didn't test.
so apologies for spreading such utter lies :)
won't be the first time i've put the hoof in the mouth. but the documentation re is as clear as mud to me and didn't test.
so apologies for spreading such utter lies :)
you're lucky, i'm still in the dark.
but imho it defeats the purpose a bit.