Thread: Ask!
View Single Post
 
Old 05-19-2008, 02:17 PM
linalm linalm is offline
Junior Member
 
Join Date: Feb 2008
Posts: 4
linalm is on a distinguished road
Question Help please ... iStochastics returns values different from those on the chart

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.