资源描述:
《【股票指标公式下载】-【通达信】优化MACD(趋势、顶背、涨停、跌停)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【通达信】优化MACD(趙势.顶背.涨停.跌停)-指标公式源码高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);H3:=高1-(高1-低1)*0.5;中轴:REFDATE(H3,DATE),P0TNTD0T,COLORLTGRAY,LTNETHTCK3;B1:=EMA(C,12);B2:二EMA(C,26);B3:=B1-B2;WDIF:EMA(EMA(EMA(C,3),3),3)+B3;WDEA:EMA(WDTF,9);MACD:二2*(WD1F-WDEA)
2、;STICKLINE(MACD>0,中轴冲轴+MACD,0,l),C0L0RRED;STICKLINE(MACD<0,中轴,中轴+MACD,0,1),C0L0RLIBLUE;STICKLINE(MACD[0,中轴,中轴+MACD,0,0),COLOROOBBFF;STICKLINE(MACD>=REF(MACD,1)ANDMACD>0,中轴,中轴+MACD,0,0),C0L0R0011BB;STICKLINE(MACD>REF(MACD,1)ANDMACD〈O]
3、,中轴冲轴+MACD,0,0),C0L0RBB11BB;STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,中轴,中轴+MACD,0,O),COLORFFBB11;VARA:=LLV(LOW,36);VARB-HHV(HIGH,30);VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;趋势:二VARC,C0L0R33FFFF;顶背:STTCKLTNE(VARC>90,OPEN,CLOSE,1,0),COLORRED;VAR26:=(MA(C
4、LOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;VAR27:二MA(VAR26,5);VAR28:=MA(VAR26,10);C2:二REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);跌停:=IF((C2-C)*100/C2>二(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;STTCKLTNE(跌停,OPEN,CLO
5、SE,1,0),COLORGREEN;GJ:=(C+H+L+O)/4;明日阻力:二L+(GJ-L)+(C-L)+0.03;明日支撑:=L+(C-GJ)+0.01;阻力:REF(明日阻力,1),NODRAW;支撑:REF(明日支撑,1),NODRAW;KLH:=1F(PERIOD二5,0.015,0);前天均价:二REF(AMOUNT,1)/REF(VOL*100,1),LINETHICKO;STICKLINE(CURRBARSCOUNT=1,阻力+KLII,阻力,6,0),COLORGREEN;S
6、TICKLINE(CURRBARSCOUNT=1,支撑,支撑-KLH,6,0),COLORRED;涨家:INDEXADV,C0L0R0066FF,NODRAW;跌家:INDEXDEC,C0L0R99FF99,NODRAW;TT2:=DMA((((HIGH+LOW)+(CL0SE*2))/4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:二SMA(RSV,3,1);D:=S
7、MA(K,3,1);J:二3*K-2*D;LC:=REF(CLOSE,1);RS1:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);日线止损:(LC*1・0035*97+0.2)/99.65,C0L0R03B4EC,NODRAW;【通达信】优化MACD(趋势.顶背.涨停.跌停)•指标公式效果图.MfAGfGU.COM(文档来源:若水财经社区)