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 :)
LOL . . . no need for apologies, but thank you all the same . . . I'm here to learn and now I know a little more about type casting than I did before. :-)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.