Hi At120,
Finally I found where is the miscalculation come, the trigonometric calculation described on the SpectralDilation.pdf is based on degree instead of radiant, you should convert 2*pi = 360º or 180 = pi = 3.1415927
For example
b1 = 2*a1*Cosine(1.414*180 / 10);
it shall be written in c code as
b1 = 2*a1*cos(1.414*3.1415927/ 10);
After compiling code on visual c then import dll as indicator on Neuroshell.
You can check also the output of your indicator compare with excel calculation result, as attached here. You can insert the excel data into Neuroshell and then insert your dll indicator compare with excel calculated values.
Afterward, we can create a trading strategy based on stochastic filter. I think this indicator as well as other indicators will not giving successful trade all the time.
Finally I found where is the miscalculation come, the trigonometric calculation described on the SpectralDilation.pdf is based on degree instead of radiant, you should convert 2*pi = 360º or 180 = pi = 3.1415927
For example
b1 = 2*a1*Cosine(1.414*180 / 10);
it shall be written in c code as
b1 = 2*a1*cos(1.414*3.1415927/ 10);
After compiling code on visual c then import dll as indicator on Neuroshell.
You can check also the output of your indicator compare with excel calculation result, as attached here. You can insert the excel data into Neuroshell and then insert your dll indicator compare with excel calculated values.
Afterward, we can create a trading strategy based on stochastic filter. I think this indicator as well as other indicators will not giving successful trade all the time.