感恩修改指标 [博易POBO]
咨询内容:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);
前高:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORWHITE;
VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);
VA4:=CROSS(BACKSET(CROSS(MACD,0) OR (ISLASTBAR AND MACD<0),REF(VA3,1)+2),0.5);
前低:=DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1),COLORYELLOW;
X:IF(COUNT(MACD>0,BARSLAST(VA2))=BARSLAST(VA2),DRAWLINE(VA2,H,REF(VA2,1),REF(H,1),1),
DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(MACD>0 AND C>X AND O>X,C,O,1,0),COLORRED;
STICKLINE(MACD>0 AND C>X AND O
STICKLINE(MACD>0 AND MACD>前高,C,O,1,0),COLORYELLOW;
STICKLINE(REFX(VA2,1) OR REFX(VA4,1),C,O,1,0),COLORGREEN;
JC:=CROSS(DIF,DEA);
JTS:=BARSLAST(DIF
SC:=CROSS(DEA,DIF);
STS:=BARSLAST(DIF>DEA);
价值低点:IF(JTS>0,DRAWLINE(JC,L,REF(JC,1),REF(L,1),1),DRAWNULL),COLORMAGENTA,LINETHICK2;
价值高点:IF(STS>0,DRAWLINE(SC,H,REF(SC,1),REF(H,1),1),DRAWNULL),COLORYELLOW,LINETHICK2;
JGGD:=DRAWLINE(SC,H,REF(SC,1),REF(H,1),1);
WW:=BARSLAST(VA4)<=REF(IF(VA4,BARSNEXT(JC),DRAWNULL),BARSLAST(VA4));
指标低点:IF(WW,DRAWLINE(VA4,L,REF(VA4,1),REF(L,1),1),DRAWNULL),COLORWHITE,LINETHICK2;
白线:=DRAWLINE(VA4,L,REF(VA4,1),REF(L,1),1);
STICKLINE(MAX(C,O)<指标低点,C,O,1,0),COLORWHITE;
STICKLINE(MAX(C,O)>指标低点 AND MIN(C,O)<指标低点,指标低点,MIN(C,O),1,0),COLORWHITE;
STICKLINE(价值低点<白线 AND MAX(C,O)>价值低点 AND MIN(C,O)<价值低点,价值低点,
MIN(C,O),1,0),COLORMAGENTA;
STICKLINE(价值低点<白线 AND MAX(C,O)<价值低点,C,O,1,0),COLORMAGENTA;
DRAWTEXT(价值低点<白线 AND O<价值低点 AND C>价值低点 AND MACD>REF(MACD,1) AND
REF(C,1)<价值低点 AND JTS>1,L*0.99,'挖坑竣事、还需确认'),COLORYELLOW;
DRAWTEXT(JC AND 价值低点>JGGD,L*0.99,'小心筑顶、红柱掩护');
DRAWTEXT(NOT(WW) AND C>价值高点 AND O<价值高点,L*0.99,'简朴骗术、时间调和');
DRAWTEXT(WW AND C>价值高点 AND O<价值高点,L*0.99,'再涨一段、留意真假'),COLORYELLOW;
感恩修改指标
老师您好!下面指标我修改后检测通过,但会压缩K线图。感恩您重新帮忙修改一下。DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);
前高:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORWHITE;
VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);
VA4:=CROSS(BACKSET(CROSS(MACD,0) OR (ISLASTBAR AND MACD<0),REF(VA3,1)+2),0.5);
前低:=DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1),COLORYELLOW;
X:IF(COUNT(MACD>0,BARSLAST(VA2))=BARSLAST(VA2),DRAWLINE(VA2,H,REF(VA2,1),REF(H,1),1),
DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(MACD>0 AND C>X AND O>X,C,O,1,0),COLORRED;
STICKLINE(MACD>0 AND C>X AND O
STICKLINE(MACD>0 AND MACD>前高,C,O,1,0),COLORYELLOW;
STICKLINE(REFX(VA2,1) OR REFX(VA4,1),C,O,1,0),COLORGREEN;
JC:=CROSS(DIF,DEA);
JTS:=BARSLAST(DIF
SC:=CROSS(DEA,DIF);
STS:=BARSLAST(DIF>DEA);
价值低点:IF(JTS>0,DRAWLINE(JC,L,REF(JC,1),REF(L,1),1),DRAWNULL),COLORMAGENTA,LINETHICK2;
价值高点:IF(STS>0,DRAWLINE(SC,H,REF(SC,1),REF(H,1),1),DRAWNULL),COLORYELLOW,LINETHICK2;
JGGD:=DRAWLINE(SC,H,REF(SC,1),REF(H,1),1);
WW:=BARSLAST(VA4)<=REF(IF(VA4,BARSNEXT(JC),DRAWNULL),BARSLAST(VA4));
指标低点:IF(WW,DRAWLINE(VA4,L,REF(VA4,1),REF(L,1),1),DRAWNULL),COLORWHITE,LINETHICK2;
白线:=DRAWLINE(VA4,L,REF(VA4,1),REF(L,1),1);
STICKLINE(MAX(C,O)<指标低点,C,O,1,0),COLORWHITE;
STICKLINE(MAX(C,O)>指标低点 AND MIN(C,O)<指标低点,指标低点,MIN(C,O),1,0),COLORWHITE;
STICKLINE(价值低点<白线 AND MAX(C,O)>价值低点 AND MIN(C,O)<价值低点,价值低点,
MIN(C,O),1,0),COLORMAGENTA;
STICKLINE(价值低点<白线 AND MAX(C,O)<价值低点,C,O,1,0),COLORMAGENTA;
DRAWTEXT(价值低点<白线 AND O<价值低点 AND C>价值低点 AND MACD>REF(MACD,1) AND
REF(C,1)<价值低点 AND JTS>1,L*0.99,'挖坑竣事、还需确认'),COLORYELLOW;
DRAWTEXT(JC AND 价值低点>JGGD,L*0.99,'小心筑顶、红柱掩护');
DRAWTEXT(NOT(WW) AND C>价值高点 AND O<价值高点,L*0.99,'简朴骗术、时间调和');
DRAWTEXT(WW AND C>价值高点 AND O<价值高点,L*0.99,'再涨一段、留意真假'),COLORYELLOW;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 您好,目前函数系统不支持画线赋值。 明白。谢谢您! 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容