老师您好,帮我将指标改成博易的 [博易POBO]
咨询内容:
NX:=BARSLAST(DATE<>REF(DATE,1))+1;
T:=BACKSET(ISLASTBAR,NX);
高:IF(T,REF(HHV(H,NX),NX),NULL),COLORGREEN;
低:IF(T,LLV(L,NX),NULL),COLORRED;
H191:IF(T,高-(高-低)*0.191,NULL),COLORMAGENTA,DOT;
H382:IF(T,高-(高-低)*0.382,NULL),COLORYELLOW,DOT;
H500:IF(T,高-(高-低)*0.5,NULL),COLORWHITE,LINETHICK3;
H618:IF(T,高-(高-低)*0.618,NULL),COLORLIGHTGREY,DOT;
H809:IF(T,高-(高-低)*0.809,NULL),COLORCYAN,DOT;
DRAWTEXT(ISLASTBAR,高,'高点'),COLORGREEN,ALIGN0;
DRAWTEXT(ISLASTBAR,H191, '压力'),COLORMAGENTA,ALIGN0;
DRAWTEXT(ISLASTBAR,H382, '目标'),COLORYELLOW,ALIGN0;
DRAWTEXT(ISLASTBAR,H500, '关键'),COLORWHITE,ALIGN0;
DRAWTEXT(ISLASTBAR,H618, '目标'),COLORLIGHTGREY,ALIGN0;
DRAWTEXT(ISLASTBAR,H809, '支撑'),COLORCYAN,ALIGN0;
DRAWTEXT(ISLASTBAR,低,'低点'),COLORRED,ALIGN0;
T:=BACKSET(ISLASTBAR,NX);
高:IF(T,REF(HHV(H,NX),NX),DRAWNULL),COLORGREEN;
低:IF(T,LLV(L,NX),DRAWNULL),COLORRED;
H191:IF(T,高-(高-低)*0.191,DRAWNULL),COLORMAGENTA,POINTDOT;
H382:IF(T,高-(高-低)*0.382,DRAWNULL),COLORYELLOW,POINTDOT;
H500:IF(T,高-(高-低)*0.5,DRAWNULL),COLORWHITE,LINETHICK3;
H618:IF(T,高-(高-低)*0.618,DRAWNULL),COLORC0C0C0,POINTDOT;
H809:IF(T,高-(高-低)*0.809,DRAWNULL),COLORCYAN,POINTDOT;
DRAWTEXT(ISLASTBAR,高,'高点'),COLORGREEN,ALIGN0;
DRAWTEXT(ISLASTBAR,H191, '压力'),COLORMAGENTA,ALIGN0;
DRAWTEXT(ISLASTBAR,H382, '目标'),COLORYELLOW,ALIGN0;
DRAWTEXT(ISLASTBAR,H500, '关键'),COLORWHITE,ALIGN0;
DRAWTEXT(ISLASTBAR,H618, '目标'),COLORC0C0C0,ALIGN0;
DRAWTEXT(ISLASTBAR,H809, '支撑'),COLORCYAN,ALIGN0;
DRAWTEXT(ISLASTBAR,低,'低点'),COLORRED,ALIGN0; 谢谢老师,可是怎么是这样的,压在高低点里,能不能改下面那张那样?
来源 程序化久久网
老师您好,帮我将指标改成博易的
老师您好,帮我将指标改成博易的,谢谢。NX:=BARSLAST(DATE<>REF(DATE,1))+1;
T:=BACKSET(ISLASTBAR,NX);
高:IF(T,REF(HHV(H,NX),NX),NULL),COLORGREEN;
低:IF(T,LLV(L,NX),NULL),COLORRED;
H191:IF(T,高-(高-低)*0.191,NULL),COLORMAGENTA,DOT;
H382:IF(T,高-(高-低)*0.382,NULL),COLORYELLOW,DOT;
H500:IF(T,高-(高-低)*0.5,NULL),COLORWHITE,LINETHICK3;
H618:IF(T,高-(高-低)*0.618,NULL),COLORLIGHTGREY,DOT;
H809:IF(T,高-(高-低)*0.809,NULL),COLORCYAN,DOT;
DRAWTEXT(ISLASTBAR,高,'高点'),COLORGREEN,ALIGN0;
DRAWTEXT(ISLASTBAR,H191, '压力'),COLORMAGENTA,ALIGN0;
DRAWTEXT(ISLASTBAR,H382, '目标'),COLORYELLOW,ALIGN0;
DRAWTEXT(ISLASTBAR,H500, '关键'),COLORWHITE,ALIGN0;
DRAWTEXT(ISLASTBAR,H618, '目标'),COLORLIGHTGREY,ALIGN0;
DRAWTEXT(ISLASTBAR,H809, '支撑'),COLORCYAN,ALIGN0;
DRAWTEXT(ISLASTBAR,低,'低点'),COLORRED,ALIGN0;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: NX:=BARSLAST(DATE<>REF(DATE,1))+1;T:=BACKSET(ISLASTBAR,NX);
高:IF(T,REF(HHV(H,NX),NX),DRAWNULL),COLORGREEN;
低:IF(T,LLV(L,NX),DRAWNULL),COLORRED;
H191:IF(T,高-(高-低)*0.191,DRAWNULL),COLORMAGENTA,POINTDOT;
H382:IF(T,高-(高-低)*0.382,DRAWNULL),COLORYELLOW,POINTDOT;
H500:IF(T,高-(高-低)*0.5,DRAWNULL),COLORWHITE,LINETHICK3;
H618:IF(T,高-(高-低)*0.618,DRAWNULL),COLORC0C0C0,POINTDOT;
H809:IF(T,高-(高-低)*0.809,DRAWNULL),COLORCYAN,POINTDOT;
DRAWTEXT(ISLASTBAR,高,'高点'),COLORGREEN,ALIGN0;
DRAWTEXT(ISLASTBAR,H191, '压力'),COLORMAGENTA,ALIGN0;
DRAWTEXT(ISLASTBAR,H382, '目标'),COLORYELLOW,ALIGN0;
DRAWTEXT(ISLASTBAR,H500, '关键'),COLORWHITE,ALIGN0;
DRAWTEXT(ISLASTBAR,H618, '目标'),COLORC0C0C0,ALIGN0;
DRAWTEXT(ISLASTBAR,H809, '支撑'),COLORCYAN,ALIGN0;
DRAWTEXT(ISLASTBAR,低,'低点'),COLORRED,ALIGN0; 谢谢老师,可是怎么是这样的,压在高低点里,能不能改下面那张那样?
来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容