經典老指標【MACD】與壇友們分享 【瀏覽與實用】[同花順公式]
相關標簽: 經典macd指標源碼 、 macd指標詳解 、 macd指標 、 股市macd指標詳解 、 macd指標詳解l圖 、 macd指標的最佳設置值 、 macd技術指標實戰精解 、 macd指標詳解視頻 、 實戰中macd指標詳解 、
自用經典老指標【MACD】與壇友們分享:此指標是由抱負論壇的【見凌見】,【紅樹林園】兩位老師獨創的,我只是把它們組合在了一起,經典老指標,了解新用法!波段頂底一目了然,有心人自會大白的!在此也真誠的感激兩位老師的出色分享!
DRAWGBKLAST(C>0,STRIP(RGB(140,140,130),RGB(120,120,110),1));
DIF:=(EMA(CLOSE,6/2)-0.7*EMA(CLOSE,6)-0.3*EMA(CLOSE,12))*100;
PARTLINE(DIF,DIF>REF(DIF,1),RGB(250,10,250),DIF<=REF(DIF,1),RGB(10,250,250)),LINETHICK2;
DEA:EMA(DIF,5),Color1E67FF,LINETHICK2;
MACD:=(DIF-DEA)*2,COLORSTICK;
A:=MACD;
KDIF:=3*(DIF-DEA);
KDEA:=SMA(KDIF,5,2);
買負責:=2*(KDIF-KDEA),Color15FFFF;
平衡力:SMA(買負責,4,2),ColorFFFFFF,LINETHICK1;
STICKLINE(A>REF(A,1) AND a>=0,0,A,8,0),Color0000B5;
STICKLINE(A>REF(A,1) AND a>=0,0,A,6,0),Color0000D2;
STICKLINE(A>REF(A,1) AND a>=0,0,A,4,0),Color0000F0;//紅
STICKLINE(A>REF(A,1) AND a<0,0,A,8,0),Color00B5B5;
STICKLINE(A>REF(A,1) AND a<0,0,A,6,0),Color00D2D2;
STICKLINE(A>REF(A,1) AND a<0,0,A,4,0),Color00F0F0;//黃
STICKLINE(A<=REF(A,1) AND a>=0,0,a,8,0),ColorB4B4B4;
STICKLINE(A<=REF(A,1) AND a>=0,0,a,6,0),ColorD2D2D2;
STICKLINE(A<=REF(A,1) AND a>=0,0,a,4,0),ColorF0F0F0;//灰
STICKLINE(A<=REF(A,1) AND a<0,0,A,8,0),Color00B500;
STICKLINE(A<=REF(A,1) AND a<0,0,A,6,0),Color00D200;
STICKLINE(A<=REF(A,1) AND a<0,0,A,4,0),Color00F000;//綠
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,55);
VAR3:=DEA-(DIF-DEA);////本文來源:程序化交易網' 88.com '//
DEA高點耽誤線:IF(DIF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1),ColorFF2626,LINETHICK1;
DEA低點耽誤線:IF(DIF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2),ColorFF2626,LINETHICK1;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
STICKLINE(底背離,0,0.13,8,0),Color8B17FF;
DRAWLINE(A1=0,DEA,底背離,DEA,0),Color8B17FF,linethick1;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);
DRAWLINE(A2=0,DEA,頂背離,DEA,0),ColorD50000,linethick1;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容