SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:IF(SAT>1,1,SAT)*100,COLORRED,NODRAW;AA9:=C;
B:=ZIG(3,10),COLORWHITE;
G:=MA(B,2),COLORYELLOW;
闪电买:CROSS(B,G),NODRAW,COLORRED;
闪电卖:CROSS(G,B),NODRAW,COLORGREEN;
AAA:=REF(C,2),COLORGREEN;
AAA2:=MA(C,5);
AAA3:=MA(C,26);
AAA1:=MA((3*H+C)/4,2),COLORLICYAN;
NOTEXT1:=FORCAST(EMA(AAA,1),7),COLORGREEN;
NOTEXT2:=FORCAST(EMA(AA9,16),7),COLOR00FF00,LINETHICK3;
价量均线:NOTEXT2,COLORGREEN,LINETHICK3;
NOTEXT3:=FORCAST(EMA(AA9,55),7),DOTLINE,COLORFFFF00;
NOTEXT5:IF(AAA2>NOTEXT2 OR C>NOTEXT2,NOTEXT2,DRAWNULL),COLOR0000FF,LINETHICK3;
持股天数:BARSLAST(AAA2<NOTEXT2 OR C<NOTEXT2),NODRAW,COLORMAGENTA;
NOTEXT6:=IF(NOTEXT2>=NOTEXT3,NOTEXT3,DRAWNULL),DOTLINE,COLOR0000FF;
ZJC1:=AAA2>NOTEXT2 OR C>NOTEXT2;
ZJC2:=NOTEXT2>=NOTEXT3;
ZJC3:=ZJC1 AND ZJC2;
{出水芙蓉}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
白线上穿:=CROSS(DIF,0);
芙蓉出水1:=(FILTER(COUNT(白线上穿,3)>0 AND C/REF(C,1)-1>0.049,10)),COLORFF80FF,NODRAW;
芙蓉出水2:=(FILTER(CROSS(C,MA(C,55)) AND C/REF(C,1)-1>0.049,10)),COLORFF80FF,NODRAW;
见龙1:=FILTER((芙蓉出水1 OR 芙蓉出水2),5);
见龙2:=(REF(L,1)=LLV(L,13) AND V>=2*REF(V,1) AND H=HHV(H,13) AND C/REF(C,1)-1>=5/100)
OR (L=LLV(L,13) AND V>=2*REF(V,1) AND H=HHV(H,13) AND C/REF(C,1)-1>=5/100);
见龙3:=L<>H AND ((AAA2>NOTEXT2 OR C>NOTEXT2) OR (NOTEXT2>=NOTEXT3));
见龙:=见龙1 AND 见龙2 AND 见龙3,COLORFF80FF,NODRAW;
{STICKLINE(见龙,L,H,3,1),LINETHICK2,COLORFF00FF;
STICKLINE(见龙,O,C,3,1),LINETHICK2,COLORFF00FF;
DRAWTEXT(见龙,H,'见龙'),COLORFF00FF;}
MA89:=MA(CLOSE,13);
MA144:=MA(CLOSE,21);
MA233:=MA(CLOSE,34);
MA377:=MA(CLOSE,55);
上穿:=CROSS(C,MA377)+CROSS(C,MA89)+CROSS(C,MA144)+CROSS(C,MA233);
起爆:=C>O AND 上穿>2 AND C/REF(C,1)-1>0.049 AND C/REF(C,1)-1<0.097 AND C>MAX(MA89,MAX(MA144,MAX(MA233,MA377))),NODRAW,COLOR4080FF;
STICKLINE(起爆,O,C,3,0),COLOR4080FF;
DRAWTEXT(起爆,H*1.01,'起爆'),COLOR4080FF;
飞龙在天:=(HHV(H,100)/LLV(L,100)-1<=30/100 AND CROSS(C,REF(HHV(H,100),1)) AND C/REF(C,1)-1>=0.049 AND BARSCOUNT(C)>50),NODRAW,COLORBFCB2E;
STICKLINE(飞龙在天,O,C,3,0),COLORBFCB2E;
DRAWTEXT(飞龙在天,H*1.02,'飞龙在天1'),COLORBFCB2E;
ZB:=ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 && CLOSE/OPEN>1.03 && CLOSE>REF(CLOSE,2) AND C/REF(C,1)>1.0572;
{DRAWTEXT(ZB AND ZJC3 ,L*0.99,'抓板'),COLORAFFF00;}
抓板:=ZB AND ZJC3,NODRAW,COLOR00FFFF;
STICKLINE(ZB AND ZJC3 , O , C , 2 , 0 ),COLORRED;
STICKLINE(ZB AND ZJC3 ,O,C,1,0),COLORYELLOW;
DIFF:=EMA(CLOSE,6)-EMA(CLOSE,16);
DEA:=EMA(DIFF,9);
资金窗:CROSS(DIFF,DEA) AND DEA>-0.05,COLORFFFFFF,NODRAW;
{DRAWICON(资金窗,LOW*0.98, 26);}
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));
龙抬头:=IF( VAR28>0.1,VAR29,0)*5,COLORCYAN;
麒麟护盘: CROSS(VAR28,1),COLORFF9900,NODRAW;
{DRAWICON(麒麟护盘,LOW*0.96,24);}
DRAWTEXT(麒麟护盘>0, LOW*0.95,'麒麟护盘'),COLORFF9900;
后金窗:COUNT(L=LLV(L,20),20)=1 AND L=LLV(L,20),NODRAW,COLORFF00FF;
{DRAWICON(后金窗,LOW*1, 25);}
DRAWTEXT(后金窗>0, LOW*0.99,'后金窗'),COLORFF00FF;
STICKLINE(后金窗 AND FILTER(后金窗,31)>0,L*1.01,L*1.01,300,0),COLORYELLOW;
GOODGUPIAO:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,1,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,2,0),COLORRED;
STICKLINE(大阳线,O,C,1,0),COLOR0000BB;
大阴线:=C<O AND (比前跌率>=涨停率5 OR 本日跌率>=涨停率5)
AND 比前跌率<涨停率10 AND 跌停=0;
STICKLINE(大阴线,O,C,2,0),COLORLIGREEN;
STICKLINE(大阴线,O,C,1,0),COLORGREEN;
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,35);
DRAWTEXT(CC>0, H*1.03,'洗盘'),COLORFFFFFF;
涨停2 := (C /REF(C,1)) > 1.095;
STICKLINE(涨停2, HIGH, OPEN, 1, 0), COLORYELLOW;
跌停2 := C/REF(C,1) < 0.9 ;
STICKLINE(跌停2, HIGH, LOW, 1, 0), COLORGREEN;