通达信【动能升势】主副图指标 汇集吸拉派落、能量潮等技术信号 源码附图

{升势动能主图源码如下}
ABC1:MA(C,5);
ABC2:MA(C,10);
ABC3:MA(C,20);
VOLUME:=VOL;
好股网8:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
ACB18:=SUM(IF(CLOSE=REF(CLOSE,1),0,好股网8),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);
好股网:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
ACB1:=SUM(IF(CLOSE=REF(CLOSE,1),0,好股网),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;

{升势冲天副图源码如下}

DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3.2,0),COLOR000055;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.7,0),COLOR000077;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.1,0),COLOR000099;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1.5,0),COLOR0000BB;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.9,0),COLOR0000DD;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.3,0),COLOR0000FF;
STICKLINE(MACD1>MACD2 AND MACD1< 0,0,MACD1,3.2,0),COLOR555555;
STICKLINE(MACD1>MACD2 AND MACD1< 0,0,MACD1,2.7,0),COLOR777777;
STICKLINE(MACD1>MACD2 AND MACD1< 0,0,MACD1,2.1,0),COLOR999999;
STICKLINE(MACD1>MACD2 AND MACD1< 0,0,MACD1,1.5,0),COLORBBBBBB;
STICKLINE(MACD1>MACD2 AND MACD1< 0,0,MACD1,0.9,0),COLORDDDDDD;
STICKLINE(MACD1>MACD2 AND MACD1< 0,0,MACD1,0.3,0),COLORFFFFFF;
STICKLINE(MACD1< MACD2,0,MACD1,3.2,0),COLORB20000;
STICKLINE(MACD1< MACD2,0,MACD1,2.7,0),COLOREC0000;
STICKLINE(MACD1< MACD2,0,MACD1,2.1,0),COLORFF4600;
STICKLINE(MACD1< MACD2,0,MACD1,1.5,0),COLORFF6300;
STICKLINE(MACD1< MACD2,0,MACD1,0.9,0),COLORFF8B00;
STICKLINE(MACD1< MACD2,0,MACD1,0.3,0),COLORFFAB00;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIF:=DIF1,COLOR33FF33,LINETHICK1;
DEA:=DEA1,COLORYELLOW,LINETHICK1;
MACD:=MACD1,NODRAW,COLORMAGENTA;
ABC1:=HHV(DEA,53);
ABC2:=LLV(DEA,55);
ABC3:=DEA-(DIF-DEA);
UP:=IF(DIF>ABC1 AND DEA=ABC1,MAX(LLV(ABC1,10),ABC3),ABC1),COLORBB0000,LINETHICK2;
DN:=IF(DIF< ABC2 AND DEA=ABC2,MIN(HHV(ABC2,10),ABC3),ABC2),COLORAA00AA,LINETHICK2;
DIF,COLORGREEN;
DEA,COLORGREEN;
零上金叉买:0,COLORBLUE,CROSSDOT,LINETHICK1;
IF(DIF>DEA,DIF,DRAWNULL),COLORRED,LINETHICK1;
IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORMAGENTA;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
LOWV:=LLV(LOW,3);
HIGHV:=HHV(HIGH,3);
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;
STICKLINE(MACD< REF(MACD,1)AND CROSS(K,J),0,MACD,2,0),COLORGREEN;
STICKLINE(MACD>REF(MACD,1)AND CROSS(J,K),0,MACD,2,0),COLORRED;
M1:=EMA( CLOSE, 9 );
M2:=EMA( CLOSE, 18 );
好股网:M1-M2, COLORWHITE, LINETHICK2;
MM:= EMA( 好股网, 3 );
吸:IF( 好股网 >= MM AND 好股网 < 0, 好股网, DRAWNULL ), COLORLIRED, LINETHICK2;
拉:IF( 好股网 >= MM AND 好股网 >= 0, 好股网, DRAWNULL ), COLORRED, LINETHICK2;
派:IF( 好股网 < MM AND 好股网 >= 0, 好股网, DRAWNULL ), COLORGREEN, LINETHICK2;
落:IF( 好股网 < MM AND 好股网 < 0, 好股网, DRAWNULL ), COLORWHITE, LINETHICK2;




{升势能量潮副源码如下}
VOLUME:VOL,NODRAW;
好股网8:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
ABC18:=SUM(IF(CLOSE=REF(CLOSE,1),0,好股网8),0);
ABC28:=EMA(ABC18,3)-MA(ABC18,9);
ABC38:=EMA(IF(ABC28>0,ABC28,0),3);
MAC38:=MA(C,3);
升势动能:=ABC38>REF(ABC38,1) AND MAC38>REF(MAC38,1);
STICKLINE(升势动能,0,V,3.5,1),COLORYELLOW;
好股网:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
ABC1:=SUM(IF(CLOSE=REF(CLOSE,1),0,好股网),0);
ABC2:=EMA(ABC1,3)-MA(ABC1,9);
ABC3:=EMA(IF(ABC2>0,ABC2,0),3);
MAC3:=MA(C,3);
量能潮:ABC3,NODRAW,COLORBROWN;
STICKLINE(ABC3>REF(ABC3,1) AND MAC3>REF(MAC3,1),0,V,0.1,0),COLORRED;


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

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

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

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