DIF:=EMA(CLOSE,6)-EMA(CLOSE,16);
DEA:=EMA(DIF,9);
資金窗:CROSS(DIF,DEA) AND DEA>-0.05,COLORFFFFFF,NODRAW;
DRAWICON(資金窗,LOW*1,9);
DRAWTEXT(資金窗>0, LOW*0.99,'資金窗'),COLORFFFFFF;
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR2B:=EMA(VAR2A*0.97,3);
VAR2C:=(HIGH+LOW+CLOSE)/3;
VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));
龍?zhí)ь^:=IF( VAR28>0.1,VAR29,0)*5,COLORCYAN;
麒麟護(hù)盤: CROSS(VAR28,1),COLORFF9900,NODRAW;
DRAWICON(麒麟護(hù)盤,LOW*0.96,31);
DRAWTEXT(麒麟護(hù)盤>0, LOW*0.95,'麒麟護(hù)盤'),COLORFF9900;
后金窗:COUNT(L=LLV(L,20),20)=1 AND L=LLV(L,20),NODRAW,COLORFF00FF;
DRAWICON(后金窗,LOW*1,22);
DRAWTEXT(后金窗>0, LOW*0.99,'后金窗'),COLORFF00FF;
STICKLINE(后金窗 AND FILTER(后金窗,31)>0,L*1.01,L*1.01,300,0),COLORYELLOW;
C3:=REF(C,1);
漲停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(漲停,OPEN,CLOSE,3,0),COLORYELLOW;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
RC1:=REF(C,1);
漲停率10:=10-1/RC1;
漲停率5:=5-1/RC1;
比前漲率:=(C-RC1+0.004)*100/RC1;
比前跌率:=(RC1-C-0.004)*100/RC1;
本日漲率:=(C-O+0.004)*100/O;
本日跌率:=(O-C-0.004)*100/O;
大陽線:=C>O AND (比前漲率>=漲停率5 OR 本日漲率>=漲停率5)
AND 比前漲率<漲停率10 AND 漲停=0;
STICKLINE(大陽線,O,C,3,0),COLOR0000BB;
大陰線:=C<O AND (比前跌率>=漲停率5 OR 本日跌率>=漲停率5)
AND 比前跌率<漲停率10 AND 跌停=0;
STICKLINE(大陰線,O,C,3,0),COLORLIGREEN;
HIGHN:=10;
AAB:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AAB,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H*1.01,2);
DRAWTEXT(CC>0, H*1,'洗盤'),COLORFFFFFF;