How are you comparing them in the back-tester? Are you using your eye or using print statements?
ubzen:
How are you comparing them in the back-tester? Are you using your eye or using print statements?
Hi,
I have a similar issue w/ the iStochastic. Below is the main code:
{
int counted_bars=IndicatorCounted();
if (counted_bars<0) return(-1);
if (counted_bars>0) counted_bars--;
int pos=Bars-counted_bars;
while(pos>=0)
{
double TSI = iCustom(NULL,0,"DSI5",0,1,0);
ExtMapBuffer1[pos]= iStochastic(TSI,0,465,3,3,MODE_SMA,0,MODE_SIGNAL,pos);
pos--;
}
//----
return(0); }
The values in ExtMapBuffer1 are not matching up to what they should be when you do the math by hand. Any reason?
thanks,

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I am using iStochastic and the values it returnes does not match what I have on the indicator on the charts. I have made sure that the all the modes are correct and also compared the indicator on the charts to make sure that all are the same
stoch1=iStochastic(Symbol(),time_period,PeriodsK,PeriodsD,SmoothD,MODE_SMA,PRICE_CLOSE,MODE_MAIN,1);
the shift of 1 is the last full bar close. I do not look at signal line at all, just the stoch value
Please someone help, maybe I am just doing something stupid somewhere.
Thanks
Johan