VAR1:=SLOPE(MA(CLOSE,21),3);
VAR2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR3:MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-10;
VAR4:SMA(100*(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)),13,1)-10;
VAR5:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
DRAWICON(CROSS(VAR3,VAR4) AND VAR4 20,VAR4,1);
DRAWTEXT((COUNT(VAR1 0,10))=9 AND CROSS(VAR1,0),30,'追涨');
VAR6:=LLVBARS(VAR5,90);
VAR7:=WINNER(CLOSE)*100;
建仓等待区:VAR6 5 AND VAR7 20 OR VAR6 40 AND VAR7 2,LINETHICK0,colorF00FF0;
STICKLINE(建仓等待区,0,10,8,0),colorF00FF0;
安全区:VAR4 20,LINETHICK0,colorFFFF00;
STICKLINE(安全区,VAR4,20,8,1),colorFFFF00;
VAR8:=COST(10);
VAR9:=(CLOSE-VAR8)/VAR8*100;
关注:IF((COUNT(VAR9 -2,3))=3,20,0),LINETHICK2,colorFF0000;
VAR10:=SMA(VAR2,3,1);
VAR11:=SMA(VAR10,3,1);
VAR12:=CROSS(VAR10,VAR11) AND VAR11
DRAWTEXT(建仓等待区 AND VAR12,25,'可买');
DRAWTEXT(FILTER(安全区 AND VAR12,5),25,'买');
STICKLINE(建仓等待区 AND VAR12 AND 安全区,25,0,8,1);