Download MetaTrader 5
To add comments, please log in or register
Share your knowledge. Become a well-known developer!
orangutangas1
54
orangutangas1 2014.10.22 13:23 

Hi, there

I am creating new EA and adding just simple lines:

  double sm1a=iStochastic(NULL,Period(),5,3,3,MODE_SMA,0,MODE_SIGNAL,2);
 

  printf("STOCH   ",sm1a); 

 When i put that one into my chart and go to experts tab each time the bar closes i see word STOCH, but there is no value next to it. Where the problem can be? (tired also with Mode_main)

honest_knave
969
honest_knave 2014.10.22 13:33  
double sm1a=iStochastic(NULL,Period(),5,3,3,MODE_SMA,0,MODE_SIGNAL,2);
 

//  printf("STOCH   ",sm1a); 
  printf("STOCH %f",sm1a); 

You are not using printf correctly - you haven't specified what the type is. Try something like the above.

orangutangas1
54
orangutangas1 2014.10.22 14:04  
Ty sir
/
To add comments, please log in or register