指标主要识别在特定震荡区间内,出现向上突破信号的股票。策略是捕捉价格突破近期高点且站上中期均线的强势股,结合涨停特征进行选股。
操作逻辑:筛选股价波动收窄后出现阳线突破的股票,要求收盘价创出阶段新高,同时中期均线向上且股价站上均线。对创业板和科创板设置更严格的涨停条件,排除部分特殊板块。该策略适合寻找结束盘整、开始强势上涨的个股。
{主图源码如下}
DC:=DYNAINFO(4)>0 AND HHV(H,10)/LLV(LOW,10)<1.5 AND REF(C<(LLV(L,15)+(HHV(H,15)-LLV(L,15))*0.75),1) AND C>O AND C>=REF(HHV(H,10),1);
VAR1:=FILTER(DC,5);
VAR2:=C/REF(C,1)>1.095 AND C=H;
VAR3:=C/REF(C,1)>1.19 AND C=H;
VAR4:=CODELIKE('30');
VAR5:=CODELIKE('68');
ZT:=IF(VAR4 OR VAR5, VAR3, VAR2);
VAR6:=IF(CODELIKE('8') OR CODELIKE('4') OR VAR4 OR VAR5,0,1);
VAR7:=ZT AND VAR6;
捕捉线:MA(C,34),COLORRED;
STICKLINE(VAR2 OR VAR3,O,C,3,0),COLORYELLOW;
STICKLINE(VAR1,O,C,2,0),COLORMAGENTA;
DRAWTEXT(VAR1 AND 捕捉线>REF(捕捉线,1) AND C>捕捉线,L*0.98,'↖捕捉趋势'),COLORYELLOW;
DRAWICON(VAR1 AND 捕捉线>REF(捕捉线,1) AND C>捕捉线,L*0.96,26);
DRAWICON(VAR1 AND 捕捉线>REF(捕捉线,1) AND C>捕捉线,L*0.94,9);
{副图源码如下}
DC:=DYNAINFO(4)>0 AND HHV(H,10)/LLV(L,10)< 1.5 AND REF(C< (LLV(L,15)+(HHV(H,15)-LLV(L,15))*0.75),1) AND C>O AND C>=REF(HHV(H,10),1);
VAR1:=FILTER(DC,5);
VAR2:=C/REF(C,1)>1.095 AND C=H;
VAR3:=C/REF(C,1)>1.19 AND C=H;
VAR4:=CODELIKE('30');
VAR5:=CODELIKE('68');
ZT:=IF(VAR4 OR VAR5, VAR3, VAR2);
VAR6:=IF(CODELIKE('8') OR CODELIKE('4') OR VAR4 OR VAR5,0,1);
VAR7:=ZT AND VAR6;
捕捉线:=MA(C,34);
选股:VAR1 AND 捕捉线>REF(捕捉线,1) AND C>捕捉线,COLORYELLOW;