资源描述:
《超级macd条件选股公式》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、超级MACD条件选股公式input:P(26,20,100),S(12,5,40),M(9,2,60),P1(19,1,120),P2(120,1,250),选股(-40,-100,0),抄底(-26,-100,0);DRAWGBK(CLOSE,COLORRGB(5,2,0),COLORRGB(5,2,0),1);DIFF:(EMA(CLOSE,S)-EMA(CLOSE,P)),colorFF;DEA:EMA(DIFF,M),colorFFFF;MACD:(2*(DIFF-DEA)),COLORSTICK,LINETHICK
2、2;STICKLINE(((MACD[0)),0,MACD,2,0),LINETHICK2,colorFFFF;STICKLINE(((MACD>REF(MACD,1))AND(MACD<0)),0,MACD,2,0),LINETHICK2,colorFF00FF;HH:=MA(CLOSE,10);GG:=MA(CLOSE,12);上:=FFT((MA(HIGH,3)*1.05),30);下:=FFT((MA(LOW,3)*0.96),30);决战:STICKLINE((((CROS]
3、S(DIFF,DEA)AND((下-REF(下,1))>0))AND(MACD>=REF(MACD,1)))AND(DIFF<0)),DIFF,0.4,3,0),colorFF;DRAWICON((((CROSS(DIFF,DEA)AND((下-REF(下,1))>0))AND(MACD>=REF(MACD,1)))AND(DIFF<0)),0.4,0);DRAWTEXT((((CROSS(DIFF,DEA)AND((下-REF(下,1))>0))AND(MACD>=REF(MACD,1)))AND(DIFF<=0)),0.
4、4,'。DIFF金叉'),colorFF;STICKLINE(FILTER(((((MACD>=REF(MACD,5))AND((下-REF(下,1))>0))AND(MACD<=0))AND((GG-REF(GG,1))>=0)),3),0,0.5,3,0),colorFF00;DRAWICON(FILTER(((((MACD>=REF(MACD,5))AND((下-REF(下,1))>0))AND(MACD<=0))AND((GG-REF(GG,1))>=0)),3),0.5,0);DRAWTEXT(FILTER((((
5、(MACD>=REF(MACD,5))AND((下-REF(下,1))>0))AND(MACD<=0))AND((GG-REF(GG,1))>=0)),3),0.5,'。绝佳买入'),colorFF00;VCF1:=LLV(LOW,5);VCF2:=HHV(HIGH,5);VCF3:=EMA((((CLOSE-VCF1)/(VCF2-VCF1))*100),4);VCF4:=EMA(((0.667*REF(VCF3,1))+(0.333*VCF3)),2);VCF5:=((HIGH+LOW)/2);VCF6:=DMA(VCF
6、5,(VOL/SUM(VOL,MIN(5,BARSCOUNT(CLOSE)))));VCF7:=DMA(VCF5,(VOL/SUM(VOL,MIN(13,BARSCOUNT(CLOSE)))));VCF8:=DMA(VCF5,(VOL/SUM(VOL,MIN(34,BARSCOUNT(CLOSE)))));VCF9:=DMA(VCF5,(VOL/SUM(VOL,MIN(75,BARSCOUNT(CLOSE)))));VCFA:=EMA(WINNER((0.9*CLOSE)),5);VCFB:=(1-EMA(WINNER((1
7、.2*CLOSE)),5));VCFC:=EMA(WINNER(CLOSE),5);VCFD:=((100*(CLOSE-VCF6))/VCF6);VCFE:=((100*(CLOSE-VCF7))/VCF7);VCFF:=((100*(MIN(CLOSE,OPEN)-VCF8))/VCF8);VCF10:=BARSLAST(((VCF8>VCF9)AND(REF(VCF8,1)<=REF(VCF9,1))));VCF11:=((((COUNT(((WINNER(CLOSE)<0.11)AND(EMA(WINNER(CLOS
8、E),5)<0.15)),2)>0)OR(((1-WINNER((1.2*CLOSE)))>=0.8)AND(WINNER(CLOSE)<0.05)))AND(COUNT((VCFE<(0-16)),2)>0))AND(COUNT((VCFF<(0-20)),2)>0));VCF12:=(