MACD神公式 多年前在一个直播间看见一位牛逼老师的一款类似指标,很喜欢,希望他分享而不得,后来全网搜索,只见过图片,招不到源码,最近偶然从一个同学发的一个macd指标获得启发,自编复活这个指标,看看它是否真的神奇、有用。。。。 使用说明: 1、下面全是空的,最上面一格,中原一点红,是反弹。。。 2、下面不全空,上面有三格红,而且连红,即可参与操作。。。 3、下面有六至七格红,上面的格子偶尔变空,其实无需害怕,主力在洗掉散户呢 {60分} DIF60:=EMA(CLOSE,12/4)-EMA(CLOSE,26/4); DEA60:=EMA(DIF60,9/4); STICKLINE(DIF60>=DEA60,60,65,2,0),COLORRED; STICKLINE(DIF60<DEA60,60,65,3,1),COLOR696969; {120分} DIF120:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2); DEA120:=EMA(DIF120,9/2); STICKLINE(DIF120>=DEA120,55,60,2,0),COLORRED; STICKLINE(DIF120<DEA120,55,60,3,1),COLOR696969; {180分} DIF180:=EMA(CLOSE,12/4*3)-EMA(CLOSE,26/3*2); DEA180:=EMA(DIF180,9/4*3); STICKLINE(DIF180>=DEA180,50,55,2,0),COLORRED; STICKLINE(DIF180<DEA180,50,55,3,1),COLOR696969; {1日}{分析家公式网 WWW.70822.COM 整理} DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); STICKLINE(DIF>=DEA,45,50,2,0),COLORRED; STICKLINE(DIF<DEA,45,50,3,1),COLOR696969; {2日} DIF2:=EMA(CLOSE,12*2)-EMA(CLOSE,26*2); DEA2:=EMA(DIF2,9*2); STICKLINE(DIF2>=DEA2,40,45,2,0),COLORRED; STICKLINE(DIF2<DEA2,40,45,3,1),COLOR696969; {3日} DIF3:=EMA(CLOSE,12*3)-EMA(CLOSE,26*3); DEA3:=EMA(DIF3,9*3); STICKLINE(DIF3>=DEA3,35,40,2,0),COLORRED; STICKLINE(DIF3<DEA3,35,40,3,1),COLOR696969; {4日} DIF4:=EMA(CLOSE,12*4)-EMA(CLOSE,26*4); DEA4:=EMA(DIF4,9*4); STICKLINE(DIF4>=DEA4,30,35,2,0),COLORRED; STICKLINE(DIF4<DEA4,30,35,3,1),COLOR696969; {周} 周MD:=MACD.DIF#WEEK; 周MA:=MACD.DEA#WEEK; STICKLINE(周MD>=周MA,25,30,2,0),COLORRED; STICKLINE(周MD<周MA,25,30,3,1),COLOR696969; {8日}{分析家公式网 WWW.70822.COM 整理} DIF8:=EMA(CLOSE,12*8)-EMA(CLOSE,26*8); DEA8:=EMA(DIF8,9*8); STICKLINE(DIF8>=DEA8,20,25,2,0),COLORRED; STICKLINE(DIF8<DEA8,20,25,3,1),COLOR696969; {12日} DIF12:=EMA(CLOSE,12*12)-EMA(CLOSE,26*12); DEA12:=EMA(DIF12,9*12); STICKLINE(DIF12>=DEA12,15,20,2,0),COLORRED; STICKLINE(DIF12<DEA12,15,20,3,1),COLOR696969; {16日} DIF16:=EMA(CLOSE,12*16)-EMA(CLOSE,26*16); DEA16:=EMA(DIF16,9*16); STICKLINE(DIF16>=DEA16,10,15,2,0),COLORRED; STICKLINE(DIF16<DEA16,10,15,3,1),COLOR696969; {1月} 月MD:=MACD.DIF#MONTH; 月MA:=MACD.DEA#MONTH; STICKLINE(月MD>=月MA,5,10,2,0),COLORRED; STICKLINE(月MD<月MA,5,10,3,1),COLOR696969; DRAWTEXT_FIX(1,0.980,20,1,'★分析家公式网'),COLORYELLOW; |