Download MetaTrader 5

iMA return Double

To add comments, please log in or register
snakzbenjy
21
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. 

 

 IMA

 

Thanks a lot 

Biantoro Kunarto
15896
Biantoro Kunarto  
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  
Thank a lot now it's works..
Biantoro Kunarto
15896
Biantoro Kunarto  
snakzbenjy:
Thank a lot now it's works..
ok
To add comments, please log in or register