In EA call the 5-minute Period KDJ indicator VALUE in a 15 minute Period

 
double kdj=iStochastic(Symbol(),5,5,3,3,MODE_EMA,0,MODE_MAIN,1); 

Is my code OK?

 
  1. zdj229: Is my code OK?
    double kdj=iStochastic(Symbol(),    5    ,5,3,3,MODE_EMA,     0     ,MODE_MAIN,1);
    Don't hard code constants
    double kdj=iStochastic(Symbol(),PERIOD_M5,5,3,3,MODE_EMA,STO_LOWHIGH,MODE_MAIN,1);
  2. Your code above is the Stochastic, not KDJ. Download it and use iCustom.

 
William Roeder #:
  1. zdj229: Is my code OK?
    Don't hard code constants
  2. Your code above is the Stochastic, not KDJ. Download it and use iCustom.

thank you very much

 
Additionally, do not try to pull the lower timeframe data from the upper timeframe!!! Be careful to look at the upper time frame from the lower time frame.