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,COLORRED,LINETHICK2;
威廉波段:(HHV(HIGH,63)-CLOSE)/(HHV(HIGH,63)-LLV(LOW,63))*100,COLOR00bb00,LINETHICK2;
风险1:IF(市场心理>95,市场心理+5,120),COLORMAGENTA,LINETHICK1;
底部1:IF(市场心理<5,市场心理-5,0),COLORGRAY,LINETHICK2;
STICKLINE(C>0,80,80,5,0),COLORRED;
STICKLINE(C>0,50,50,10,0),COLORWHITE;
STICKLINE(C>0,20,20,5,0),COLORRED;
风险2:IF(威廉波段<5,100,120),COLOR00FFFF,LINETHICK1;
底部2:IF(威廉波段>99,20,0),COLORAAAA00,LINETHICK2;
抄底:IF(CROSS(市场心理,7),25,0),COLORMAGENTA;
STICKLINE(C>0,99,99,5,0),COLORFF00FF;
STICKLINE(C>0,5,5,5,0),COLORFF00FF;