- 时间:2021-02-12 00:03 编辑:赵芮 来源:蚂蚁资源 阅读:149
- 扫一扫,手机访问
摘要:大家好,今天给大家介绍关于macd源码(增强版macd指标公式源码)的相关内容,详细讲解帮忙编辑下炒股用的MACD源码,如何编写通达信macd主图指标源码,一个 通达信 MACD副图指标公式;求高手以此编写一个等,希望可以帮助到您。
帮忙编辑下炒股用的MACD源码,以下MACD源代码。 DIF:EMA(关闭,9) - EMA(关闭,18); DEA:EMA(DIF,7),Linethick1; MACD:= 2 *(DIF-DEA);粘性(MACD> = 0,MACD,0,0,0),ColorF00FF0; Stickline(Macd0,0,Macd,0,0),Colorffff00;粘性(麦克风,dea,dea),colorwhite,linethick1;金FFORK:=十字(DIF,DEA)和DIF <0.3;钢筋(金叉,0,-0.38,3,0),Color0000f; Macd1:2 *(Dif-Dea),Linthick0;你不能试试。
如何编写通达信macd主图指标源码,DIF:EMA(关闭,12) - EMA(关闭,26); DEA:EMA(DIF,9); MACD :( DIF-DEA)* 2,COLORSTICK
一个 通达信 MACD副图指标公式;求高手以此编写一个,差异:=(EMA(关闭,12) - EMA(关闭,26)); DEA:= EMA(差异,9);十字(差异,DEA);直接复制在您的自建公式中。希望这可以帮助
责任编辑(
赵芮)
以上就是关于**macd源码,增强版macd指标公式源码**的全部内容,了解更多请关注蚂蚁资源网。
- 免注册用户
- 向通达信高手老师求教。一个MACD副图指标,希望老师帮忙,改为主图指标,两条曲线无变动、与K柱贴合。,你这个要求无法实现。K线值与MACD的值相差很多, 本身计算方式不一样,K线是价格的表现,MACD是计算价格多日的均线后,再次取多日均线表现。
- 2021-02-12 00:03:53
- 无敌
- {供参考}{冠军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
- 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