资源描述:
《通达信均线主图均线、量线、涨停、换手、买点》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、【通达信】均线主图(均线、量线、涨停、换手、买点)-指标公式源码M1:=5;M2:=10;M3:=30;M4:=60;M5:=80;MA5:MA(CLOSE,M1),COLORFFFFFF;MA10:MA(CLOSE,M2),COLORFF00FF;MA30:MA(CLOSE,M3),COLOR00FFFF;MA60:MA(CLOSE,M4),COLOR00FF00,LINETHICK2;MA250:MA(CLOSE,M5),COLOR0000FF,LINETHICK2;MA5Z:=MA(C,5);MA1
2、0Z:=MA(C,10);MA30Z:=MA(C,30);MA60Z:=MA(CLOSE,60),LINETHICK2;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);MACD1:=CROSS(DIFF,DEA)ANDCOUNT(MACD>0,1)=1;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1)
3、;J:=3*K-2*D;KDJ1:=CROSS(K,D)ANDCROSS(J,D);均线:=CROSS(MA(C,5),MA(C,10));量线:=CROSS(MA(V,5),MA(V,10));SCC:=MACD1ANDKDJ1AND均线AND量线;SC1:=MACD1ANDKDJ1;SC2:=均线AND量线;SC3:=均线ANDMACD1;SC4:=量线ANDKDJ1;SC5:=均线ANDKDJ1;SC6:=MACD1AND量线;DRAWICON(SC1ORSC2ORSC3ORSC4ORSC5ORSC
4、6,L-0.20,9);{两个以上指标同时金叉显示9号图标}DRAWICON(SCC,L-0.20,14);{四个指标同时金叉显示3号图标,便于区别};C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,2.5,0),COLORYELLOW;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2.5,0),COLO
5、RBLUE;EMA13LG:=EMA(C,13),COLORWHITE;EMA21LG:=EMA(C,21),COLORYELLOW;EMA34LG:=EMA(C,34),COLORFF00FF;EMA60LG:=MA(C,60),COLORFFCC66;X1LG:=(C+L+H)/3;X2LG:=EMA(X1LG,6);X3LG:=EMA(X2LG,5);GR1LG:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));GR2LG:=EMA13LG>EMA21LGA
6、NDEMA21LG>EMA34LGANDEMA13LG>REF(EMA13LG,1);GR3LG:=COUNT("BIAS.BIAS2"(6,13,24)>10ANDH=HHV(H,GR1LG),GR1LG);GR4LG:=H=HHV(H,GR1LG);GR5LG:="MACD.MACD"(9,17,8)7、R6LGANDGR7LG;LCLG:=REF(CLOSE,1);RSI6:=SMA(MAX(CLOSE-LCLG,0),6,1)/SMA(ABS(CLOSE-LCLG),6,1)*100;BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;换手:=100*V/CAPITAL;BB13LG:=ATAN(EMA13LG-REF(EMA13LG,1))*3.1416*10;EMA8LG:=EMA(C,8);AA1LG:=AMOUNT/VOL;BB1LG:=L8、.9;CC1LG:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1LG:=L