通达信短线追击主图指标公式源码:
MA1:MA(CLOSE,15);
MA66:=MA(C,2);
MA6:MA(C,5);
MA18:MA(C,10);
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
顶:IF(T1,A,A),COLORYELLOW,POINTDOT;
底:IF(T2,B,B),COLORGREEN,POINTDOT;{指标123网 WWW.ZHIBIAO123.CN}
VAR1:=IF(1.1>SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05),POINTDOT,COLORFF6600;
VAR2:=IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1)),POINTDOT,COLORF00FF0;
VAR3:=IF(MA(VOL,2)>MA(VOL,3)/2>MA(VOL,5), SMA(HIGH,2,1),SMA(CLOSE,3,1)) ,COLORFFFFFF;
买入1:=DRAWTEXT(CROSS(VAR3,MA1),VAR2,’马’),COLORMAGENTA;
买入2:=DRAWTEXT(CROSS(VAR3,VAR1),VAR2,’牛’),COLORCYAN;
STICKLINE(买入1,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(买入1,O,C,4,1),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(MA6,顶),VAR2,’追1′),COLORMAGENTA;
DRAWTEXT(CROSS(MA18,顶),VAR2,’追2′),COLORCYAN;
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/8829.html,转载请注明出处。