Download MetaTrader 5

iMA return Double

To add comments, please log in or register
Register as a seller and start making profit!
snakzbenjy
21
snakzbenjy 2012.03.28 23:13 

Hello every one,

 

I have simple Question why when i want use the Method "iMA" this method return int?

Why this Mobile Average it's not double? Because i need the price. 

 

 IMA

 

Thanks a lot 

Biantoro Kunarto
14897
Biantoro Kunarto 2012.03.29 08:40  
snakzbenjy:

Hello every one,

 

I have simple Question why when i want use the Method "iMA" this method return int?

Why this Mobile Average it's not double? Because i need the price. 

 

 

 

Thanks a lot 

Because the function returns the handle of the Moving Average indicator. If you want to use the price,  you must use CopyBuffer().
snakzbenjy
21
snakzbenjy 2012.03.30 16:47  
Thank a lot now it's works..
Biantoro Kunarto
14897
Biantoro Kunarto 2012.03.31 02:56  
snakzbenjy:
Thank a lot now it's works..
ok
To add comments, please log in or register