Originally Posted by linalm
Hi everyone,
I am running into some issues using the iStochastic function and would like your assistance. The values that I get do not match those that I see on the chart. What could the reason be and how can I solve this? I am running the following code in an indicator attached to a M15 chart:
trendTF=PERIOD_H4;
...
curStoch =iStochastic(NULL,trendTF,10,3,3,MODE_SMA,0,MODE_M AIN,i);
curStochSignal =iStochastic(NULL,trendTF,10,3,3,MODE_SMA,0,MODE_S IGNAL,i);
prevStoch =iStochastic(NULL,trendTF,10,3,3,MODE_SMA,0,MODE_M AIN,i+1);
prevStochSignal =iStochastic(NULL,trendTF,10,3,3,MODE_SMA,0,MODE_S IGNAL,i+1);
I appreciate your assistance and thank you in advance.
|