Stochastic Momentum Index

 

Hello.

Does any one know how to write a script for the indicator Stochastic Momentum Index? It is much better then Stochastic Oscillator. But I don´t know how to write a script for it and a scrpt for using this indicator in an EA.


Here is the description how to calculate the SMI.


The following formula calculates a 13,25,2 Stochastic Momentum Index.

100 * ( Mov( Mov(C - (0.5 * ( HHV(H,13) + LLV(L,13))),25,E),2,E) / (0.5*Mov( Mov( HHV(H,13) - LLV(L,13),25,E),2,E)))



Regards.

Lars

 
lhw1234:

Hello.

Does any one know how to write a script for the indicator Stochastic Momentum Index? It is much better then Stochastic Oscillator. But I don´t know how to write a script for it and a scrpt for using this indicator in an EA.


Here is the description how to calculate the SMI.


The following formula calculates a 13,25,2 Stochastic Momentum Index.

100 * ( Mov( Mov(C - (0.5 * ( HHV(H,13) + LLV(L,13))),25,E),2,E) / (0.5*Mov( Mov( HHV(H,13) - LLV(L,13),25,E),2,E)))



Regards.

Lars


allready written by Rosh ...

https://www.mql5.com/en/forum/46420

 
EADeveloper:


allready written by Rosh ...

https://www.mql5.com/en/forum/46420


It does not give the same figure as in Metastock. In Metastock you have the following parameters.%K-parameters: Time Periods,Smoothing periods,Double smoothing periods . And for the %D-parameters it is this.Time Periods, Method,Style and Color.

In the one that Rosh did it is only two parameters for %K. This is a ordinary stochastic-indicator.

Reason: