{筹码突破基因主图源码如下}
游资筹码:=V;
所属行业:DRAWTEXT_FIX(1,0,0.10,0,'【行业】:'),COLORFFFF00;DRAWTEXT_FIX(1,0.05,0.10,0,HYBLOCK),COLORFFFF00;
所属概念:DRAWTEXT_FIX(1,0,0.15,0,'【概念】:'),COLORFFFF00;DRAWTEXT_FIX(1,0.05,0.15,0,GNBLOCK),COLORFFFF00;
P:=FINANCE(42);
涨停价:=ZTPRICE(REF(C,1),0.1);
跌停价:=DTPRICE(REF(C,1),0.1);
开板:=((H>=涨停价) AND (C<涨停价));
涨停数:=COUNT((C>=涨停价) AND L<>C,P) NODRAW;
开板数:=COUNT(开板,P) NODRAW;
跌停数:=COUNT(C<=跌停价,P) NODRAW;
封板率:=(1-(开板数/(涨停数+开板数)))*100;
共振突破1:=100;
共振突破2:=VOL<=LLV(VOL,共振突破1)*1.2 AND VOL>0 AND BARSCOUNT(VOL)>=共振突破1;
共振突破3:=COUNT(共振突破2,5)>=3;
共振突破4:=VOL>=REF(VOL,1)*1.9 AND CLOSE>REF(CLOSE,1);
共振突破5:=REF(共振突破3,1) AND 共振突破4;
共振突破6:=20;
共振突破7:=REF(HHV(CLOSE,共振突破6),1);
捉牛突破6:=REF(COUNT(CLOSE<共振突破7,2)=2,1) AND CLOSE>共振突破7 AND CLOSE>OPEN AND VOL/REF(VOL,1)>=1.9;
STICKLINE(捉牛突破6,OPEN,CLOSE,2,0),COLORMAGENTA;
DRAWTEXT(捉牛突破6,L,'★基因');
DRAWICON(捉牛突破6,L,9);
DRAWTEXT_FIX(CLOSE>1,0,0.20,0,'【涨停数】:'),COLORFFFF00;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.05,0.20,0,涨停数),COLORFFFF00;
DRAWTEXT_FIX(CLOSE>1,0,0.25,0,'【开板数】:'),COLORFFFF00;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.05,0.25,0,开板数),COLORFFFF00;
DRAWTEXT_FIX(CLOSE>1,0,0.30,0,'【跌停数】:'),COLORFFFF00;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.05,0.30,0,跌停数),COLORFFFF00;
DRAWTEXT_FIX(CLOSE>1,0,0.35,0,'【封板率】:'),COLORFFFF00;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.05,0.35,0,封板率),COLORFFFF00;
DRAWTEXT_FIX(C>0,0.075,0.35,0,'%'),COLORFFFF00;
连板数:=HHV(BARSLAST(NOT(C>=涨停价 AND L<>C)),P);
DRAWTEXT_FIX(CLOSE>1,0,0.40,0,'【连板数】:'),COLORFFFF00;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.05,0.40,0,连板数),COLORFFFF00;
{筹码突破基因副图源码如下}
共振突破1:=100;
共振突破2:=VOL<=LLV(VOL,共振突破1)*1.2 AND VOL>0 AND BARSCOUNT(VOL)>=共振突破1;
共振突破3:=COUNT(共振突破2,5)>=3;
共振突破4:=VOL>=REF(VOL,1)*1.9 AND CLOSE>REF(CLOSE,1);
共振突破5:=REF(共振突破3,1) AND 共振突破4;
共振突破6:=20;
共振突破7:=REF(HHV(CLOSE,共振突破6),1);
捉牛突破6:=REF(COUNT(CLOSE< 共振突破7,2)=2,1) AND CLOSE>共振突破7 AND CLOSE>OPEN AND VOL/REF(VOL,1)>=1.9;
STICKLINE(捉牛突破6,0,1,2,0),COLORMAGENTA;
STICKLINE(捉牛突破6,0,1,1,0),COLORRED;
STICKLINE(捉牛突破6,0,1,0.5,0),COLORYELLOW;
DRAWTEXT(捉牛突破6,0.8,' ★涨停基因'),COLORRED;
DRAWICON(捉牛突破6,1,9);
DRAWTEXT_FIX(1,0.60,0.75,0,' '),COLORYELLOW;