通达信股市地图主图指标公式,通达信K线+MACD指标公式
admin888
|通达信股市地图主图指标公式,通达信K线+MACD指标公式
通达信股市地图主图指标公式
P13:MA(CLOSE,13);
P34:MA(CLOSE,34);
P55:MA(CLOSE,55),COLORRED;
P89:MA(CLOSE,89),COLORGRAY;
P144:MA(CLOSE,144);
P233:MA(CLOSE,233);
P288:MA(CLOSE,288);
LC:=REF(CLOSE,1);
rsi:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(Abs((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
日:=150;
昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
顶:REFDATE(高1,DATE),COLORRED;
一0.809:REFDATE(H1,DATE),COLORYELLOW;
二0.618:REFDATE(H2,DATE),COLORMAGENTA;
三0.500:REFDATE(H3,DATE),COLORWHITE;
四0.382:REFDATE(H4,DATE),COLORGREEN;
五0.191:REFDATE(H5,DATE),COLORYELLOW;
低:REFDATE(低1,DATE),COLORRED;
bias1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
DRAWTEXT(crOSS(BIAS,乖离) AND 乖离<-9,C,'---------BIAS底买'),COLORWHITE;
DRAWTEXT(CROSS(BIAS,乖离) AND 乖离>3,C,'---------BIAS顶'),COLORWHITE;
TY:=C;
Q1:=REF(TY,10)=HHV(TY,2*10+1);
W1:=FILTER(Q1,10);
P1:=BacKSET(W1,10+1);
HD:=FILTER(P1,10);
Q2:=REF(TY,10)=LLV(TY,2*10+1);
W2:=FILTER(Q2,10);
P2:=BACKSET(W2,10+1);
LD:=FILTER(P2,10);
M:=REF(C,BArslAst(HD));
N:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(T1,M,M),COLORCYAN,POINTDOT;
STICKLINE(T1,M,M,9,0),COLORCYAN;
波谷:IF(T2,N,N),COLORGREEN,POINTDOT;
STICKLINE(T2,N,N,9,0),COLOR80FF00;
U:=7;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
QQ:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,QQ);
通道3:(1+U/100)*DD,LINETHICK2;
通道4:(1-U/100)*DD,COLORCYAN,LINETHICK2;
LC1:=REF(CLOSE,1);
RSII:=((SMA(MAX((CLOSE - LC1),0),3,1) / SMA(ABS((CLOSE - LC1)),3,1)) * 100);
FFF:=EMA(CLOSE,3);
PA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FFF,PA15),(LOW * 0.99),'底背离'),COLORA6E500;
DRAWTEXT(CROSS(88,RSII),(HIGH * 1.02),'顶背离'),COLOR1880FF;
通达信K线+MACD指标公式
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
macd: 2*(DIFF-DEA);
stICKLINE(MacD>0,MACD,0,0.5,1),COLORRED;
STICKLINE(MACD<0,MACD,0,0.5,1),COLORGREEN;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.5,1),COLORFF00FF;
绿柱面积:IF (MACD<0,SUM(MACD,BArslAST(MACD>0)),0),nodraw,colorgreen;
红柱面积:IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),nodraw,Colorred;
DRAWTEXT(crOSS(diff,80),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-80,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-80),diff,'强'),COLORRED;
DRAWTEXT(CROSS(80,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,30),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-30,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-30),diff,'强'),COLORRED;
DRAWTEXT(CROSS(30,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,50),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-50,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-50),diff,'强'),COLORRED;
DRAWTEXT(CROSS(50,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,80),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-8,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-8),diff,'强'),COLORRED;
DRAWTEXT(CROSS(8,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,5),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-50,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-5),diff,'强'),COLORRED;
DRAWTEXT(CROSS(5,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,3),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-3,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-3),diff,'强'),COLORRED;
DRAWTEXT(CROSS(3,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,10),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-10,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-10),diff,'强'),COLORRED;
DRAWTEXT(CROSS(10,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,1),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-1,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-1),diff,'强'),COLORRED;
DRAWTEXT(CROSS(1,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,2),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-2,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-2),diff,'强'),COLORRED;
DRAWTEXT(CROSS(2,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,20),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-20,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-20),diff,'强'),COLORRED;
DRAWTEXT(CROSS(20,diff),diff,'弱'),COLORGREEN;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。