问题在下面的图像中
我想改变这部分问题
继承代码
study("Weis Wave Accumulation", shorttitle="wwa", overlay=false)
Bandsize=input(75.0, type=float, minval=0.0)
//Direction
dir =0.0
//Central line
central = 0.0
//Previus central line
pcentral =0.0
//Volume accumulator in up direction
volup=0.0
//Volume accumulator in down direction
voldown=0.0
central := nz(pcentral[1])
dir := close - nz(central) >= Bandsize ? 1 : close - nz(central) <= -Bandsize ? -1 : nz(dir[1])
pcentral := ((dir == 1) and (close > central)) or ((dir == -1) and (close < central)) ? close : nz(pcentral[1])
volup := dir==1 ? volup[1]+volume : 0
voldown := dir==-1 ? voldown[1]+volume : 0
hist = volup+voldown
plot(hist, style=histogram, color=dir==1?aqua:red, title="Accumulator", linewidth=2)