This oscillator is based between the relationship that exist between price and volume. It combines these values to help detect up and down trend.
It is devoted to detect short term trades based on standard deviation of recent moves, so bearish signals occurs when oscillator is crossing the lower deviation and bullish movement when oscillator is crossing down the upper deviation.
Parameters :
haOpen = ((Open[1]+High[1]+Low[1]+Close[1])+(Open[2]+High[2]+Low[2]+Close[2]))/2
haCl = ((Open+High+Low+Close)/4+haOpen+MAX(High,haOpen)+MIN(Low,haOpen))/4
haC = tema[period/1.6](haCl)
vav = average[period*5](volume)
vave = vav[1]
vmax = vave * 2
if(volume<vmax) THEN
vc = volume
else
vc = vmax
endif
vtr = tema[period](linearregressionslope[period](volume))
if haC>haC[1]*(1+cutoff/1000) AND vtr>=vtr[1] THEN
tosum = vc
ELSIF haC<haC[1]*(1+cutoff/1000) AND vtr>vtr[1] THEN
tosum = -vc
ENDIF
SVAPO = tema[period](summation[period](tosum)/(vave+1))
hi = devH*STD[stdevper](SVAPO)
lo = -devL*STD[stdevper](SVAPO)
RETURN SVAPO as "SVAPO", hi as "deviation High", lo as "deviation Low", 0 as "zero ref"