Download MetaTrader 5
To add comments, please log in or register
They are already making profit using the Market. You can join them!
Naruephon Klongngoen
306
Naruephon Klongngoen 2016.02.13 08:04 

Hi

I am trying to use iCustom to  get THV Trend's value.

Here's  my code

   double THVTrendDwn = iCustom(NULL,0,"THV trend",0,1);
   double THVTrendUp = iCustom(NULL,0,"THV trend",1,1);
   double THVTrendFlat = iCustom(NULL,0,"THV trend",2,1);

It always return 0 for those 3 variables.

Can anyone please suggest how should I correct my code to get the correct value ?

Thank you :) 

Files:
Carl Schreiber
6398
Carl Schreiber 2016.02.14 20:04  
Are you sure you are calling the indicator with exactly the correct name?
Georgiy Liashchenko
2407
Georgiy Liashchenko 2016.02.17 01:29  
naruponk:

Hi

I am trying to use iCustom to  get THV Trend's value.

Here's  my code

It always return 0 for those 3 variables.

Can anyone please suggest how should I correct my code to get the correct value ?

Thank you :) 

you must write indicator name exactly as file called. "thv3_trend"
Naruephon Klongngoen
306
Naruephon Klongngoen 2016.02.18 07:30  
Thanks a lot guys, it my fault I was calling incorrectname :)
/
To add comments, please log in or register