AA:((CLOSE*V-REF(COST(90),1)*V)/20+250)*1.2/5,COLORMAGENTA;
BB:((REF(COST(90),1)*V-CLOSE*V)/20+250)*1.2/5,COLORCYAN;
CC:((CLOSE*V-REF(COST(10),1)*V)/20+250)*1.2/5,COLORRED;
DRAWBAND(CC,RGB(255,0,0),BB,RGB(0,0,255));
DD:((REF(COST(10),1)*V-CLOSE*V)/20+250)*1.2/5,COLORBLUE;
DRAWBAND(AA,RGB(255,255,0),DD,RGB(0,0,155));
{DRAWTEXT_FIX(CLOSE>OPEN,0.92,0.95,0,128),COLORLIMAGENTA;}
主升浪A:=(CC>0 AND crOSS(AA,BB) OR CROSS(AA,0)) ;
主升浪B:CC>0 AND AA>0 AND BB<0 AND DD<0;
XGG:=(主升浪A AND COUNT(主升浪A,10)=1) OR (主升浪B AND COUNT(主升浪B,60)=1);
DRAWTEXT(XGG AND COUNT(XGG,20)=1,AA,'★主升浪'),COLORYELLOW;
0,COLORYELLOW;
DRAWTEXT(CC>=HHV(CC,60) AND COUNT(CC>=HHV(CC,20),20)=1 AND CC>BB,CC,'★看戏'),COLORRED;
0,COLORBLacK;