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