通达信超前MACD指标公式,通达信短线能量指标公式

股票公式 | 发布于2021-11-17

通达信超前MACD指标公式

difF:ema(CLOSE,7) - Ema(CLOSE,19);

DEA:EMA(DIFF,9);

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

A1:=BArslAST(REF(cr(DIFF,DEA),1));

B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);

A2:=BARSLAST(REF(CROSS("kdj.K"(9,3,3),"kdJ.D"(9,3,3)),1));

B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));

A3:=BARSLAST(REF(CROSS("rsi.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));

B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));

C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));

D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);

C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));

D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));

C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));

D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));

MacD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;

KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;

RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;

MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;

KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;

RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;

STICKLINE(B1>0,-0.1,0,2,0),COLORRED;

STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;

STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;

STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;

STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;

STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORYELLOW;

STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORCYAN;

STICKLINE(MACD>=REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORMAGENTA;

STICKLINE(C>0,0,0,50,1),COLORBLUE;

DIFF,COLORGREEN;

DEA,COLORYELLOW;强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED;

弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA;

通达信短线能量指标公式

额亿:AMOUNT/100000000,COLORFF00FF,NODRAW;

AA:=(AMOUNT / (((HIGH - LOW) * 2) - Abs((CLOSE - OPEN))));

买亿:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),vol/2))/100000000,COLORRED,NODRAW;

卖亿:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0- AA*(HIGH-LOW),0-VOL/2))/100000000,LINETHICK0,COLORCYAN,NODRAW;

存量:(买亿+卖亿),COLORRED,NODRAW;

深海:=C-(VOL,1);

幽灵:=EXPMema(深海,2);

深海幽灵:=EXPMEma(深海-幽灵,1),COLORstICK;

机构量能:EMA(深海幽灵,2),COLORRED,NODRAW;

红十天罗陀:=EXPMEMA(机构量能,2);

红十天罗陀1:=EXPMEMA(红十天罗陀,2);

STICKLINE(机构量能,(REF(机构量能,1)),机构量能,5,0),COLOR000077;

STICKLINE(机构量能,(REF(机构量能,1)),机构量能,4,0),COLOR000099;

STICKLINE(机构量能,(REF(机构量能,1)),机构量能,3,0),COLOR0000BB;

STICKLINE(机构量能,(REF(机构量能,1)),机构量能,1.5,0),COLOR0000DD;

STICKLINE(机构量能,(REF(机构量能,1)),机构量能,0.5,0),COLOR0000FF;

STICKLINE(机构量能,(REF(红十天罗陀,1)),红十天罗陀,5,0),COLOR000077;

STICKLINE(机构量能,(REF(红十天罗陀,1)),红十天罗陀,4,0),COLOR000099;

STICKLINE(机构量能,(REF(红十天罗陀,1)),红十天罗陀,3,0),COLOR0000BB;

STICKLINE(机构量能,(REF(红十天罗陀,1)),红十天罗陀,1.5,0),COLOR0000DD;

STICKLINE(机构量能,(REF(红十天罗陀,1)),红十天罗陀,0.5,0),COLOR0000FF;

金色持有:=REF(机构量能>REF(机构量能,1),1);

STICKLINE(金色持有,(REF(机构量能,1)),机构量能,5,0),COLOR007777;

STICKLINE(金色持有,(REF(机构量能,1)),机构量能,4,0),COLOR009999;

STICKLINE(金色持有,(REF(机构量能,1)),机构量能,3,0),COLOR00BBBB;

STICKLINE(金色持有,(REF(机构量能,1)),机构量能,1.5,0),COLOR00DDDD;

STICKLINE(金色持有,(REF(机构量能,1)),机构量能,0.5,0),COLOR00FFFF;

绿色减仓:=机构量能<REF(机构量能,1);

STICKLINE(绿色减仓,(REF(红十天罗陀,1)),红十天罗陀,5,0 ),COLOR007700;

STICKLINE(绿色减仓,(REF(红十天罗陀,1)),红十天罗陀,4,0 ),COLOR009900;

STICKLINE(绿色减仓,(REF(红十天罗陀,1)),红十天罗陀,3,0 ),COLOR00BB00;

STICKLINE(绿色减仓,(REF(红十天罗陀,1)),红十天罗陀,2,0 ),COLOR00DD00;

STICKLINE(绿色减仓,(REF(红十天罗陀,1)),红十天罗陀,1,0 ),COLOR00FF00;

DRAWTEXT(crOSS(机构量能,0),0,'买'),COLORFF00FF;

DRAWTEXT(CROSS(0,机构量能),0,'卖'),COLOR00FFFF;

DRAWTEXT(CROSS(机构量能,红十天罗陀),机构量能,'B'),COLORFF00FF;

DRAWTEXT(CROSS(红十天罗陀,机构量能),机构量能,'S'),COLOR00FFFF;

轴: 0,COLORWHITE;

飞鲸投研从多维度分析,整理了一份《成长50》的名单,可以关注同名公众号:"飞鲸投研":feijingtouyan,进行领取(点击复制)

Tags: 000099
该文观点仅代表作者本人,飞鲸投研系信息发布平台

/阅读下一篇/

在股市中,保守主义者的表现有哪些?

热门推荐