VAR1:=1;
VAR2:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
VAR3:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
VAR4:=IF(VAR1,SMA(VAR3,2,1),DRAWNULL);
顶:100+(-ABS(VAR2)),COLORRED;
趋势:SMA(VAR4,2,1);
{}
底:ABS(VAR2),COLORGREEN;
分界:50,COLORFFAA00,LINETHICK3;
A:80;
B:20;
买:STICKLINE(CROSS(趋势,底),3,20,2,0),COLORRED;
STICKLINE(CROSS(底,趋势),20,25,2,0),COLORFF9900;
DRAWICON(CROSS(底,趋势),35,17);
DRAWICON(CROSS(趋势,底),30,1);
卖:STICKLINE(CROSS(顶,趋势),70,90,2,0),COLORRED;
STICKLINE(CROSS(趋势,顶),90,99,2,0),COLORFF9900;
DRAWICON(CROSS(趋势,顶),90,17);
DRAWICON(CROSS(顶,趋势),70,2);
DRAWTEXT_FIX(1,0,0.08,0,70),COLORCYAN;
DRAWTEXT_FIX(1,0,0.38,0,70),COLORCYAN;