N:=8;
外围:100-100*(HHV(HIGH,5*N)-CLOSE)/(HHV(HIGH,5*N)-LLV(LOW,5*N)),COLORRED,LINETHICK2;
地狱:=0,COLORFAAAAA;
海面:=20,COLORGREEN,DOTLINE;
海天分界线:=50,COLORFF86FF,DOTLINE;
天际:=80,COLORCYAN,DOTLINE;
大顶:=100,COLORFF6500;
多方资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORYELLOW;
DRAWTEXT(CROSS(外围,海面),22,'反弹'),COLORFFFFFF;
DRAWTEXT(CROSS(外围,0.1),10,'抄底'),COLORFF00FF;
DRAWTEXT(CROSS(外围,100),96,'注意顶'),COLORFF00FF;
VARF1:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR101:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR111:=VARF1 REF(VAR101,1) AND VOL REF(VOL,1) AND CLOSE REF(CLOSE,1);
DRAWTEXT(VAR111 AND COUNT(VAR111,30)=1,60,'大资金进场'),LINETHICK1,COLORLIMAGENTA;
STICKLINE(VAR111 AND COUNT(VAR111,30)=1,10,55,2,0),COLORLIMAGENTA,LINETHICK2;
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
DIF:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),LINETHICK1,COLORFF00FF;
DEA:=EMA(0.667*REF(DIF,1)+0.333*DIF,2),LINETHICK1;
QS:IF(CROSS(DIF,DEA) AND DIF 40,40,15),COLOR06009F,DOTLINE;
买入:=QS=25 AND CROSS(MA(CLOSE,5),MA(CLOSE,10)),LINETHICK1;
DRAWTEXT(CROSS(DIF,DEA) AND DIF 22,45,'波谷1'),COLORWHITE;
DRAWICON(CROSS(DIF,DEA) AND DIF 22,43,1);
主力做盘轨迹:=(((CLOSE - MA(LLV(LOW,40),40)) / MA(LLV(LOW,40),40)) * 100),COLORF0F000;
BIAS1:= (CLOSE-MA(CLOSE,9))/MA(CLOSE,9)*100,COLORWHITE;
坚决买:=(主力做盘轨迹-BIAS1)
STICKLINE (坚决买 ,20,30,3,1),COLORF8668F;
AA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1000;
BB:=MA(AA,10);
趋势线:SMA(BB,3,1)/10,DOTLINE,COLOR1689FD;
JNYY2:=(((CLOSE - LLV(LOW,26)) / (HHV(HIGH,26) - LLV(LOW,26))) * 100);
判断:=SMA(JNYY2,32,1)-20,COLOR00FF00,LINETHICK1;
买:DRAWTEXT(CROSS(趋势线,判断),趋势线+10,'▲买牛'),LINETHICK2,COLORWHITE;
建仓:DRAWTEXT(CROSS(判断,趋势线),判断,'▲建仓'),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(趋势线,判断),趋势线,'始');
DRAWTEXT(CROSS(判断,趋势线),判断,'终');