{龙虎飞升主图源码如下}
M:=10;
上市天数:=FINANCE(42);
Z龙虎飞升1:=ZTPRICE(REF(C,1),0.1),NODRAW;
D龙虎飞升1:=DTPRICE(REF(C,1),0.1),NODRAW;
Z龙虎飞升2:=ZTPRICE(REF(C,1),0.2),NODRAW;
D龙虎飞升2:=DTPRICE(REF(C,1),0.2),NODRAW;
Z龙虎飞升3:=ZTPRICE(REF(C,1),0.05),NODRAW;
D龙虎飞升3:=DTPRICE(REF(C,1),0.05),NODRAW;
ST:=NAMELIKE('ST') OR NAMELIKE('*ST'),NODRAW;
创业板:=IF(CODELIKE('30'),1,0),NODRAW;
科创板:=IF(CODELIKE('68'),1,0),NODRAW;
涨停:=IF(ST AND C=Z龙虎飞升3,1,0) + IF(创业板 AND ST=0 AND C=Z龙虎飞升2,1,0) + IF(科创板 AND C=Z龙虎飞升2,1,0) + IF(ST=0 AND 创业板=0 AND 科创板=0 AND C=Z龙虎飞升1,1,0),NODRAW;
DT:=IF(ST AND C=D龙虎飞升3,1,0) + IF(创业板 AND ST=0 AND C=D龙虎飞升2,1,0) + IF(科创板 AND C=D龙虎飞升2,1,0) + IF(ST=0 AND 创业板=0 AND 科创板=0 AND C=D龙虎飞升1,1,0),NODRAW;
龙虎飞升DT:=DT=1 AND L=H;
昨龙虎飞升DT:=REF(龙虎飞升DT,1);
前龙虎飞升DT:=REF(龙虎飞升DT,2);
近3日龙虎飞升DT:=龙虎飞升DT + 昨龙虎飞升DT + 前龙虎飞升DT;
龙虎飞升跌开:=(IF(ST AND O=D龙虎飞升3,1,0) + IF(创业板 AND ST=0 AND O=D龙虎飞升2,1,0) + IF(科创板 AND O=D龙虎飞升2,1,0) + IF(ST=0 AND 创业板=0 AND 科创板=0 AND O=D龙虎飞升1,1,0)) AND L<H AND C=L,NODRAW;
盘中DT:=(IF(ST AND L=D龙虎飞升3,1,0) + IF(创业板 AND ST=0 AND L=D龙虎飞升2,1,0) + IF(科创板 AND L=D龙虎飞升2,1,0) + IF(ST=0 AND 创业板=0 AND 科创板=0 AND L=D龙虎飞升1,1,0)) AND C>L,NODRAW;
龙虎飞升板:=涨停=1 AND L=H;
昨龙虎飞升板:=REF(龙虎飞升板,1);
前龙虎飞升板:=REF(龙虎飞升板,2);
近3日龙虎飞升板:=龙虎飞升板 + 昨龙虎飞升板 + 前龙虎飞升板;
龙虎飞升涨开:=(IF(ST AND O=Z龙虎飞升3,1,0) + IF(创业板 AND ST=0 AND O=Z龙虎飞升2,1,0) + IF(科创板 AND O=Z龙虎飞升2,1,0) + IF(ST=0 AND 创业板=0 AND 科创板=0 AND O=Z龙虎飞升1,1,0)) AND L<H AND C=H,NODRAW;
盘中涨停:=(IF(ST AND H=Z龙虎飞升3,1,0) + IF(创业板 AND ST=0 AND H=Z龙虎飞升2,1,0) + IF(科创板 AND H=Z龙虎飞升2,1,0) + IF(ST=0 AND 创业板=0 AND 科创板=0 AND H=Z龙虎飞升1,1,0)) AND C<H,NODRAW;
M日龙虎飞升DT:=COUNT(龙虎飞升DT,M);
M日DT:=COUNT(DT,M);
总DT次数:=COUNT(DT,上市天数),NODRAW;
不DT天数:=COUNT(DT=0,上市天数);
连DT:=IF(上市天数=1,1,IF(上市天数-不DT天数=1,1,0));
M日龙虎飞升板:=COUNT(龙虎飞升板,M);
M日涨停:=COUNT(涨停,M);
总涨停次数:=COUNT(涨停,上市天数),NODRAW;
不涨停天数:=COUNT(涨停=0,上市天数);
A:=GPJYVALUE(2,1,0)+GPJYVALUE(2,2,0);
龙虎飞升:=A>0;
DRAWTEXT(龙虎飞升,L*0.99,' ★龙虎榜'),COLORYELLOW;
STICKLINE( 涨停,C,O,3,0),COLOR00FFFF;
STICKLINE( DT,C,O,3,0),COLORFF0080;
{龙虎飞升副图源码如下}
买入:GPJYVALUE(2,1,0),COLORRED,NODRAW;
卖出:-GPJYVALUE(2,2,0),COLORGREEN,NODRAW;
净买入:买入+卖出,NODRAW;
主力龙虎:=GPJYVALUE(2,1,0)+GPJYVALUE(2,2,0);
游资筹码:=主力龙虎>0; {上龙虎榜}
0,COLORFF00FF;
STICKLINE(买入,0,买入,1,1),COLORRED;
STICKLINE(-卖出,0,-卖出,0.25,0),COLORGREEN;
DRAWICON(游资筹码,买入/2,13);