通达信长短均线分时主图指标公式

[复制链接]
查看95 | 回复0 | 2021-8-20 02:35:43 | 显示全部楼层 |阅读模式

以下是通达信长短均线分时主图指标公式(无源码的请下载附件导入)

MA5:MA(CLOSE,5);
MA6:MA(CLOSE,6);
MA7:MA(CLOSE,7);
MA8:EMA(CLOSE,8);
MA9:EMA(CLOSE,9);
AA:=(MA5+MA6+MA7+MA8+MA9)/5;
MA12:MA(CLOSE,12);
MA13:MA(CLOSE,13);
MA14:MA(CLOSE,14);
MA15:MA(CLOSE,15);
MA16:MA(CLOSE,16);
BB:=(MA12+MA13+MA14+MA15+MA16)/5;
MA26:MA(CLOSE,26);
MA27:MA(CLOSE,27);
MA28:MA(CLOSE,28);
MA29:MA(CLOSE,29);
MA30:MA(CLOSE,30);
CC:=(MA26+MA27+MA28+MA29+MA30)/5;
MA68:MA(CLOSE,68);
MA69:MA(CLOSE,69);
MA70:MA(CLOSE,70);
MA71:MA(CLOSE,71);
MA72:MA(CLOSE,72);
DD:=(MA68+MA69+MA70+MA71+MA72)/5;
MA82:MA(CLOSE,82);
MA83:MA(CLOSE,83);
MA84:MA(CLOSE,84);
MA85:MA(CLOSE,85);
MA86:MA(CLOSE,86);
EE:=(MA82+MA83+MA84+MA85+MA86)/5;
短线:IF(AA>MAX(BB,CC),AA,IF(AA<MIN(BB,CC),BB,CC)),COLOR00FF00,LINETHICK4;
短强:IF(短线>REF(短线,1),短线,DRAWNULL),COLORYELLOW,LINETHICK4;
长线:IF(DD>MAX(DD,EE),DD,IF(DD<MIN(DD,EE),DD,EE)),COLORFFFF00,LINETHICK4;
长强:IF(长线>REF(长线,1),长线,DRAWNULL),COLORRED,LINETHICK4;
DRAWICON(短线>长线 AND L<长线 AND C>短线 AND C>O,L*0.98,1);
DRAWICON(CROSS(MIN(短线,长线),C),H*1.02,2);
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
STICKLINE(A1X>=0,多方,突破,10,0),COLOR000099;
STICKLINE(A1X<0,空方,突破,10,0),COLOR00CC66;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;

651200767.png

651200767.png

回复

使用道具 举报

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

本版积分规则