meme question sur les standard deviation de vwap
if day<>day[1] then
d=1
VWAP=typicalprice
else
d=d+1
if volume >0 then
VWAP = SUMMATION[d](volume*typicalprice)/SUMMATION[d](volume)
endif
sd = std[d](abs(typicalprice-vwap))
SDup1 = vwap+sd
SDlw1 = vwap-sd
SDup2 = vwap+sd*2
SDlw2 = vwap-sd*2
SDup3 = vwap+sd*3
SDlw3 = vwap-sd*3
SDup4 = vwap+sd*4
SDlw4 = vwap-sd*4
SDup5 = vwap+sd*5
SDlw5 = vwap-sd*5
SDup7 = vwap+sd*7
SDlw7 = vwap-sd*7
endif
RETURN VWAP as “VWAP”, SDup1 as “upper 1 STD”,SDup2 as “upper 2 “,Sdup3 AS “upper 3 “,Sdup4 AS “upper 4 “,Sdup5 AS “upper 5 “,Sdup7 AS “upper 7 “,Sdlw1 as “lower 1”,Sdlw2 as “lower 2”,sdlw3 as “lower 3”,sdlw4 as “lower 4”,sdlw5 as “lower 5”,sdlw7 as “lower 7”