Doctrading

CUSTOM Stochastic Momentum Index

Category: Indicators By: Doctrading Created: May 30, 2016, 1:16 PM
May 30, 2016, 1:16 PM
Indicators
3 Comments
CUSTOM Stochastic Momentum Index

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.

Doctrading
Doctrading Master
Hello, I'm Marc. Nice to meet you.
Author’s Profile

Comments

Pelayo
4 years ago
#

it is possible that in line 12 we should put seuilinf=-b, thaks for all

DerPat
10 years ago
#

Thank you. This one could be an aid in my current research on stochastics.

Doctrading
10 years ago
#

I forgot to write at the beginning : 

a = 50
b = 50

These are intermediate levels

Sorry

ProRealCode ProRealCode
Loading...