大智慧夺权麒麟主图指标
源码
n1:=3;
m1:=ma(c,5);
m2:ma(c,20),COLORGREEN;
均线变异:if(m1>m2,m2,m1),Color0000FF;
partline(均线变异,均线变异>ref(均线变异,1) and 均线变异=m2,RGB(255,0,0)),linethick2;
var1:=(hhv(high,21)-close)/(hhv(high,21)-llv(low,21))*100;
var3:=(close-llv(low,21))/(hhv(high,21)-llv(low,21))*100;
var6:=var3-var1;
z:=ma(var6,n1);
stickline(z>=0 {and zz=2},O,C,8,0),colorred;
stickline(z>=0 {and zz=2},H,max(O,C),0,1),colorred;
stickline(z>=0 {and zz=2},min(O,C),L,0,1),COLORred;
stickline(z<0 {and zz=1},O,C,8,1),COLORCYAN;
stickline(z<0 {and zz=1},h,max(O,c),0,1),COLORCYAN;
stickline(z<0 {and zz=1},min(O,C),l,0,1),COLORCYAN;
stickline(z>=0 and m2>c,O,C,8,0),COLORBLUE;
stickline(z>=0 and m2>c,H,max(O,C),0,1),COLORBLUE;
stickline(z>=0 and m2>c,min(O,C),L,0,1),COLORBLUE;
stickline(z<0 and m2<c,O,C,8,1),COLORYELLOW;
stickline(z<0 and m2<c,h,max(O,c),0,1),COLORYELLOW;
stickline(z<0 and m2<c,min(O,C),l,0,1),COLORYELLOW;
WW:=(ma(close,4)+ma(close,8)+ma(close,16)+ma(close,32))/4;
drawicon(cross(close,WW),low*0.999,4),align1;
drawicon(cross(WW,close),high*1.002,5),align1;