n1:=38; n2:=8; n3:=7;
x1:=100*(hhv(high,n1)-close)/(hhv(high,n1)-llv(low,n1));
var1:=100*(hhv(high,n2)-close)/(hhv(high,n2)-llv(low,n2));
var2:=100*(hhv(high,n3)-close)/(hhv(high,n3)-llv(low,n3));
var3:=var1-x1;
var4:=x1-var1;
stickline(x1>=0,0,var2,8,0),colorgreen;
主力介入区: stickline(var3<0,0,var4,8,0),color0000aa;
stickline(var3<0,0,var4,6,0),color0000bb;
stickline(var3<0,0,var4,4,0),color0000cc;
stickline(var3<0,0,var4,2,0),color0000ee;
stickline(var3<0,0,var4,0,0),color0000ff;
stickline(x1>=0,0,var1,8,1),colorblue;
主力出货区: stickline(var4<0,0,var3,8,1),coloryellow;