通达信波段RSI指标公式,通达信趋势MACD指标公式
admin888
|通达信波段RSI指标公式,通达信趋势MACD指标公式
通达信波段RSI指标公式
Rma2:=MA(MA("rsi.RSI2#MONTH",2),2);
RMA3:=MA(MA("RSI.RSI3#MONTH",2),2);
crSI:"RSI.RSI3#WEEK",COLOR00AA00,LINETHICK1;
BRSI:"RSI.RSI2#WEEK",COLOREE1166,LINETHICK1;
ARSI:"RSI.RSI1#WEEK",COLOR3366CC,LINETHICK1;
突破月R1:=stICKLINE(RMA2>=RMA3,0,vol,2.8,0);
突破月R2:=STICKLINE(RMA2
月MD:="kdj.D#MONTH";
月MK:="kdJ.K#MONTH";
周CD:="KDJ.D#WEEK";
周CK:="KDJ.K#WEEK";
月死KD:=MA((月MD,月MK),1);
周死KD:=MA((周CD,周CK),1);
周死RSI:="RSI.RSI2#WEEK"<="RSI.RSI3#WEEK";
月金KD:=MA((月MK,月MD),1);
周金KD:=MA((周CK,周CD),1);
周金RSI:="RSI.RSI2#WEEK">="RSI.RSI3#WEEK"*0.998;
周金R:="RSI.RSI1#WEEK">="RSI.RSI2#WEEK";
死叉RSI:=DRAWICON(CROSS(周CD,周CK) AND 周死RSI,90,2);
转向:=DRAWICON((CROSS(周CK,周CD) AND 周金RSI),25,5);
周金叉RSI:=STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),0,25,3,0);
月金叉:=月MK>月MD;
月周金叉:=IF(CROSS(周CK,周CD) AND 月金叉,31,0);
AA:=STICKLINE(月死KD && 周死KD && 周死RSI && 突破月R2,95,5,0,1),COLOR807777;
BB:=STICKLINE(月金KD && 周金KD && 周金RSI && 突破月R1,5,95,0,1),COLOR0000BB;
DF:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1),COLOR00EEFF,LINETHICK1;
KF:ema(MA(DF,5),7),COLOR777777,LINETHICK1;
STICKLINE(DF>78 && DF>=KF,78,DF+1,5,0),COLOR00CC00;
STICKLINE(KF<15 && KF<=DF,KF,15,5,0),COLOR00FFEE;
STICKLINE(KF<=DF,KF,DF,0.8,0),COLOR0000FF;
STICKLINE(KF>DF,KF,DF,0.8,0),COLORFFCC00;
STICKLINE(DF>70 AND (PEAKBARS(HHV(RSI,5),17,1)=1 OR PEAKBARS(HHV(RSI,11),11,1)=1OR PEAKBARS(HHV(RSI,24),15,1)=1 OR PEAKBARS(HHV(DF,24),11,1)=0),80,96,4,0),COLOREEFF00;
低:=STICKLINE(DF<18 AND (TROUGHBARS(LLV(HHV(RSI,1),5),17,1)=0 OR TROUGHBARS(LLV(RSI,24),15,1)=0 ORTROUGHBARS(LLV(DF,3),17,1)=1 OR TROUGHBARS(LLV(DF,24),15,1)=1),5,20,4,0),COLOR00AacC;
金叉RSI:STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK") AND ("RSI.RSI2#MONTH">="RSI.RSI3#MONTH")AND ("RSI.RSI1#MONTH">"RSI.RSI2#MONTH"),95,5,1.2,0),COLOR3800FF;
金叉R:DRAWICON(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),80,9);
卖:IF(PEAKBARS(3,15,1)=1,64,95),COLOR00FF44,LINETHICK2;
买:IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,38,5),COLORFF00FF,LINETHICK2;
HINE1:=78.89;
HINE2:=85 OR 82;
HINE3:=92 OR 89;
LINE1:=5;
LINE2:=10;
LINE3:=13;
DRAWTEXT(CROSS(HINE1,DF) OR CROSS(HINE2,DF) OR CROSS(HINE3,DF),89,'?R高?'),COLOREEFFEE;
DRAWTEXT(CROSS(DF,LINE1) OR CROSS(DF,LINE2) OR CROSS(DF,LINE3),13,'▲低'),COLOR00AAFF;
通达信趋势MACD指标公式
A1:=ema((Ema(CLOSE,1)+EMA(CLOSE,3)+EMA(CLOSE,5))/3,5),COLOR0055FF;
A2:=EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+EMA( CLOSE,7))/3,5),COLOR0055FF;
A3:=EMA((EMA(CLOSE,5)+EMA(CLOSE,7)+EMA( CLOSE,9))/3,5),COLOR0055FF;
A4:=EMA((EMA(CLOSE,7)+EMA(CLOSE,9)+EMA( CLOSE,11))/3,5),COLOR0055FF;
A5:=EMA((EMA(CLOSE,9)+EMA(CLOSE,11)+EMA( CLOSE,13))/3,5),COLOR0055FF;
A6:=EMA((EMA(CLOSE,11)+EMA(CLOSE,13)+EMA( CLOSE,15))/3,5),COLOR0055FF;
A7:=EMA((EMA(CLOSE,13)+EMA(CLOSE,15)+EMA( CLOSE,17))/3,5),COLOR0055FF;
A8:=EMA((EMA(CLOSE,15)+EMA(CLOSE,17)+EMA( CLOSE,19))/3,5),COLOR0055FF;
A9:=EMA((EMA(CLOSE,17)+EMA(CLOSE,19)+EMA( CLOSE,21))/3,5),COLOR0000FF;
A10:=EMA((EMA(CLOSE,19)+EMA(CLOSE,21)+EMA( CLOSE,23))/3,5),COLOR0000FF;
A11:=EMA((EMA(CLOSE,21)+EMA(CLOSE,23)+EMA( CLOSE,25))/3,5),COLOR0000FF;
A12:=EMA((EMA(CLOSE,23)+EMA(CLOSE,26)+EMA(CLOSE,29))/3,5),COLOR0000FF;
AA:=(A1+A2+A3+A4+A5+A6)/6;
BB:=(A7+A8+A9+A10+A11+A12)/6;
多空线1:=(AA+BB)/2,COLORBBBBBB,LINETHICK2;
A81:=MA(EMA(CLOSE,12),1),COLOR0000EE;
A82:=MA(EMA(CLOSE,12),3),COLOR0000EE;
A83:=MA(EMA(CLOSE,12),5),COLOR0000EE;
A84:=MA(EMA(CLOSE,12),7),COLOR0000EE;
A85:=MA(EMA(CLOSE,12),9),COLOR0000EE;
A86:=MA(EMA(CLOSE,12),11),COLOR0000EE;
A87:=MA(EMA(CLOSE,12),13),COLOR0000EE;
A88:=MA(EMA(CLOSE,60),1),COLOR33CC00;
A89:=MA(EMA(CLOSE,60),3),COLOR33CC00;
A90:=MA(EMA(CLOSE,60),5),COLOR33CC00;
A91:=MA(EMA(CLOSE,60),7),COLOR33CC00;
A92:=MA(EMA(CLOSE,60),9),COLOR33CC00;
A93:=MA(EMA(CLOSE,60),11),COLOR33CC00;
A94:=MA(EMA(CLOSE,60),13),COLOR33CC00;
多空A:=(A81+A82+A83+A84+A85+A86+A87)/7;
多空B:=(A88+A89+A90+A91+A92+A93+A94)/7;
多空线2:=(多空A+多空B)/2,COLOR0088CC;
DEF1:=EMA(EMA(多空线1-REF(多空线1,1),3),5);
DEF2:=EMA(EMA(多空线2-REF(多空线2,1),3),5);
stICKLINE(DEF1>=0 ,0,DEF1,2,1),COLOR0000AA;
STICKLINE(DEF1>=0 AND DEF1>=(REF(DEF1,1)+REF(DEF1,2))/2,0,DEF1,2,1),COLOR0000FF;
STICKLINE(DEF1<=0,0,DEF1,2,1),COLORFF9900;
difFR:EMA(CLOSE,9)- EMA(CLOSE,12),COLOR00FF00,LINETHICK2;
DEAR:EMA(DIFFR,24),COLORFFFFFF,LINETHICK1;
MacM:=2*(DIFFR-DEAR),LINETHICK1;
macdR:=2*(DIFFR-DEAR),COLORSTICK;
DIFF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIFF1,27);
MACD1:=2*(DIFF1-DEA1);
MACM1:=2*(DIFF1-DEA1);
BBM:=crOSS(DIFF1,DEA1) AND CROSS(MACM1,DEA1);
DEA2:=EMA(DIFF1,9);
MACD2:=2*(DIFF1-DEA2);
BAK:=CROSS(DIFFR,DEAR) AND CROSS(MACDR,DEAR) AND MACDR>DIFFR AND DIFFR>0;
DRAWTEXT(BAK,DEAR,'☆MM'),COLOR00FFFF;
DIF:=EMA(EMA((H+L)/2,8)-EMA((H+L)/2,13),13);
ddiF:=EMA(EMA(C,8)-EMA(C,13),13);
MD:=EMA(EMA(DDIF,5),5),COLOR58FF58;
DEF:=2*(DIF-MD),COLORFFFF00,LINETHICK0;
拉升:IF(DEF>REF(DEF,1) OR DIFFR>=(REF(DIFFR,1)+REF(DIFFR,2))/2,DIFFR,DRAWNULL),COLOR8800FF,LINETHICK2;
SG1:=EMA(HHV(HIGH,1),11);
金R:="rsi.RSI1#WEEK">="RSI.RSI2#WEEK";
SS:=CROSS(HIGH,SG1) AND 金R AND CROSS(CLOSE,A6) AND CROSS(CLOSE,A7) AND CROSS(CLOSE,多空线1) ;
走强:STICKLINE(SS AND C>O AND C>O ANDvol/REF(VOL,1)>=1.3,0.08,-0.08,3,1),COLOR00ddeE;
多A:=STICKLINE(CROSS(C,多空线2) AND 多空线2>=REF(多空线2,1) ANDVOL/REF(VOL,1)>=1.28 AND (C-REF(C,1))/REF(C,1)>=0.02,-0.09,0.09,1,0),COLOR0000FF;
多B:DRAWICON(CROSS(C,多空线1) AND 多空线1>REF(多空线1,1) ANDVOL/REF(VOL,1)>=1.28 AND (C-REF(C,1))/REF(C,1)>=0.03,0,5);
费氏数:=BACKSET(REF(HIGH,1)=HHV(HIGH,150),1);
成立距今:=BArslAST(费氏数=1);
费氏神奇数:=0;
DRAWTEXT(成立距今=12,DIFFR,'13'),COLORFFFFFF;
DRAWTEXT(成立距今=20,DIFFR,'21'),COLORFFFFFF;
DRAWTEXT(成立距今=33,DIFFR,'34'),COLORFFFFFF;
DRAWTEXT(成立距今=54,DIFFR,'55'),COLORFFFFFF;
DRAWTEXT(成立距今=88,DIFFR,'89'),COLORFFFFFF;
DRAWTEXT(成立距今=143,DIFFR,'144'),COLORFFFFFF;
费氏数L:=BACKSET(REF(LOW,1)=LLV(LOW,100),1);
成立距今L:=BARSLAST(费氏数L=1);
数L:DRAWTEXT((成立距今L=7 OR 成立距今L=12 OR 成立距今L=20 OR 成立距今L=33),0,'L'),COLOR00FFFF;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。