{捕捉热点加强版主图源码如下}
BK:=IF(INBLOCK('科创板') OR INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1));
工作线:EMA(CLOSE,14),POINTDOT,COLOR22ACDE,LINETHICK3;
生命线:MA(CLOSE,25),COLORMAGENTA LINETHICK2;
DRAWICON(CROSS(工作线,生命线),L*1.002,9);
ZT:=C/REF(C,1)>1.099 AND H>L;
STICKLINE(ZT,O,C,3,0),COLORRED;
AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
VBR:=VOL/REF(MA(VOL,5),1);
PRICE_SHAPE:=REF(C,1)<AA30;
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND PRICE_SHAPE AND MACD>0 AND VBR>1.5;
买入:=IF(FILTER(MR,10),1,0);
STICKLINE(IF(买入,(-120),0),O,C,2,0),COLORYELLOW;
DRAWICON(买入,L*0.98,25);
{捕捉热点加强版副图源码如下}
AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
VBR:=VOL/REF(MA(VOL,5),1);
PRICE_SHAPE:=REF(C,1)<AA30;
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND PRICE_SHAPE AND MACD>0 AND VBR>1.5;
买入:=IF(FILTER(MR,10),1,0);
STICKLINE(IF(买入,(-120),0),9,0,2,0),COLORRED;
STICKLINE(IF(买入,(-120),0),6,0,2,0),COLOR00CC00;
STICKLINE(IF(买入,(-120),0),3,0,2,0),COLORYELLOW;
DRAWICON(买入,9,27);
DRAWICON(买入,6,26);
DRAWICON(买入,3,26);