资源描述:
《【股票指标公式下载】-【通达信】优化MACD(趋势、探底、绝佳买点、美化).doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【通达信】优化MACD(趋势.探底.绝佳买点、美化)-指标公式源码VARB2:=((CLOSE-LLV(LOW,1O))/(HHV(HIGH,10)-LLV(LOW,10)))*(100);VARB3:=EMA(VARB2,7);VARB4:=EMA(VARB3,10);VARB5:二⑶*(VARB3)-(2)*(VARB4);VARB6:=EMA(VARB5,5);趋势:二(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),
2、5,0)-(2)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));探底:IF((趋势〈=5),58,0),COLORFFOOFF;桥1:=EMA(VARB6,1);美化-TF(REF((COUNT((桥1<=REF(桥1,1)),5)二5),1)AND(桥1>REF(桥1,D),10,0);STICKLINE((美化),-20,20,15,1),COLORFFFFOO;MTM1:MA((CLOSE-R
3、EF(CLOSE,13))*31,5),LINETHICK1,COLOR7711EE;VARF1:=MA(HHV(HIGH,485),17);VARF2:=MA(IIIIV(HIGH,222),17);VARF3:=MA(HHV(HIGH,96),17);VARF4:二MA(LLV(LOW,485),17);VARF5:=MA(LLV(LOW,222),17);VARF6:=MA(LLV(LOW,96),17);VARF7:二MA((VARF4*0・96+VARF5*0.96+VARF6*0・96+V
4、ARFl*0.558+VARF2*0.558+VARF3*0・558)/6,17);VARF8:=MA((VARF4*1.25+VARF5京1.23+VARF6*l.2+VARF1京0.55+VARF2*0.55+VARF3*0.65)/6,17);VARF9:=MA((VARF4*1.3+VARF5*l・3+VARF6*l・3+VARFl*0.68+VARF2*0・68+VARF3*0.68)/6,17);VARFA:二MA((VARF7*3+VARF8*2+VARF9)/6*1・73&17);VA
5、RFB:=IF(C=C,VARFA,VARFA*DAY);VARFC:=LOW;VARFD:=REF(LOW,1);VARFE:=SMA(ABS(VARFC-VARFD),3,D/SMA(MAX(VARFC-VARFD,0),3,1)*100;VARFF:=MA(IF(CLOSE*1.35<=VARFB,VARFE*10,VARFE/10),3);VARF10:=LLV(L0W,30);VARFll:=iniV(VARFF,30);绝佳买点:IF(C=C,MA(IF(L0W<=VARF10,(VARF
6、F+VARF11*2)/2,0),3),100000000)/(200),C0L0RRED,LINETHICK2;I:=IF(CL0SE7、2*(DIFF-DEA)*231;STICKLINE(MACD[0,0,MACD,0.9,0),COLOROOFFFF;STICKLINE(MACD<=REF(MACD,1)AXDMACD<0,0,MACD,0.8,0),C0L0RFFEE44;STICKLINE(MACD>=REF(MACD,1)AXDMACD>0,0,MACD,1.1,0),C0L0R0055FF;STTCKIJNE(MACD>REF(MACD,1)A?]8、0),C0L0RFF55BB;DRAWTEXT(CROSS(绝佳买点,1・20000),-32,'疯牛,),COLORYELLOW;DRAWTEXT(CROSS(绝佳买点,4.50000),1,'倾家荡产买J,COLOROOFFFF;{DRAWTEXT(CROSS(绝佳买点,7.00000),88,'疯牛3'),COLORCYAN,LINETHICK4;}DRAWTEXT(CROSS(绝佳买点,3.60000),28,'疯牛2'),COLORFFOOFF