ZJ: (C+H+L)/3;
HH:HHV(HIGH,60),color00ccff,linethick2;
LL:LLV(LOW,60),colorffcccc,linethick2;
STICKLINE(1,(HH+LL)/2,(HH+LL)/2,4,0),colorred,pointdot;
上勢:2*CLOSE-1*LL,colorFF00FF,linethick2;
上先:=CLOSE+(HH-LL),COLOR00FFFF;
上知:=2*HH-1*LL,COLOR0000FF;
下勢:2*CLOSE-1*HH,COLORyellow,linethick2;
下先:=CLOSE-(HH-LL),COLOR00FFFF;
下知:=2*LL-1*HH,COLOR0000FF;
上勢a:上勢,colorwhite,pointdot,linethick3;
下勢a:下勢,COLORred,pointdot,linethick3;
dd1:2*HH-1*CLOSE,COLOR99ffff;
上勢1:2*LL-1*C,COLORff99ff;
stickline(下勢<上勢1,下勢,上勢1,3,0),colorgreen;
stickline(上勢>dd1,dd1,上勢,3,0),colorred;
drawicon(cross(dd1,上勢),上勢,5);
drawicon(cross(上勢,dd1),上勢,4);
drawicon(cross(下勢,上勢1),下勢,4);
drawicon(cross(上勢1,下勢),下勢,5);