通达信嘉浩融胜主图指标公式,通达信深化MACD指标公式
admin888
|通达信嘉浩融胜主图指标公式,通达信深化MACD指标公式
通达信嘉浩融胜主图指标公式
牛熊分界线:dma(ma(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),vol);
年线:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,250),VOL);
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
CC:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:(1+7/100)*DD,CIRCLEDOT,COLORBLUE;
下:(1-7/100)*DD,CIRCLEDOT,COLORBLUE;
中:(上+下)/2,CIRCLEDOT,COLORBLUE;
IF(上>=REF(上,1), 上,DRAWNULL),CIRCLEDOT,COLOR0099FF;
IF(中>=REF(中,1), 中,DRAWNULL),CIRCLEDOT,COLOR0099FF;
IF(下>=REF(下,1), 下,DRAWNULL),CIRCLEDOT,COLOR0099FF;
XA:=(REF(crOSS(C,上),1) AND C>上);
DRAWTEXT(XA,上*0.99,'●'),COLORLIMAGENTA;
XG:=(REF(CROSS(C,中),1) AND C>中);
DRAWTEXT(XG,中,'★'),COLORLIRED;
XB:=(REF(CROSS(C,下),1) AND C>下);
DRAWTEXT(XB,下,'弹');
均线5角度:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.14115926;
均线10角度:=ATAN((MA(C,10)/REF(MA(C,10),3)-1)*100)*180/3.14159;
均线20角度:=ATAN((MA(C,20)/REF(MA(C,20),3)-1)*100)*180/3.14159;
XF:=均线5角度>=45 AND 均线10角度>=60 AND 均线20角度>=45;
DRAWTEXT(XF,下*0.99,'∠'),COLORRED;
XP:=XA AND XF;
DRAWTEXT(XP,上*0.975,'真牛');
M:=MA(C,3);
N:=MA(C,7);
买2:=CROSS(MA(CLOSE,3),MA(CLOSE,7));
DRAWTEXT(买2,LOW*0.98,'?' ),COLORYELLOW;
{3日上穿7日}买:=M>REF(M,1) AND REF(M,1)
{3日上拐}DRAWTEXT(买,LOW*0.98,'←买' ),COLORYELLOW;
VAR11:=zig(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
卖1:=(VAR12+VAR14+VAR16+VAR18);
DRAWTEXT(卖1>0,HIGH*1.02,'←卖出'),COLORGREEN;
通达信深化MACD指标公式
SHORT:=12;
LONG:=26;
M:=9;
difF:ema(CLOSE,SHORT)-Ema(CLOSE,LONG);
DEA:EMA(DIFF,M),COLORGREEN,LINETHICK2;
macd:2*(DIFF-DEA),LINETHICK0;
stICKLINE(MacD>=0 AND MACD>=REF(MACD,1),0,MACD,2,1),COLORRED;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,1),COLORYELLOW;
obv:=DEA;
P:=10;
A1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);
{高点}A2:=REF(OBV,P)=LLV(OBV,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);
{低点}上:=REF(OBV,BArslAST(D1)),COLORFF00FF,NODRAW;
下:=REF(OBV,BARSLAST(D2)),COLOR00FF00,NODRAW;
向上:=crOSS(OBV,上*1.01),NODRAW;
下)*100,COLORYELLOW,NODRAW;
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
S11:=R11>REF(R11,1);
DRAWLINE(D1,OBV,S11,OBV,1),COLORYELLOW;
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
U11:=T11>REF(T11,1);
DRAWLINE(D2,OBV,U11,OBV,1),COLOR00FF00;
STICKLINE(C>0,下,下,1,0),COLOR00FF00;
STICKLINE(C>0,上,上,1,0),COLORFF00FF;
DRAWTEXT(CROSS(OBV,上*1.01),上,上),COLORYELLOW;
DRAWTEXT(CROSS(下*0.99,OBV),下,下),COLORYELLOW;
DRAWICON(D1,OBV,1);
DRAWICON(D2,OBV,2);
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。