变色线:ma((h+l)/2,3),COLORMAGENTA,linethick4;
kcx:=ma(ma((c+h)/2,18),3);
ylx:=hhv((变色线)/1,34),colorwhite,linethick2;
jcx:=llv((变色线+kcx)/2,18),linethick2,COLORred;
dbx:=llv(变色线,26),COLORblue,linethick3;
DRAWTEXT(crOSS(变色线,jcx),L,'<-加仓'),colorYELLOW;
DRAWTEXT(ref(变色线,1)=ref(ylx,1) and ylx>变色线,H*1.06,'->注意风险'),colorred;
PARTLINE(dbx=变色线,dbx),COLORGREEN,linethick3;
PARTLINE(ylx=变色线,变色线),COLORYELLOW,linethick3;
DRAWTEXT(ref(变色线,1)=ref(dbx,1) and 变色线>ref(变色线,1) ,L*0.98,'<-买'),colorindigo,linethick3;