可按Ctrl+D收藏 蚂蚁资源网

蚂蚁资源网

macd源码(增强版macd指标公式源码)

  • 全部评论(3)
  • rushou
  • 通达信的MA4:MA(C,4); MA10:MA(C,10); MA20:MA(C,20); MA62:MA(C,62); A10:=ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*3.1416*MA(C,10); 小金角:=REF(CROSS(MA(C,10),MA(C,20)),1) AND A10>10.0; DRAWTEXT(小金角,L-0.20,'小金角'); B20:=ATAN((MA(C,20)/REF(MA(C,20),1)-1)*100)*3.1416*MA(C,20); 大金角:=REF(CROSS(MA(C,20),MA(C,62)),1) AND B20>10; DRAWTEXT(大金角,L-0.20,'大金角'); XJB1:=BARSLAST(小金角); XJB2:=XJB1 AND CROSS(MA(C,10),C) AND C0 AND V>MA(V,5); V2:=DEA-0.07; MACD骑墙:=V1 AND V2; DRAWTEXT(MACD骑墙,L-0.20,'MACD骑墙'); KZJY:=DIFF>0 AND DEA>0; 空中加油:=KZJY AND ABS(DIFF-DEA)/CREF(MA(C,20),1) AND V>MA(V,5); DRAWTEXT(海豚张嘴,L-0.20,'海豚张嘴'); 恭喜发财!
  • 2021-02-24 11:25:04
  • 无敌
  • {供参考}{冠军MACD+顶底背离画线}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD2:=2*(DIFF-DEA);DU0:=CROSS(DIFF,0);UD0:=CROSS(0,DIFF);TDU0:=BARSLAST(DU0);TUD0:=BARSLAST(UD0);DU3:=REF(DU0,1);UD3:=REF(UD0,1);TDU3:=BARSLAST(DU3);TUD3:=BARSLAST(UD3);UDGLINE:=IF(TDU3UDGLINE AND TDU0=REF(UDGLINE,1) AND CLOSE=0 AND MACD2REF(MACD2,1),0,MACD2,1,1),COLORFFFF00;STICKLINE(CLOSE>0,0,0,1,0),COLOR808080;DEFUT:=BARSLAST(CROSS(MACD2,0));DEFDT:=BARSLAST(CROSS(0,MACD2));DEFUL:=IF(MACD2>=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1));DEFDL:=IF(MACD20 AND MACD2REF(MACD2,2) AND REF(MACD2,2)>REF(MACD2,3),MACD2+0.38,9);DRAWICON(HHV(MACD2,4)REF(MACD2,1) AND REF(MACD2,1)BARSLAST(JUD1)) AND MACD2>=0 AND REF(MACD2,1)DEFU2L,MACD2+0.50,5);DRAWICON((JDU1 OR BARSLAST(JDU1)REF(DEFD2L,1) AND MACD2REF(MACD2,1) AND REF(MACD2,1)1.06,2.5,0),COLORLIBLUE;STICKLINE(价因子,0,1,1,1),COLORYELLOW;量变线:=VOL/MA(VOL,5)COLORWHITE,LINETHICK2;量因子:=IF(VOL/MA(VOL,5)>2,2.5,0);STICKLINE(量因子,0,1,1,1),COLORYELLOW;DRAWICON(CLOSE/OPEN>1.06,1,24);DRAWICON(VOL/MA(VOL,5)>2,0.8,25);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)DIFF AND CROSS(DEA,DIFF);顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4; DRAWICON(CROSS(DIFF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);
  • 2021-02-12 00:03:53
  • 免注册用户
  • 向通达信高手老师求教。一个MACD副图指标,希望老师帮忙,改为主图指标,两条曲线无变动、与K柱贴合。,你这个要求无法实现。K线值与MACD的值相差很多, 本身计算方式不一样,K线是价格的表现,MACD是计算价格多日的均线后,再次取多日均线表现。
  • 2021-02-12 00:03:53
  • 商品推荐