❶ 哪位老師有通達信MACD柱體背離的指標公式分享一個,真心感謝
偷懶,前一位弄的公式,給更正一下,其他內容紋絲沒內動。
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
FF:=C=LLV(C,180);
GG:=DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
底背容離:(FF AND GG AND DEA> LLV(DEA,180))*DEA;
❷ 通達信MACD公式,請高手請把下面指標公式里的金叉死叉+個箭頭表示謝謝
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;
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.1,' 二次金叉'),COLORYELLOW;
DRAWICON(CROSS(DIFF,DEA),DEA*1.02,1);
DRAWICON(CROSS(DEA,DIFF),DIFF*0.98,2);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA) AND DIFF<0;
STICKLINE(底背離,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED,LINETHICK4;
DRAWTEXT(底背離,DIFF,' 底背離'),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;
❸ 求高手幫忙設:通達信macd 頂底背離+畫線公式,如圖,圖片來自同花順,萬分感激!
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
DU:=BARSLAST(CROSS(DIF,DEA));
DD:=BARSLAST(CROSS(DEA,DIF));
TJ1:=DEA<0ANDDU=0ANDREF(DEA,REF(DU,1))<DEAANDREF(C,REF(DU,1))>C;
STICKLINE(EVERY(UPNDAY(DU,1),DU),REF(DEA,DU),REF(DEA,DU),5,-1),COLORLIGRAY;
STICKLINE(TJ1,REF(DEA,REF(DU+1,1)),DEA,1,0),COLORLIGRAY;
DRAWTEXT(TJ1,REF(DEA,REF(DU,1)),'底背離'),COLORLIGRAY;
TJ2:=DEA>0ANDDD=0ANDREF(DEA,REF(DD,1))>DEAANDREF(C,REF(DD,1))<C;
STICKLINE(EVERY(UPNDAY(DD,1),DD),REF(DEA,DD),REF(DEA,DD),5,-1),COLORLIGRAY;
STICKLINE(TJ2,REF(DEA,REF(DD+1,1)),DEA,1,0),COLORLIGRAY;
DRAWTEXT(TJ2,REF(DEA,REF(DD,1)),'頂背離'),COLORLIGRAY;
❹ 通達信MACD底背離選股公式
股價創30日新低:l<=llv(l,30);
當日MACD(就是那個紅綠柱子)值大於昨日:"macd.macd」>ref("macd.macd",1);
當日DIFF(白線) 沒創新低:"macd.dif">=ref("macd.dif",1);
選股1:l<=LLV(l,30) AND "MACD.MACD">REF("MACD.MACD",1);
選股2:l<=LLV(l,30) AND "MACD.DIF">=REF("MACD.DIF",1);
選股3:l<=LLV(l,30) AND "MACD.MACD">REF("MACD.MACD",1) and
"MACD.DIF">=REF("MACD.DIF",1);
❺ 求通達信MACD連續1次或以上《頂底背離》後,金叉或死叉出買賣信號指標及選股公式
你要的公抄式沒辦法分辨!要自己分辨
MACD底背離
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
QM:=LLVBARS(MACD,QZQ+20);
MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);
XG1:=MACD<0 AND MACD>MQDZ
AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ<0;
XG:REF(XG1,1)=1 AND MACD>REF(MACD,1);
或者 {XG:REF(XG1,1)=1 AND MACD>REF(MACD,1)AND DIFF>REF(DIFF,10);}
❻ 求通達信中把MACD頂底背離信號疊加到分時主圖上的公式源碼
頂背離,你要確定一下是,dif的背離,還是,dea線的背離,還是macd柱子高低的背離.
提示方式是畫線提示還是文字提示還是圖標提示
例如下圖中的是劃線提示的
❼ 求通達信macd指標中包含:頂底背離、金叉死叉、macd上升紅色下降綠色帶箭頭,謝謝!
{通達信MACD頂底背離指標---供參考!}
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
STICKLINE(MACD>REF(MACD,1),0,MACD,1,0),COLOR0000FF;
STICKLINE(MACD<REF(MACD,1),0,MACD,1,0),COLOR00FF00;
DRAWICON(REF(MACD,2)>REF(MACD,1) AND MACD>REF(MACD,1),MACD-0.2,1);
DRAWICON(REF(MACD,2)<REF(MACD,1) AND MACD<REF(MACD,1),MACD+0.2,2);
低位金叉:=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,5) ;
DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;
死叉:=CROSS(DEA,DIFF);
DRAWICON(死叉,DIFF+0.2,6) ;
金叉:=CROSS(DIFF,DEA);
DRAWICON(金叉,DEA-0.2,17) ;
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;
DRAWTEXT(底背離,0.12,' 底背離'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=REF(CLOSE,A2+1) AND CROSS(DEA,DIFF);
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背離,0.25,'進場'),COLOR0000FF,LINETHICK2;