您当前的位置:股票 > 财经资讯 > 财经频道

通达信整合MACD指标公式,通达信整合KDJ指标公式

2024-06-15 23:17:50 来源: 作者: admin888
分享到
关注牛市通网在线:
  • 扫描二维码

    关注√

    牛市通网微信

在线咨询:
  • 扫描或点击关注牛市通网在线客服

通达信整合MACD指标公式,通达信整合KDJ指标公式

通达信整合MACD指标公式

dif:ema(CLOSE,5)-Ema(CLOSE,11);

DEA:EMA(DIF,5);

macd:(DIF-DEA)*2,COLORstICK;

IF(DIF

IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;

A1:=BArslAST(REF(crOSS("MacD.DIF","MACD.DEA"),1));

B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS

("MACD.DIF","MACD.DEA");

DRAWICON(B1>0,DIF*1.21,1);{

底背离}C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));

D1:=REF(C,C1+1) "MACD.DIF" AND CROSS

("MACD.DEA","MACD.DIF");

DRAWICON(D1>0,DEA*1.21,2);{

顶背离};

DRAWICON(CROSS(MACD,0),0,1);

DRAWICON(CROSS(0,MACD),0.2,2);

DRAWICON(CROSS(DIF,DEA),DIF,1),COLORRED;

DRAWICON(CROSS(DEA,DIF),DEA,2),COLORGREEN;

通达信整合KDJ指标公式

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

K:SMA(RSV,3,1),POINTDOT,COLORWHITE,LINETHICK1;

D:Sma(K,3,1),POINTDOT,COLORGREEN,LINETHICK1;

J:3*K-2*D,COLORFF00FF,LINETHICK1;

IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;

IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;

IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;

DRAWICON(crOSS(J,1),-50,1);

DRAWICON(K>80 AND D>80 AND CROSS(D,K),150,2);

PP:=V>REF(V,1);

F:=C>O AND HIGH>REF(HIGH,1);

G:=C>O AND LOW>REF(LOW,1) AND C>REF(C,1);

X:=(ATAN((MA(C,1)/REF(MA(C,1),1)-1)*100)*180/3.14115926)>45;

R:=J>REF(J,2) AND J<100;

OK:=F AND G AND X AND R AND PP;

JJ:=CROSS(J,OK);

DD:=COUNT(CROSS(J,OK),6)<0;

DRAWTEXT(OK,50,'买'),COLOR00FFFF;

DRAWTEXT(J<-10,-20,'底'),COLOR00FFFF;

DRAWTEXT(JJ,90,'买'),COLORRED;

LOWV:=LLV(LOW,9);

HIGHV:=HHV(HIGH,9);

RSV1:=ema((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);

A:=EMA(RSV1,3);

B:=MA(A,3);

VAR1:=3;

VAR2:=((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1))

- (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) *

100),5,1),3,1)));

买:IF(CROSS(VAR2,VAR1),60,0);

Lst1:=(H+L+O+C*2)/5;

LST2:=EMA(LST1,21);

LST3:=STD(LST1,23);

LST4:=EMA(LST1,2);

LSTA:=(LST1-LST2)*100/LST3;

KG:=(EMA(LSTA,23)+100)/2-3,COLOR00FFFF,LINETHICK1;

DG:=SMA(KG,5,1),COLORFFFF00,LINETHICK1;

JG:4*KG-3*DG,COLORFF00FF,LINETHICK2;

IF(JG>REF(JG,1),JG,DRAWNULL),COLORRED,LINETHICK2;

