ZTJ:=ZTPRICE(REF(C,1),0.1);
K线实体:=ABS(C-O);
X1:=IF(MA(C,5)>MA(C,10),20,0);
X2:=IF(MA(C,20)>MA(C,60),10,0);
X3:=IF(KDJ.J>KDJ.K,10,0);
X4:=IF(MACD.DIF>MACD.DEA,10,0);
X5:=IF(MACD.MACD>0,10,0);
X6:=IF(V>MA(V,60),10,0);
X7:=IF(WINNER(C)>0.5,10,0);
X8:=IF(C/REF(C,1)>1.03,10,0);
XX:=X1+X2+X3+X4+X5+X6+X7+X8;
涨停板1:=C=H&&C/REF(C,1)>1.0975&&C/REF(C,1)<1.11&&FINANCE(3)=1&&C=ZTJ;
涨停板2:=C=H&&C/REF(C,1)>1.1985&&C/REF(C,1)<1.21&&FINANCE(3)=3;
涨停板:=涨停板1 OR 涨停板2;
双倍量:=(V/REF(MA(V,5),1)>=2&&V/REF(V,1)>=1.5 OR V/REF(V,1)>=2)&&C>O&&H=HHV(H,6)&&C>EMA(C,13)&&V=HHV(V,6);
建仓量:=TFILTER(双倍量&&K线实体>REF(K线实体,1),EVERY(V<MA(V,5),2),1);
JCZQ:=BARSLAST(建仓量);
拉升量:=双倍量&&NOT(建仓量)&&EXIST(建仓量,2);{&&V/REF(V,1)<3;}
试盘量:=建仓量 OR 拉升量;
位置要求:=L/EMA(C,13)<1.05;
红线上行:=EMA(C,13)>=REF(EMA(C,13),1);
SPX0:=H/REF(C,1)>=1.03&&试盘量&&H/C>1.005&&C/REF(C,1)>1.015&&位置要求&&FINANCE(3)=1&&XX>=40;
SPX1:=H/REF(C,1)>=1.05&&试盘量&&H/C>1.005&&C/REF(C,1)>1.015&&位置要求&&(FINANCE(3)=3 OR FINANCE(3)=4)&&XX>=40;
SPX2:=SPX0 OR SPX1;
SPX3:=SPX2&&NOT(EXISTR(SPX2,7,1))&&COUNT(涨停板,2)=0;
试盘K线:=FILTER(SPX3,5);
拉板建仓:=FILTER(涨停板&&建仓量&&COUNT(涨停板,3)=1,10);
{画粉柱}
画粉柱:=试盘K线 OR 拉板建仓;
STICKLINE(画粉柱,H,L,0,0),COLORFF55FF;
STICKLINE(画粉柱,C,O,3.1,0),COLOR880088;
STICKLINE(画粉柱,C,O,2.6,0),COLORAA00AA;
STICKLINE(画粉柱,C,O,1.9,0),COLORCC00CC;
STICKLINE(画粉柱,C,O,1.1,0),COLOREE00EE;
STICKLINE(画粉柱,C,O,0.2,0),COLORFF44FF;