變色線: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
變色線: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