老师您好,谢谢您,请您帮我改一下副图指标,谢谢 [博易POBO]
咨询内容:
LONG:=26;
M:=9;
DIFF:=(EMA(CLOSE,SHORT) - EMA(CLOSE,LONG));
DEA:=EMA(DIFF,M),POINTDOT;
MACD2:=(2 * (DIFF - DEA));
STICKLINE((MACD2>=0),0,MACD2,2.8,-1),COLOR0000FF;
STICKLINE(((MACD2>=0) AND (MACD2 < REF(MACD2,1))),0,MACD2,2,0),COLOR0090FF;
STICKLINE((MACD2<0),0,MACD2,2,0),COLORCYAN;
STICKLINE(((MACD2<0) AND (MACD2 > REF(MACD2,1))),0,MACD2,2.8,-1),COLORCYAN;
STICKLINE(DIFF<0 AND MACD2<0,0,MACD2,2.8,-1),COLORGREEN;
STICKLINE(DIFF<0 AND MACD2>0,0,MACD2,2.8,-1),COLORCYAN;
STICKLINE(((DIFF<0) AND (MACD2 < REF(MACD2,1))),0,MACD2,2,0),COLORGREEN;
DRAWICON(((((HHV(MACD2,4) < 0) AND (MACD2 > REF(MACD2,1))) AND (REF(MACD2,1) < REF(MACD2,2))) AND (REF(MACD2,2) < REF(MACD2,3))) AND DIFF>0 AND DIFF>REF(DIFF,1),MACD2,30),NODRAW;
DIF:DIFF,LINETHICK2,COLORWHITE;
DEF:DEA,LINETHICK1,COLORYELLOW,POINTDOT;
IF(DIFF>=REF(DIFF,1),DIFF,NULL),COLORRED,LINETHICK4;
翻红:=MACD2>REF(MACD2,1) AND REF(MACD2,1)<REF(MACD2,2) AND REF(MACD2,2)<REF(MACD2,3) AND DEA>0 AND DIFF>0 AND DIFF>REF(DIFF,1) AND MACD2>0.01;
DRAWICON(翻红 AND DEA>0,-0.01,29),NODRAW;
DRAWICON(CROSS(DIFF,0),-0.01,38);
STICKLINE(CROSS(DIFF,0),0,MACD2,3,0),COLORMAGENTA;
STICKLINE(CROSS(0,DIFF),0,MACD2,3,0),COLORWHITE;
DRAWICON(CROSS(0,DIFF),0,39);
DRAWICON(CROSS(DIFF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIFF) AND DIFF>0,DEA,2);
IF(DEF<=0,DEF,NULL),COLORBLUE,LINETHICK1,NODRAW;
{柱变与交叉临界}
开盘价格:=O,COLORYELLOW,NODRAW;
收盘价格:=C,COLORYELLOW,NODRAW;
最高价格:=H,COLORYELLOW,NODRAW;
最低价格:=L,COLORYELLOW,NODRAW;
振幅:=(H-L)/REF(C,1)*100,COLORYELLOW,NODRAW;
柱变临界: (EMA(CLOSE,12)*1134-EMA(CLOSE,26)*910-DEA*702)/224,COLORBLUE,NODRAW;
交叉临界:351/28*(EMA(DIFF,9)-11/13*EMA(C,12)+25/27*EMA(C,26)),COLORBLUE,NODRAW;
ES:=REF(EMA(C,26),1);
EP:=REF(EMA(C,12),1);
DI:=REF(DIFF,1);
DIF拐点价:((12-1)*EP/(12+1)-(26-1)*ES/(26+1)-DI)*(26+1)*(12+1)/(2*(12+1)-2*(26+1)),COLORYELLOW,NODRAW;
CAPITAL:=GETPRICE1('流通股本');
换手率:VOL/CAPITAL*100,COLORWHITE,NODRAW;
十日换手:SUM(V/CAPITAL*100,10),COLOR0099FF,NODRAW;
获利盘:WINNER(C)*100 ,COLORRED,NODRAW;
当日获利套牢:获利盘-REF(获利盘,1),NODRAW;
DIF1:REF(HHV(DEA,BARSLAST(CROSS(DEA,DIF))+1),1),COLORGREEN,LINETHICK2;
DIF2:REF(LLV(DEA,BARSLAST(CROSS(DIF,DEA))+1),1),COLORMAGENTA,LINETHICK2;
交叉价格:=351/28*(EMA(DIFF,9)-11/13*EMA(C,12)+25/27*EMA(C,26)),COLORBLUE,NODRAW;
老师您好,谢谢您,请您帮我改一下副图指标,谢谢
SHORT:=12;LONG:=26;
M:=9;
DIFF:=(EMA(CLOSE,SHORT) - EMA(CLOSE,LONG));
DEA:=EMA(DIFF,M),POINTDOT;
MACD2:=(2 * (DIFF - DEA));
STICKLINE((MACD2>=0),0,MACD2,2.8,-1),COLOR0000FF;
STICKLINE(((MACD2>=0) AND (MACD2 < REF(MACD2,1))),0,MACD2,2,0),COLOR0090FF;
STICKLINE((MACD2<0),0,MACD2,2,0),COLORCYAN;
STICKLINE(((MACD2<0) AND (MACD2 > REF(MACD2,1))),0,MACD2,2.8,-1),COLORCYAN;
STICKLINE(DIFF<0 AND MACD2<0,0,MACD2,2.8,-1),COLORGREEN;
STICKLINE(DIFF<0 AND MACD2>0,0,MACD2,2.8,-1),COLORCYAN;
STICKLINE(((DIFF<0) AND (MACD2 < REF(MACD2,1))),0,MACD2,2,0),COLORGREEN;
DRAWICON(((((HHV(MACD2,4) < 0) AND (MACD2 > REF(MACD2,1))) AND (REF(MACD2,1) < REF(MACD2,2))) AND (REF(MACD2,2) < REF(MACD2,3))) AND DIFF>0 AND DIFF>REF(DIFF,1),MACD2,30),NODRAW;
DIF:DIFF,LINETHICK2,COLORWHITE;
DEF:DEA,LINETHICK1,COLORYELLOW,POINTDOT;
IF(DIFF>=REF(DIFF,1),DIFF,NULL),COLORRED,LINETHICK4;
翻红:=MACD2>REF(MACD2,1) AND REF(MACD2,1)<REF(MACD2,2) AND REF(MACD2,2)<REF(MACD2,3) AND DEA>0 AND DIFF>0 AND DIFF>REF(DIFF,1) AND MACD2>0.01;
DRAWICON(翻红 AND DEA>0,-0.01,29),NODRAW;
DRAWICON(CROSS(DIFF,0),-0.01,38);
STICKLINE(CROSS(DIFF,0),0,MACD2,3,0),COLORMAGENTA;
STICKLINE(CROSS(0,DIFF),0,MACD2,3,0),COLORWHITE;
DRAWICON(CROSS(0,DIFF),0,39);
DRAWICON(CROSS(DIFF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIFF) AND DIFF>0,DEA,2);
IF(DEF<=0,DEF,NULL),COLORBLUE,LINETHICK1,NODRAW;
{柱变与交叉临界}
开盘价格:=O,COLORYELLOW,NODRAW;
收盘价格:=C,COLORYELLOW,NODRAW;
最高价格:=H,COLORYELLOW,NODRAW;
最低价格:=L,COLORYELLOW,NODRAW;
振幅:=(H-L)/REF(C,1)*100,COLORYELLOW,NODRAW;
柱变临界: (EMA(CLOSE,12)*1134-EMA(CLOSE,26)*910-DEA*702)/224,COLORBLUE,NODRAW;
交叉临界:351/28*(EMA(DIFF,9)-11/13*EMA(C,12)+25/27*EMA(C,26)),COLORBLUE,NODRAW;
ES:=REF(EMA(C,26),1);
EP:=REF(EMA(C,12),1);
DI:=REF(DIFF,1);
DIF拐点价:((12-1)*EP/(12+1)-(26-1)*ES/(26+1)-DI)*(26+1)*(12+1)/(2*(12+1)-2*(26+1)),COLORYELLOW,NODRAW;
CAPITAL:=GETPRICE1('流通股本');
换手率:VOL/CAPITAL*100,COLORWHITE,NODRAW;
十日换手:SUM(V/CAPITAL*100,10),COLOR0099FF,NODRAW;
获利盘:WINNER(C)*100 ,COLORRED,NODRAW;
当日获利套牢:获利盘-REF(获利盘,1),NODRAW;
DIF1:REF(HHV(DEA,BARSLAST(CROSS(DEA,DIF))+1),1),COLORGREEN,LINETHICK2;
DIF2:REF(LLV(DEA,BARSLAST(CROSS(DIF,DEA))+1),1),COLORMAGENTA,LINETHICK2;
交叉价格:=351/28*(EMA(DIFF,9)-11/13*EMA(C,12)+25/27*EMA(C,26)),COLORBLUE,NODRAW;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 谢谢老师!老师您辛苦了!非常感谢!祝老师天天快乐! 您好,老版本可能不支持NODRAW函数,请问您使用的是什么版本?在系统菜单帮助里的关于可以看到。 来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容