導航:首頁 > 源碼編譯 > 能在圖上顯示macd背離的源碼

能在圖上顯示macd背離的源碼

發布時間:2022-03-31 16:32:07

⑴ 通達信kdj,macd,rsi的底背離副圖指標源碼黃色顯示低吸,柱條變紅顯示最佳買入,

可以編寫kdj,macd,rsi 底背離公式,也可以在低吸德時候顯示黃色,買入顯示紅色,但具體底背離判斷方法要說明清楚,只要是底背離就涉及到高低點的位置確認問題,這個高低點確認屬於典型的主觀分析,還有對比判斷的細節,例如macd背離可以是dif背離,可以是dea背離,還可以是macd柱高低背離面積背離。還可以是金叉位置背離,判斷的位置條件,判斷的內容條件,這些所有條件都說明清楚才能編寫公式,而不是說個名字就可以編寫公式了。

例如下圖有kdj背離,macd背離,rsi背離的主圖指標,幅圖指標,選股位置提示指標截圖。

⑵ 編了個類似macd的指標,如何編寫柱狀部分的頂底背離公式,比如出現下圖走勢,在圓圈處出現背離提示

頂底背離:0,COLORYELLOW;
A1:=BARSLAST(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1));
B1:=ref(c,A1+1)>c and ref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) and cross
("macd.diff"(12,26,9),"macd.dea"(12,26,9));
MACD底背離:STICKLINE(FILTER(B1>0,5),0,0.75,3,0),COLORGREEN;
DRAWTEXT(FILTER(B1>0,5),0.57,'MACD底背離'),COLORGREEN;
A2:=BARSLAST(ref(cross("kdj.k"(9,9,3),"kdj.d"(9,9,3)),1));
B2:=ref(c,A2+1)>c and ref("kdj.k"(9,9,3),A2+1)<"kdj.k"(9,9,3) and cross
("kdj.k"(9,9,3),"kdj.d"(9,9,3));
KDJ底背離:STICKLINE(FILTER(B2>0,5),0,1,3,0),COLORYELLOW;
DRAWTEXT(FILTER(B2>0,5),0.80,'KDJ底背離'),COLORYELLOW;
A3:=BARSLAST(ref(cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=ref(c,A3+1)>c and ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) and cross
("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
RSI底背離:STICKLINE(FILTER(B3>0,5),0,0.5,3,0),COLORffcc66;
DRAWTEXT(FILTER(B3>0,5),0.25,'RSI底背離'),COLORffcc66;
2,COLORRED;
C1:=BARSLAST(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1));
D1:=ref(c,C1+1)<c and ref("macd.diff"(12,26,9),C1+1)>"macd.diff"(12,26,9) and cross
("macd.dea"(12,26,9),"macd.diff"(12,26,9));
MACD頂背離:STICKLINE(FILTER(D1>0,5),2,1.25,3,0),COLOR0066FF;
DRAWTEXT(FILTER(D1>0,5),1.47,'MACD頂背離'),COLOR0066FF;
C2:=BARSLAST(ref(cross("kdj.d"(9,9,3),"kdj.k"(9,9,3)),1));
D2:=ref(c,C2+1)<c and ref("kdj.k"(9,9,3),C2+1)>"kdj.k"(9,9,3) and cross
("kdj.d"(9,9,3),"kdj.k"(9,9,3));
KDJ頂背離:STICKLINE(FILTER(D2>0,5),2,1,3,0),COLORRED;
DRAWTEXT(FILTER(D2>0,5),1.2,'KDJ頂背離'),COLORRED;
C3:=BARSLAST(ref(cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=ref(c,C3+1)<c and ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) and cross
("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
RSI頂背離:STICKLINE(FILTER(D3>0,5),2,1.5,3,0),COLORff00ff

⑶ macd背離通達信系統自動畫出

DIFF:EMA(CLOSE,12)-EMA(CLOSE,27),COLORRED;

DEA:EMA(DIFF,9);

MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;

STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;

DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;

DRAWICON(二次金叉,DEA*0.9,1) ;

DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

STICKLINE(底背離,0,0.03,6,0),COLOR00FF00;

底背:DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED,LINETHICK4;

DRAWTEXT(底背離,0.12,' 底背離'),COLORFF00FF;

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));

頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);

