通达信神奇主图公式主图源码K线图

[复制链接]
查看169 | 回复0 | 2021-8-26 22:50:15 | 显示全部楼层 |阅读模式

以下是通达信神奇主图公式主图源码K线图(无源码的请下载附件导入)

MA5:=MA(C,5);
A:=(3*C+L+O+H)/6;
关注1:=(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;
关注线:MA(关注1,13),COLORBLUE,CIRCLEDOT;
ZAR1:=SLOPE(EMA(CLOSE,2),5)*15+C;
ZAR2:=EMA(ZAR1,5);
ZARA:=EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(ZAR2,5),5),5),5),5),5),5),5);
ZARB:=BARSLAST(CROSS(CLOSE,ZARA));
ZARC:=BARSLAST(CROSS(ZARA,CLOSE));
STICKLINE(CLOSE<ZARA,REF(CLOSE,ZARC),REF(CLOSE,ZARC),12,0),LINETHICK2;
上涨:IF(CLOSE>ZARA AND  CLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),REF(CLOSE,ZARB)),POINTDOT,LINETHICK3;
STICKLINE(CLOSE>ZARA AND CLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),关注1,1,0);
STICKLINE(CLOSE>ZARA AND CLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),REF(CLOSE,ZARB),12,0),LINETHICK2;
止盈止损:IF(CLOSE<ZARA AND CLOSE<REF(CLOSE,ZARC),REF(CLOSE,ZARC),REF(CLOSE,ZARC)),POINTDOT,LINETHICK3;
STICKLINE(CLOSE<ZARA AND CLOSE<REF(CLOSE,ZARC),REF(CLOSE,ZARC),关注1,1,0);

操作线:MA(C,13),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(关注线,操作线) ,H*1.06,'卖出'),COLORBLUE;
DRAWTEXT(CROSS(操作线,关注线),LOW*0.94,'买入'),COLORBLUE;

71477497.png

71477497.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则