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));
主升浪:CC>0 AND AA>0 AND BB<0 AND DD<0;
VAR1:=(CC>0 ANDcrOSS(AA,BB) OR CROSS(AA,0)) ;
VAR2:=(VAR1 AND COUNT(VAR1,10)=1) OR (主升浪 AND COUNT(主升浪,60)=1);
DRAWTEXT(VAR2 AND COUNT(VAR2,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;