指标使用说明如下:
副图确定短期趋势,红色量能柱配合红色趋势线明确股价上升趋势行情。该指标通过副图信号精准识别短期趋势,红色量能柱叠加红色趋势线共同确认股价进入上升阶段,为投资者提供清晰趋势判断依据。
副图确认上升趋势后,主图龙头买点精准定位龙头股最佳买入时机。龙头先锋指标通过主图信号锁定龙头股买入点,在上升趋势中捕捉最佳入场时机,助力投资者把握龙头股行情。
{主图源码如下}
N:=30;
M:=2;
龙头启动:EMA(COST(40),10),COLORRED,DOTLINE;
龙头买点:EMA(COST(70),10),COLORGREEN,DOTLINE;
龙头筹码:DRAWBAND(龙头启动,RGB(80,00,20), 龙头买点,RGB(60,60,18));
DRAWKLINE(H,O,L,C);
C龙头先锋:=H=HHV(H,N);
T:=BARSLAST(C龙头先锋);
HH:=REF(H,T);
HH30:=HHV(H,30);
LL30:=LLV(L,30);
HL:=(HH30-LL30)/LL30*100;
HG1:=CROSS(C,REF(HH,1));
HG2:=V/REF(V,1)>=M;
HG3:=C/REF(C,1)>1.03 AND (C-L)/(H-L)>0.6;
HG4:=REF(HL< 20,1);
龙头先锋:=HG1 AND HG2 AND HG3 AND HG4;
AA:=VOL>REF(V,1)*1.9;
ZT:=C>REF(C,1)*1.095;
STICKLINE(龙头先锋,H,L,0,0),COLOR00FFFF;
STICKLINE(龙头先锋,O,C,1,0),COLOR00FFFF;
DRAWICON(龙头先锋,L,1);
STICKLINE(FILTER(龙头先锋=1,5)OR AA AND ZT,CLOSE,OPEN,1,0),COLORMAGENTA;
STICKLINE(FILTER(龙头先锋=1,1) OR AA AND ZT,CLOSE,OPEN,1,0),COLOR40FF00;
M5:MA(C,5);
M8:MA(C,8);
DRAWICON(FILTER(龙头先锋=1,5)OR AA AND ZT,LOW*1.001,9);
DRAWTEXT(FILTER(龙头先锋=1,5)OR AA AND ZT,L,' ★龙头买点')COLORYELLOW;
AHG1:=VOL< REF(LLV(VOL,13),1);
AHG2:=VOL< REF(LLV(VOL,55),1);
STICKLINE(AA AND ZT,CLOSE,OPEN,1,0),COLORRED;
{副图源码如下}
HGE:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE;
HGEA:=SMA(HGE,6.3,1);
HGW:SMA(HGEA,3,1),COLORFFFFFF;
HGEB:=3*HGEA-2.1*HGW;
HGT:=3*HGW-1*HGEA;
HGY:IF(HGT>HGEB,HGEB,HGT),LINETHICK2,COLOR00FF00;
HGYEE:HHV(HGY,21);
HGETY:IF(HGY>=REF(HGY,1),HGY,DRAWNULL),COLORRED,LINETHICK3;
HGU:IF(HGY< REF(HGY,1),HGY,DRAWNULL),COLORGREEN,LINETHICK3;
强度:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORYELLOW;
密度:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORWHITE;
启动:SMA(强度,3,1),LINETHICK0,COLOR0000FF;
龙头先锋:SMA(密度,3,1),COLORSTICK,COLORFFFF00;
STICKLINE(启动< REF(启动,1)&&启动>0,0,启动,2,1),COLORRED;
STICKLINE(启动>REF(启动,1)&&启动>0,0,启动,2,0),COLORRED;
STICKLINE(龙头先锋< REF(龙头先锋,1)&&龙头先锋>0,0,龙头先锋,2,0),COLOR00FFFF;
STICKLINE(启动>REF(启动,1)&&启动< 0,0,启动,2,0),COLORCYAN;
STICKLINE(启动< REF(启动,1)&&启动< 0,0,启动,2,1),COLORCYAN;
STICKLINE(龙头先锋>REF(龙头先锋,1)&&龙头先锋< 0,0,龙头先锋,3,0),COLORWHITE;