Hello all,
This indicator isn’t my idea, it is the code of “Denis O.”, who did sent it to me by email. With his permission, I did post it here.
It is not the classical “stochastic momentum index”, but this one is customizable.
We can consider a “buy” signal when the indicator crosses 0, and we go out when it goes < 50 ; of course, you can change this value.
// STOCHASTIC MOMENTUM INDEX
// par Denis 0.
periodes=500
MMlongue=15
MMcourte=10
MMsignal=3
choix=0
Ligne0=0
BorneSup = 100
BorneInf=-100
seuilsup=a
seuilinf=b
SMI1=100*(ExponentialAverage[MMCourte](ExponentialAverage[MMLongue](customClose-(0.5*(highest[Periodes](HIGH)+lowest[Periodes](LOW))))) /(0.5*ExponentialAverage[MMCourte](ExponentialAverage[MMLongue](highest[Periodes](HIGH)-lowest[Periodes](LOW)))))
Signal=Average[MMSignal,Choix](SMI1)
Return BorneSup as " BorneSup " , BorneInf as " BorneInf " , SMI1 as "Signal Trade Long-Short", Signal as "INDICATEUR" , ligne0 as "ligne ZERO", seuilsup as "Sortie de Tendance Haussière", seuilinf as "Sortie de Tendance Baissière"
No files found.