Thread: Ask!
View Single Post
  #1099 (permalink)  
Old 05-20-2008, 01:59 AM
FerruFx FerruFx is offline
Senior Member
 
Join Date: Feb 2007
Posts: 943
FerruFx is on a distinguished road
Quote:
Originally Posted by linalm View Post
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.
I see that a specific timeframe (trendTF) is coded. Do you watch the same TF to compare with the results?

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!!
Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM
NEW: video presentation of the Probability Meter ... 24hrs action on the website
Reply With Quote