老师请把通达信副图macd修改成文华的 [文华财经]
-
咨询内容:
DIFF :(EMA(CLOSE,12)-EMA(CLOSE,26))*100/EMA(CLOSE,26), COLORYELLOW;
DEA : EMA(DIFF,9),COLORRED,LINETHICK2;
DIF:IF(DIFF<REF(DIFF,1),DIFF,DRAWNULL), COLORGRAY;
ADEA:IF(DEA<REF(DEA,1),DEA,DRAWNULL), COLORCYAN,LINETHICK2;
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,0,0.30,3,0),COLORMAGENTA;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.80,3,0),COLORYELLOW;
DRAWICON(二次金叉,DEA*0.9,1) ;
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.40,3,0), COLORBROWN;DRAWTEXT(二次金叉,0.1,'nbsp;二次金叉',COLORYELLOW;
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORWHITE,LINETHICK1;
DRAWTEXT(底背离,DIFF,'nbsp;底背离',COLORWHITE;
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),COLORLIGRAY,LINETHICK1;来源:程序化99
-
文华技术人员:
参考:
DIFF :(EMA(CLOSE,12)-EMA(CLOSE,26))*100/EMA(CLOSE,26), COLORYELLOW; DEA : EMA(DIFF,9),COLORRED,LINETHICK2; DIF:IF(DIFF<REF(DIFF,1),DIFF,NULL), COLORGRAY; ADEA:IF(DEA<REF(DEA,1),DEA,NULL), COLORCYAN,LINETHICK2; MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1; STICKLINE1(低位金叉,0,0.30,3,0),COLORMAGENTA; JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); 二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; STICKLINE1(二次金叉,0,0.80,3,0),COLORYELLOW; DRAWICON(二次金叉,DEA*0.9,1) ; 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; STICKLINE1(底背离,0,0.40,3,0),RGB(128,64,64); DRAWTEXT(二次金叉,0.1,' 二次金叉'),COLORYELLOW; DRAWLINE3(底背离,DEA,0,底背离,REF(DEA,BARSLAST(A1=0)+1),BARSLAST(A1=0)+1,0),COLORWHITE,LINETHICK1; DRAWTEXT(底背离,DIFF,' 底背离'),COLORWHITE; A2:=BARSLAST(REF(CROSS(DEA,DIFF),1)); 顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); DRAWLINE3(顶背离,DEA,0,顶背离,REF(DEA,BARSLAST(A2=0)+1),BARSLAST(A2=0)+1,0),COLORLIGHTGREY,LINETHICK1;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 或微信:cxhjy888 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容