IF(JG

DRAWICON(FILTER(JG>REF(JG,1)AND JGREF(LST4,1) AND

KG>=REF(KG,1)AND JG<40 OR CROSS(JG,KG)AND CROSS(JG,DG) AND JG<40 OR JG>REF(JG,1)AND

JG<-20,7),-30,1);

DRAWICON(FILTER(JG<=REF(JG,1) AND JG>80,8),140,15);

VARA:=(2*CLOSE+HIGH+LOW)/4;

VARB:=expma(EXPMA(EXPMA(VARA,4),4),4);

JY:=(VARB-REF(VARB,1))/REF(VARB,1)*120;

KY:=MA(JY,1),COLORCYAN,LINETHICK1;

DY:=MA(JY,3),COLORGREEN,LINETHICK1;

VARYGB:=EMA(EMA(CLOSE,9),9);

控盘:=(VARYGB-REF(VARYGB,1))/REF(VARYGB,1)*100;

A10:=CROSS(控盘,0);

开始控盘:IF(A10,20,0),LINETHICK1,COLORCYAN;

VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;

VAR400:=EMA(VAR300,5);

操盘:=3*VAR300-2*VAR400;

A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;

STICKLINE(A1,90,0,0.3,0),COLORWHITE;

DRAWTEXT(A1,100,'全仓'),COLORWHITE;

MY1:=CROSS(KY,DY);

AY1:=BArslAST(REF(CROSS(KY,DY),1));

底背离:=REF(CLOSE,AY1+1)>CLOSE AND KY>REF(KY,AY1+1) AND CROSS(KY,DY);

DRAWLINE(AY1=0 AND DY<0 AND KY<0,KY,底背离,KY,0),COLORFF00FF,LINETHICK3;

DRAWICON(MY1,-40,1),COLORWHITE;

DRAWICON(CROSS(DY,KY),150,2);

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

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

N:=KK+DDD,COLORMAGENTA;

准备:IF(CROSS(N,50),40,-20),COLORLIRED;

发射:IF(CROSS(N,100),50,-10),COLORYELLOW;

ZTSJ:=BARSLAST(发射=100);

价:REF(C,ZTSJ)*1.1,COLORBLUE;

涨:=(C/REF(C,ZTSJ)-1)*100,RGB(255,255,0);

低:=IF(ZTSJ>0 AND ZTSJ<10 AND (L/REF(C,ZTSJ)-1)*100<=-5,5,50),RGB(255,255,255);

达标:=ZTSJ<20 AND CROSS(H,REF(C,ZTSJ)*1.1);

GWGD:=N=160 AND REF(N,1)>=REF(N,2);

卖:IF(GWGD,130,160),COLORGREEN;

XX:=LLV(J,2)=LLV(J,8);

YGBLST:=CROSS(J,REF(J+0.01,1)) AND XX AND J<20;

短进:IF(YGBLST,20,0),LINETHICK1,COLORWHITE;

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。

责任编辑:admin888 标签:通达信整合MACD指标公式,通达信整合KDJ指标公式
广告

热门搜索

相关文章

广告
牛市通网 |财经频道

通达信整合MACD指标公式,通达信整合KDJ指标公式

admin888

|

通达信整合MACD指标公式,通达信整合KDJ指标公式

通达信整合MACD指标公式

dif:ema(CLOSE,5)-Ema(CLOSE,11);

DEA:EMA(DIF,5);

macd:(DIF-DEA)*2,COLORstICK;

IF(DIF

IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;

A1:=BArslAST(REF(crOSS("MacD.DIF","MACD.DEA"),1));

B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS

("MACD.DIF","MACD.DEA");

DRAWICON(B1>0,DIF*1.21,1);{

底背离}C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));

D1:=REF(C,C1+1) "MACD.DIF" AND CROSS

("MACD.DEA","MACD.DIF");

DRAWICON(D1>0,DEA*1.21,2);{

顶背离};

DRAWICON(CROSS(MACD,0),0,1);

DRAWICON(CROSS(0,MACD),0.2,2);

DRAWICON(CROSS(DIF,DEA),DIF,1),COLORRED;

DRAWICON(CROSS(DEA,DIF),DEA,2),COLORGREEN;

通达信整合KDJ指标公式

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

K:SMA(RSV,3,1),POINTDOT,COLORWHITE,LINETHICK1;

D:Sma(K,3,1),POINTDOT,COLORGREEN,LINETHICK1;

J:3*K-2*D,COLORFF00FF,LINETHICK1;

IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;

IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;

IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;

DRAWICON(crOSS(J,1),-50,1);

DRAWICON(K>80 AND D>80 AND CROSS(D,K),150,2);

PP:=V>REF(V,1);

F:=C>O AND HIGH>REF(HIGH,1);

G:=C>O AND LOW>REF(LOW,1) AND C>REF(C,1);

X:=(ATAN((MA(C,1)/REF(MA(C,1),1)-1)*100)*180/3.14115926)>45;

R:=J>REF(J,2) AND J<100;

