1樓:閃閃的快刀
dif:=ema(close,12)-ema(close,26);
dea:=ema(dif,9);
macd:=(dif-dea)*2;
macd>0 and cross(dif,0);
2樓:般若若愚
ok:cross("macd.dif","macd.dea") and cross("macd.dif",0);
3樓:匿名使用者
macd從綠柱變紅柱,黃白線從0軸下方上穿0軸上方,出紅色面積很大----------這3個條件是不可能同時出現的
求高手編個macd黃白線在零軸之上且是綠柱 選股公式通達信 謝謝
4樓:準星略高
min(macd.dif,macd.dea)>0 and macd.macd<0;
請高手編寫個通達信的簡單公式:macd紅綠柱子背離
5樓:匿名使用者
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連續n根綠柱後,第一次出現綠柱縮短的選股公式,萬分感謝
6樓:般若若愚
macd:="macd.macd";
barslast(macd
7樓:111做個好人 不知道你弄這個幹什麼用,選股用的話,不建議 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 ... dif ema close,12 ema close,26 dea ema dif,9 macd dif dea 2 every macd ref macd,1 持續週期 持續週期在引數欄設定,最小為1,最大為100,預設為5,可以自己調整 請求高手編寫通達信macd綠柱變短或持續變短 紅柱變長或持... 1 rsv close llv low,9 hhv high,9 llv low,9 100 k sma rsv,3,1 d sma k,3,1 j 3 k 2 d varb close ma close,6 ma close,6 100 varc close ma close,12 ma clos...請高手編寫個通達信的簡單公式MACD紅綠柱子背離
請高手編寫通達信macd綠柱變短或持續變短 紅柱變長或持續變
求高手幫我把下面通達信公式中的內容改為選股,(太長了分二段公式第二段)