How To Get Indicator Value From a Different Timeframe in Mql5 - page 2

 
bahtah7:


i tested your code on M30 and the value of shift 1 in the comment is 6.4 but shift 1 in Data Windows is 0.0000642 , i changed the code to get shift 4 and i get it right it still the last shifts 1, 2, and 3 that get wrong values .

Oh... 0.0000642 equals to 6.42x10^-5, and 10^-5 is just a way to express 1/100000...this is not wrong. 
You can try DoubleToString(OsMaS3) in your Comment(). 
 
Seng Joo Thio:
Oh... 0.0000642 equals to 6.42x10^-5, and 10^-5 is just a way to express 1/100000...this is not wrong. 
You can try DoubleToString(OsMaS3) in your Comment(). 

oh , i didn't see the 10^-5 part, that's correct , thank you very much .