通达信k线过布林线部分变色主图指标(经典珍藏版){n:1,100,20;m:1,100,32;p1:1,100,80;p2:1,100,100}var1:=(c+h+o+l)/4;卖出:xma(var1,n)*(1+p1/1000),colorgreen,linethick2;买入:xma(var1,m)*(1-p2/1000),colormagenta,linethick2;幅度:100*(卖出-买入)/买入,nodraw;ma1:=ma(var1,3);stickline(卖出>low and 卖出<high,卖出,max(卖出,max(open,close)),3,0),colorgreen;stickline(卖出>min(c,o) and 卖出<max(c,o),卖出,max(open,close),3,0),colorgreen;stickline(卖出>low and 卖出<high,卖出,high,0,0),colorgreen;stickline(卖出<low,open,close,3,0),colorgreen;stickline(卖出<low,high,low,0,0),colorgreen;stickline(买入>low and 买入<high,买入,min(min(open,close),买入),3,0),colormagenta;stickline(买入>min(c,o) and 买入<max(c,o),买入,min(open,close),3,0),colormagenta;stickline(买入>low and 买入<high,买入,low,0,0),colormagenta;stickline(买入>high,open,close,3,0),colormagenta;stickline(买入>high,high,low,0,0),colormagenta;drawtext(cross(c,买入) or (l<买入),low*0.95,'b'),colorred,linethick2;drawtext(cross(c,卖出) or (h>卖出),high*1.02,'s'),colorgreen;a3:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;a4:=sma(a3,3,1);a5:=sma(a4,3,1);a6:=3*a4-2*a5;a7:=c-ref(c,1);a8:=100*ema(ema(a7,6),6)/ema(ema(abs(a7),6),6);买:=llv(a8,2)=llv(a8,7) and count(a8<0,2) and cross(a8,ma(a8,2));drawtext(filter(买=1,5),low-0.05,'↖买进'),coloryellow;stickline(买,open,close,2,0),coloryellow; 20210311