通达信升势动能主图源码分享


ABC1:MA(C,5);

ABC2:MA(C,10);

ABC3:MA(C,20);

volUME:=VOL;

VAR18:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);

ACB18:=SUM(IF(CLOSE=REF(CLOSE,1),0,VAR18),0);

ACB28:=EMA(ACB18,3)-MA(ACB18,9);

ACB38:=EMA(IF(ACB28>0,ACB28,0),3);

MAC38:=MA(C,3);

升势动能:=ACB38>REF(ACB38,1) AND MAC38>REF(MAC38,1);

STICKLINE(升势动能,CLOSE,OPEN,1,0),COLORYELLOW;

钱:=BARSLASTCOUNT(升势动能)=1;

钱1:=BARSLASTCOUNT(升势动能)=2;

钱2:=BARSLASTCOUNT(升势动能)=3;

钱3:=BARSLASTCOUNT(升势动能)=4;

钱4:=BARSLASTCOUNT(升势动能)=5;

钱5:=BARSLASTCOUNT(升势动能)=6;

钱6:=BARSLASTCOUNT(升势动能)=7;

钱7:=BARSLASTCOUNT(升势动能)=8;

钱8:=BARSLASTCOUNT(升势动能)=9;

钱9:=BARSLASTCOUNT(升势动能)=10;

DRAWICON(钱,L*0.98,1);

DRAWICON(钱1,L,25);

DRAWICON(钱2,L,25);

DRAWICON(钱3,L,25);

DRAWICON(钱4,L,25);

DRAWICON(钱5,L,25);

DRAWICON(钱6,L,25);

DRAWICON(钱7,L,25);

DRAWICON(钱8,L,25);

DRAWICON(钱9,L,25);

DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA1:=EMA(DIF1,9);

macd1:=2*(DIF1-DEA1),STICK;

MACD:=MACD1,NODRAW,COLORMAGENTA;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3*K-2*D;

DRAWICON(MACD>REF(MACD,1)AND crOSS(J,K),L,9);

VAR1:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);

ACB1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VAR1),0);

ACB2:=EMA(ACB1,3)-MA(ACB1,9);

ACB3:=EMA(IF(ACB2>0,ACB2,0),3);

MAC3:=MA(C,3);

量能潮:=ACB3,NODRAW,COLORBROWN;

STICKLINE(ACB3>REF(ACB3,1) AND MAC3>REF(MAC3,1),CLOSE,OPEN,1,0),COLORYELLOW;

STICKLINE(MACD>REF(MACD,1)AND CROSS(J,K),CLOSE,OPEN,1,0),COLORRED;



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图