Problem witch Stochastic function

 

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)

 
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.

 
Ty sir