HH:= HHV ( HIGH ,1)/5+ HHV ( HIGH ,2)/5+ HHV ( HIGH ,2)/5+ HHV ( HIGH ,5)/5+ HHV ( HIGH ,8)/5;
LL:= LLV ( LOW ,1)/5+ LLV ( LOW ,2)/5+ LLV ( LOW ,2)/5+ LLV ( LOW ,5)/5+ LLV ( LOW ,8)/5;
H1:= IFELSE ( H < REF ( H ,2)&& REF ( H ,1)< REF ( H ,2), REF ( H ,2),0);
L1:= IFELSE ( L > REF ( L ,2)&& REF ( L ,1)> REF ( L ,2), REF ( L ,2),0);
H2:= VALUEWHEN (H1>0,H1);
L2:= VALUEWHEN (L1>0,L1);
K1:= IFELSE ( CLOSE >H2,-3, IFELSE ( CLOSE <L2,1,0));
K2:= VALUEWHEN (K1<>0,K1);
DRAWTEXT(CROSS(K2=-3,0.5),L,’买’),VALIGN0,COLORMAGENTA,FONTSIZE33;
DRAWTEXT(CROSS(K2=1,0.5),H,’卖’),COLORCYAN,FONTSIZE33;