頂背:DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK4;

DRAWTEXT(低位金叉 AND 二次金叉 AND 底背離,0.25,'三全項'),COLOR0000FF,LINETHICK2;

{二次翻紅}

FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);

FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;

FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1);

FH4:=FH1 AND FH2 AND ABS((DIFF-DEA)/C)<0.018;

FH5:=FH1 AND FH2 AND MACD<0.10;

二次翻紅:(FH3 OR FH4 OR FH5),COLORRED,NODRAW;

低買:CROSS(DIFF,DEA) AND DIFF<0,COLORFF00FF,NODRAW;

加油:CROSS(DIFF,DEA) AND DIFF>0,COLORYELLOW,NODRAW;

DRAWICON(二次翻紅,-0.05,1);

DRAWTEXT(二次翻紅,-0.15,'↖翻紅'),COLORRED;

DRAWTEXT(CROSS(DIFF,DEA) AND DIFF<0,DEA-0.02,'↖低買'),COLORFF00FF;

DRAWTEXT(CROSS(DIFF,DEA) AND DIFF>0,DEA-0.05,'↖加油'),COLORYELLOW;

XG:二次翻紅 OR 低買 OR 加油,NODRAW;


⑷ 通達信有沒有什麼指標可以判斷macd底背離的有的話發幾張圖看看

通達信系統不自帶這樣的指標,需要用戶根據自己需要的條件編寫,例如下圖中的macd柱的頂底背離自動畫線指標.

⑸ 通達信 macd 背離選股公式 要求有幅圖主圖畫線 選股位置提示

通達信可以編寫macd背離選股公式,dif,dea,macd柱的面積,高低點都可以通過參數選擇,主圖幅圖都有畫線提示,並且幅圖有選股位置提示.效果如下圖.

⑹ 求通達信中把MACD頂底背離信號疊加到分時主圖上的公式源碼

頂背離,你要確定一下是,dif的背離,還是,dea線的背離,還是macd柱子高低的背離.
提示方式是畫線提示還是文字提示還是圖標提示
例如下圖中的是劃線提示的

⑺ 求通達信K線和MACD背離時,MACD指標就變色或出現記號的碼原。。。。

{這都是答過的問題,網上搜搜};
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
底背:DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED,LINETHICK2;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
頂背:DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK2;

⑻ 哪位老師有通達信MACD柱體背離的指標公式分享一個,真心感謝

可以編寫macd柱體的頂底背離指標,你是判斷macd長短的背離還是判斷macd柱面積的背離,再有你所說的顏色變化,用什麼顏色怎麼變化沒明白什麼意思有圖嗎。

下圖是macd柱頂底背離畫線指標。

閱讀全文

與能在圖上顯示macd背離的源碼相關的資料

熱點內容
三洋空調壓縮機參數 瀏覽:196
加密貓背後的故事 瀏覽:247
陝西不聽命令 瀏覽:368
怎麼把皮皮蝦app表情弄到微信 瀏覽:291
安卓編譯springboot 瀏覽:396
手機壁紙文件夾背景 瀏覽:792
target目錄禁止編譯 瀏覽:804
php打開html頁面 瀏覽:616
python加密mp4 瀏覽:898
吃雞如何把安卓平板亮度變亮 瀏覽:5
python中concatenate 瀏覽:37
程序員銀行用的技術老舊 瀏覽:848
航天器控制演算法軟體 瀏覽:520
游戲不同的伺服器有什麼區別 瀏覽:73
jar線上編譯 瀏覽:117
程序員論壇代碼被懟 瀏覽:998
win7文件夾選項注冊表 瀏覽:787
中央編譯局常艷博士照片 瀏覽:308
濡沫江湖安卓怎麼下載 瀏覽:956
陝西省電信dns伺服器雲伺服器 瀏覽:828