现在市场上有很多指标,但是能看懂的和实用的指标却很少,有的指标信号漂移,有的指标信号点不准确,这有很多。无外乎就是没有定期维护,根据市场行情波段定期优化指标数据,这样指标的准确率才能得到保证。那么作者这期文章就拿出一些主图指标,供大家学习参考一些,都是近期优化过的指标,还是非常好用的。
各式主图指标
各式主图:
强势杀入主图
强势杀入N:=10; ZF:=5; BDGD:=C=HHV(C,N); GDSJ:=BARSLAST(BDGD); 底:LLV(L,N),COLORFF9933,LINETHICK1,CROSSDOT; 顶:HHV(H,N),COLOR0099CC,LINETHICK1,CROSSDOT; 前高:IF(GDSJ>0,REF(C,GDSJ),REF(C,GDSJ)),COLORFFFF00,POINTDOT,LINETHICK2; MA5:MA(C,5),LINETHICK2,COLORFF00FF; MA13:MA(C,13),LINETHICK2,COLOR00FF00; MA20:=MA(C,20); MA30:=MA(C,30); MA60:=MA(C,60); MA120:=SMA(C,120,1); TP:=CROSS(C,REF(前高,1)); 出击:=TP AND COUNT(TP,5)=1; TPSJ:=BARSLAST(出击); HC:=CROSS(REF(前高,TPSJ+1),L) OR CROSS(REF(前高,TPSJ),C); 回踩:=HC AND TPSJ>1; MTM:=C-REF(C,1); DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); 放量上涨:=CLOSE/REF(CLOSE,1)>=1.01 AND VOL/REF(VOL,1)>=1.5 AND VOL>MA(VOL,5) AND REF(VOL,1)/REF(MA(VOL,5),1)<=1.8; 箱体形成:=((HHV(C,3)/LLV(C,N)-1)*100<=ZF AND (HHV(C,N)/LLV(C,3)-1)*100<=ZF)*0.3; 接近箱顶:=(CLOSE/REF(HHV(CLOSE,N),2)<=1.02 AND HIGH/REF(HHV(CLOSE,N),2)>=0.98)*0.5; P1:=BARSLAST(箱体形成); P2:=BARSLAST(接近箱顶); 期待突破:=(放量上涨 AND 接近箱顶 AND P1<=3 AND P2<=1)*2; 关注:=(放量上涨 AND 接近箱顶)*1; ZH520:=ABS(MA5-MA20)/MA20*100<=N; ZH530:=ABS(MA5-MA30)/MA30*100<=N; QSXS1:=MA5>REF(MA5,1); QSXS2:=MA20>REF(MA20,1); QSXS3:=MA30>REF(MA30,1); DTPL:=MA20>MA30 AND MA30>MA120; LYHT:=DTPL AND QSXS2 AND QSXS3 AND NOT(QSXS1) AND REF(QSXS1,1); 老鸭回头:=LYHT*50; WR5:=100*(HHV(H,5)-C)/(HHV(H,5)-LLV(L,5)); WR6:=100*(HHV(H,6)-C)/(HHV(H,6)-LLV(L,6)); WR:=80-(WR5*3+WR6*2)/5; 坑:=IF(WR<0,WR,0); LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1; GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3)); LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT; 买:=(LYKK AND NOT(REF(LYKK,1)))*50; 买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); 卖1:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0); VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100; VAR6:=REF(C,1); VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100; 优选:=(买 AND COUNT((MA13>MA20),5)=5)*100; {以下设置主图显示方式} {DRAWTEXT(老鸭回头,(MA13+MA20)/2, '○'); DRAWTEXT(WR<0,L*0.99, '#'),COLORYELLOW; DRAWTEXT(WR<-10,L*0.99, '#'),COLORWHITE; STICKLINE(买,H,L,1,0),COLOR00FF00,LINETHICK2; STICKLINE(买,O,C,3,1),COLOR00FF00,LINETHICK2;} DRAWTEXT(买>0,L*0.99, '★'),COLORRED; DRAWICON(优选>0,L*0.99,1); DRAWICON(CROSS(82,VARC),HIGH,2); DRAWTEXT(CROSS(84,VAR7),H*1.01,'顶'),COLORFFFF00; DRAWTEXT(FILTER(买1=1,5),LOW-0.03,'▲ 强者杀入'),COLORYELLOW; DRAWTEXT(FILTER(卖1=1,5),HIGH*1.025,'● 卖'),COLOR00FF00; DRAWTEXT(出击,L*0.99,'△出击'),COLORFFFFFF; DRAWTEXT(回踩,L*0.99,'H'),COLORA1C7F8; DRAWTEXT(期待突破>0 ,L*0.99,'◇期待'); DRAWTEXT(关注,L*0.99,'◆'),COLORRED;
涨停买卖点主图
涨停买卖点ZGD:=HHV(H,90)*0.99; ZGD2:=CONST(ZGD); ZDD:=LLV(L,90); ZDD2:=CONST(ZDD); {DRAWBAND(ZGD2,RGB(50,50,50),ZDD2,DRAWNULL);} VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARD:=(CLOSEVARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD); 红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW; 青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW; 短买:VAR19,REF(CLOSE,1),REF(CLOSE,2),COLOR33AACC,NODRAW; 品红离场:VAR1A,REF(CLOSE,1),REF(CLOSE,2),COLORFF99FF,NODRAW; 急速超跌: (CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW; 上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF; 月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF; 日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF; STICKLINE(红色持股,CLOSE,REF(CLOSE,1),5,0),COLOR0000FF; STICKLINE(青色观望,CLOSE,REF(CLOSE,1),5,0),COLORFFFF00; STICKLINE(短买,REF(CLOSE,1),REF(CLOSE,2),5,0),COLOR33AACC; STICKLINE(品红离场,REF(CLOSE,1),REF(CLOSE,2),5,0),COLORFF99FF; STICKLINE(急速超跌,REF(CLOSE,1),C,5,0),COLORFFFFFF; STICKLINE(C>=O,L,H,0,0),COLOR0000CC; STICKLINE(CSTICKLINE(1,C,O,2.5,0),COLOR454500; STICKLINE(1,C,O,2,0),COLOR555500; STICKLINE(1,C,O,1.5,0),COLOR656500; STICKLINE(1,C,O,1,0),COLOR757500; STICKLINE(1,C,O,0.5,0),COLOR858500; STICKLINE(C>=O,C,O,2.5,0),COLOR000045; STICKLINE(C>=O,C,O,2,0),COLOR000085; STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5; STICKLINE(C>=O,C,O,1,0),COLOR0000C5; STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5; DRAWTEXT(VAR19,REF(CLOSE,1),'←短买'),COLOR33FFCC; DRAWTEXT(VAR1A,REF(CLOSE,1)+0.1,'←离场'),COLORFF99FF; MA3:=MA(CLOSE,3); YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6; 辰星线: (20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF; 牵牛线:MA(CLOSE,26),COLORFF00FF; 等待:=IF(MA3>辰星线,辰星线,MA3); IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR0000FF; IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF; IF(辰星线IF(牵牛线
捉牛股主图
捉牛股A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; S2:=SMA(C,3,1); S6:=SMA(C,5,1); DK:=2*(S2-S6); 主力成本:EMA(X,13),COLORFF00FF,LINETHICK0; 短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00; IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2; IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2; IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE; MA5:=MA(C,5);{http://WWW.BUYHAOGU.COM} MA10:=MA(C,10); MA30:=MA(C,30); FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10); FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1); DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED; V1:=EMA(CLOSE,5); V2:=EMA(EMA(CLOSE,90)*1.01,10); DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00; VAR1:=LLV(LOW,21); VAR2:=HHV(HIGH,21); AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5); AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13); AB:=CROSS(AK1,AK); DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW; AA1:=AMOUNT/V; BB1:=LCC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=LEE1:=V老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.99,老鼠仓),COLOR0099FF; VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0); VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0); DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏' ),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF; A1AA:=9; A2AA:=(REF(CLOSE,A1AA+1)DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF; VAR6:=REF(C,1); VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100; DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),COLORYELLOW; ①:公式代码复制过来难免造成部分格式错误。如出现公式导入错误,请及时私信留言笔者领取nt6文件可直接导入!如果对于指标感兴趣或者有疑问的可以与我一起交流学习!指标源码导入就可以使用。 ②:创作不易,希望大家对于我的文章能够关注和转发,后期也会给大家分享更多好用的指标以及其他股票知识的! |