Download MetaTrader 5

Problem witch Stochastic function

To add comments, please log in or register
orangutangas1
54
orangutangas1  

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
Moderator
2423
honest_knave  
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  
Ty sir
To add comments, please log in or register