1樓:國元**重慶
頂底背離: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)"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)"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)"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
2樓:匿名使用者
設定一個短週期和一個長週期, 然後分別對**和你的指標進行高低值比較.
比如短期是兩週(10日), 長期是兩個月(40日), 那麼
hhv(close,10)=hhv(close,40)的同時, 你指標hhv10卻不是hhv40, 即是指標沒跟著**一起高, 就可能有頂背, 這樣選出來雖混雜了少許不太像的圖形, 但肯定沒有漏網, 而且初選後我們用肉眼篩這種背離實在很輕鬆.
求助高手編寫rsi指標底背離公式 20
3樓:匿名使用者
天數:=barslast(ref(cross(rsi.rsi1,ref(rsi.rsi1,1)),1));
aa:=cross(rsi.rsi1,ref(rsi.
rsi1,1)) and rsi.rsi1<30 and ref(rsi.rsi1,1)>ref(rsi.
rsi1,天數+2);
bb:=ref(c,1)
xg:aa and bb and 天數<10; 4樓:匿名使用者 不好意思,不再專業範圍內,無法回答. 請教macd頂底背離的指標公式 5樓:般若若愚 diff:=ema(close,12)-ema(close,27); dea:=ema(diff,9); a1:=barslast(ref(cross(diff,dea),1)); 底背離:ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea); 請高手編寫個通達信的簡單公式:macd紅綠柱子背離 6樓:匿名使用者 macd頂底背離(同時包含kdj背離,rsi背離) 公式如下: diff:ema(close,12) - ema(close,26); dea:ema(diff,9); macd:2*(diff-dea),colorstick; a1:=barslast(ref(cross(diff,dea),1)); b1:=ref(c,a1+1)>c and ref(diff,a1+1)c and ref("kdj.k"(9,3,3),a2+1)<"kdj. k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)); 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)); c1:=barslast(ref(cross(dea,diff),1)); d1:=ref(c,c1+1)diff and cross(dea,diff); c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1)); d2:=ref(c,c2+1)"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)); c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1)); d3:=ref(c,c3+1)"rsi.rsi1"(6,12,24) and cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)); macd底背:if(b1>0,-0.1,0),colorred,pointdot; kdj底背:if(b2>0,-0.1,0),colorff00ff,pointdot; rsi底背:if(b3>0,-0.1,0),coloryellow,pointdot; macd頂背:if(d1>0,0.1,0),color00ff00,pointdot; kdj頂背:if(d2>0,0.1,0),colorffcc66,pointdot; rsi頂背:if(d3>0,0.1,0),colorwhite,pointdot; stickline(b1>0,-0.1,0,2,0),colorred; stickline(b2>0,-0.1,0,2,0),colorff00ff; stickline(b3>0,-0.1,0,2,0),coloryellow; stickline(d1>0,0.1,0,2,0),color00ff00; stickline(d2>0,0.1,0,2,0),colorffcc66; stickline(d3>0,0.1,0,2,0),colorwhite; 求助老師:如何編寫macd底背離的選股公式 7樓:般若若愚 diff:ema(c,12)-ema(c,26); dea:ema(diff,9); macd:2*(diff-dea), colorstick,linethick2; a1:=barslast(ref(cross(diff,dea),1)); 底背離:=ref(c,a1+1)>c and diff>ref(diff,a1+1) and cross(diff,dea); stickline(底背離,0,0.03,2.6,0),color00ff00; 底背:drawline(a1=0,dea,底背離,dea,0),colorff00ff,linethick2; drawtext(底背離,0.12,' 底背離'),colorff00ff; a2:=barslast(ref(cross(dea,diff),1)); 頂背離:=ref(c,a2+1)diff and cross(dea,diff); 頂背:drawline(a2=0,dea,頂背離,dea,0),colorgreen,linethick2; *************************=== diff:=ema(c,12)-ema(c,26); dea:=ema(diff,9); macd:=2*(diff-dea); a1:=barslast(ref(cross(diff,dea),1)); 底背離:ref(c,a1+1)>c and diff>ref(diff,a1+1) and cross(diff,dea); 通常,大多數分析軟體的h1 60分鐘 macd指標的引數設定為12,26,9,即快速ema引數設為12 慢速emv指標設為26 dif引數設為9。從實際操作角度來看,這組引數構成的macd指標不夠好,它對於 走勢的波動帶有明顯的滯後性,既無法讓使用者獲得第一時間的操作機會,也難以對今後的 走勢提供預... macd是一個趨勢指標,白線就是dif線,黃線就是dea 判斷原則 平滑異同移動平 macd 是通過對指數型平滑移動平 ema 的乖離曲線 dif 以及dif值的指數型平滑移動平 dea 這兩條曲線走向之異同 乖離的描 繪和計算,進而研判市勢的一種技術方法。1 0軸以下 dif若上穿 dea為 訊號... macd稱為指數平滑移動平 是從雙指數移動平 發展而來的,由快的指數移動平 ema 減去慢的指數移動平 macd的意義和雙移動平 基本相同,但閱讀起來更方便。當macd從負數轉向正數,是買的訊號。當macd從正數轉向負數,是賣的訊號。當macd以大角度變化,表示快的移動平 和慢的移動平 的差距非常迅...如何設定macd指標引數設定,MACD指標引數如何設定?
MACD指標是管什麼的,MACD指標是什麼意思,其中的黃線和白線各代表什麼意思
MACD指標在現貨市場中如何使用