sw1: (ema(close,5)*7+ema(close,10)*3)/10,linethick2;
sw: dma(ema(close,12),sum(vol,5)/3/capital),linethick2;
h1:ema(c,8);
h2:ema(h1,20);
var1:=(hhv(h,36)-c)/(hhv(h,36)-llv(l,36))*100;
var2:=sma(var1,5,1);
var3:=sma(var2,8,1);
var4:=cross(var2,var3) and var3 < 20;
var5:=c > llv(c,60)*1.13 and var4;
var6:=if(c > 200,var4,var5);
stickline(h1 > h2,h1,h2,0,1),colorred;
stickline(h1 < h2,h1,h2,0,1),colorgreen;
s1:(close-sw)/sw*100,linethick0;
drawtext(cross(sw1 ,h2 ) and s1 < -6,l,'買進(jìn)'),color00ffff;
|