OK:=F AND G AND X AND R AND PP;

JJ:=CROSS(J,OK);

DD:=COUNT(CROSS(J,OK),6)<0;

DRAWTEXT(OK,50,'买'),COLOR00FFFF;

DRAWTEXT(J<-10,-20,'底'),COLOR00FFFF;

DRAWTEXT(JJ,90,'买'),COLORRED;

LOWV:=LLV(LOW,9);

HIGHV:=HHV(HIGH,9);

RSV1:=ema((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);

A:=EMA(RSV1,3);

B:=MA(A,3);

VAR1:=3;

VAR2:=((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1))

- (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) *

100),5,1),3,1)));

买:IF(CROSS(VAR2,VAR1),60,0);

Lst1:=(H+L+O+C*2)/5;

LST2:=EMA(LST1,21);

LST3:=STD(LST1,23);

LST4:=EMA(LST1,2);

LSTA:=(LST1-LST2)*100/LST3;

KG:=(EMA(LSTA,23)+100)/2-3,COLOR00FFFF,LINETHICK1;

DG:=SMA(KG,5,1),COLORFFFF00,LINETHICK1;

JG:4*KG-3*DG,COLORFF00FF,LINETHICK2;

IF(JG>REF(JG,1),JG,DRAWNULL),COLORRED,LINETHICK2;

IF(JG

DRAWICON(FILTER(JG>REF(JG,1)AND JGREF(LST4,1) AND

KG>=REF(KG,1)AND JG<40 OR CROSS(JG,KG)AND CROSS(JG,DG) AND JG<40 OR JG>REF(JG,1)AND

JG<-20,7),-30,1);

DRAWICON(FILTER(JG<=REF(JG,1) AND JG>80,8),140,15);

VARA:=(2*CLOSE+HIGH+LOW)/4;

VARB:=expma(EXPMA(EXPMA(VARA,4),4),4);

JY:=(VARB-REF(VARB,1))/REF(VARB,1)*120;

KY:=MA(JY,1),COLORCYAN,LINETHICK1;

DY:=MA(JY,3),COLORGREEN,LINETHICK1;

VARYGB:=EMA(EMA(CLOSE,9),9);

控盘:=(VARYGB-REF(VARYGB,1))/REF(VARYGB,1)*100;

A10:=CROSS(控盘,0);

开始控盘:IF(A10,20,0),LINETHICK1,COLORCYAN;

VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;

VAR400:=EMA(VAR300,5);

操盘:=3*VAR300-2*VAR400;

A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;

STICKLINE(A1,90,0,0.3,0),COLORWHITE;

DRAWTEXT(A1,100,'全仓'),COLORWHITE;

MY1:=CROSS(KY,DY);

AY1:=BArslAST(REF(CROSS(KY,DY),1));

底背离:=REF(CLOSE,AY1+1)>CLOSE AND KY>REF(KY,AY1+1) AND CROSS(KY,DY);

DRAWLINE(AY1=0 AND DY<0 AND KY<0,KY,底背离,KY,0),COLORFF00FF,LINETHICK3;

DRAWICON(MY1,-40,1),COLORWHITE;

DRAWICON(CROSS(DY,KY),150,2);

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

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

N:=KK+DDD,COLORMAGENTA;

准备:IF(CROSS(N,50),40,-20),COLORLIRED;

发射:IF(CROSS(N,100),50,-10),COLORYELLOW;

ZTSJ:=BARSLAST(发射=100);

价:REF(C,ZTSJ)*1.1,COLORBLUE;

涨:=(C/REF(C,ZTSJ)-1)*100,RGB(255,255,0);

低:=IF(ZTSJ>0 AND ZTSJ<10 AND (L/REF(C,ZTSJ)-1)*100<=-5,5,50),RGB(255,255,255);

达标:=ZTSJ<20 AND CROSS(H,REF(C,ZTSJ)*1.1);

GWGD:=N=160 AND REF(N,1)>=REF(N,2);

卖:IF(GWGD,130,160),COLORGREEN;

XX:=LLV(J,2)=LLV(J,8);

YGBLST:=CROSS(J,REF(J+0.01,1)) AND XX AND J<20;

短进:IF(YGBLST,20,0),LINETHICK1,COLORWHITE;

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。


财经频道