SI oscillator
Posted: Mon Nov 25, 2013 5:13 pm
SI indicator (http://www.mql5.com/en/code/1883) has been the basis of this indicator.
Formulas:
SI = MA(D), where
D = 50*X*K/R,
X[i] = 0.25*Open[i]-1.5*Close[i-1]+0.75*Close[i]+0.5*Open[i-1],
R = R1-R2/2+R4/4, if R1>=Max(R2, R3),
R = R2-R1/2+R4/4, if R2>=Max(R1, R3),
R = R3+R4/4, in other cases,
K = Max(R1, R2),
R1[i] = Abs(High[i]-Close[i-1]),
R2[i] = Abs(Low[i]-Close[i-1]),
R3[i] = Abs(High[i]-Low[i]),
R4[i] = Abs(Close[i-1]-Open[i-1]).
Download:
For this indicator must be installed Averages indicator (viewtopic.php?f=17&t=2430).
Formulas:
SI = MA(D), where
D = 50*X*K/R,
X[i] = 0.25*Open[i]-1.5*Close[i-1]+0.75*Close[i]+0.5*Open[i-1],
R = R1-R2/2+R4/4, if R1>=Max(R2, R3),
R = R2-R1/2+R4/4, if R2>=Max(R1, R3),
R = R3+R4/4, in other cases,
K = Max(R1, R2),
R1[i] = Abs(High[i]-Close[i-1]),
R2[i] = Abs(Low[i]-Close[i-1]),
R3[i] = Abs(High[i]-Low[i]),
R4[i] = Abs(Close[i-1]-Open[i-1]).
Download:
For this indicator must be installed Averages indicator (viewtopic.php?f=17&t=2430).