VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
波: VAR3;
段: VAR4;
VAR6:=CROSS(VAR3,VAR4) AND VAR3
STICKLINE(FILTER(VAR6,10)=1,0,-30,10,0),LINETHICK1,COLORYELLOW;
VAR7:=CROSS(VAR4,VAR3) AND VAR3
STICKLINE(FILTER(VAR7,5)=1,96,100,10,0),LINETHICK2,COLORGREEN;
DRAWTEXT(FILTER(VAR7,5),95,'暴涨后见顶'),,LINETHICK1,COLORMAGENTA;
VAR8:=CROSS(VAR2,VAR3) AND VAR3 80 AND VAR3 VAR4;
STICKLINE(VAR8,97,100,10,0);90;0,LINETHICK2,COLORYELLOW;
DRAWTEXT (VAR8,96,'峰1'),LINETHICK1,COLORYELLOW;
N:=14;
均价:=(2*C+(H-L)/2+L)/3;
价差:=SUM(均价-REF(均价,1),2)/2;
高低:=(均价+价差);
实价:=(高低+均价)/2;
AA:=EMA(((SLOPE(实价,N)*20)+实价),N*3);
BB:=EMA(((SLOPE(均价,N)*20)+均价),N*3);
多空线:=(AA+BB)/2;
市场心理:COUNT(C 多空线,N)/N*100,COLORWHITE,LINETHICK1;
威廉波段:(HHV(HIGH,63)-CLOSE)/(HHV(HIGH,63)-LLV(LOW,63))*100,COLOR00BB00,LINETHICK1;
风险1:IF(市场心理 95,市场心理+0,120),COLORMAGENTA,LINETHICK2;
短底:IF(市场心理 5,市场心理-20,0),COLORRED,LINETHICK3;
DRAWTEXT(CROSS(短底,-1),-15,'短底'),COLORRED,LINETHICK1;
风险2:IF(威廉波段 5,100,120),COLORGREEN,LINETHICK2;
长底75:IF(威廉波段 99.99,75,0),COLORWHITE,LINETHICK2;
短买:IF(CROSS(市场心理,7),25,0),COLORMAGENTA,LINETHICK3;
DRAWTEXT(短买,28,'短买'),COLORMAGENTA,LINETHICK1;