请老师改成博弈指标 [博易POBO]
咨询内容:
JT:=BARSLAST(CROSS(M0,0));
ST:=BARSLAST(CROSS(0,M0));
Q1:=BACKSET(ST=0,2);
QT0:=BARSLAST(CROSS(Q1=1,0.5));
QQT:=BACKSET(QT0=0,JT+1);
QT2:=BARSLAST(CROSS(Q1=1,0.5));
HH00:=HHV(H,JT+1);
LL00:=LLV(L,JT+1);
XJH:=REFX(HH00,BARSNEXT(QT2=0));
XJL:=REFX(LL00,BARSNEXT(QT2=0));
SQ1:=BACKSET(JT=0,2);
SQT:=BARSLAST(CROSS(SQ1=1,0.5));
SQQT:=BACKSET(SQT=0,ST+1);
SQT2:=BARSLAST(CROSS(SQ1=1,0.5));
SHH:=HHV(H,ST+1);
SLL:=LLV(L,ST+1);
XSH:=REFX(SHH,BARSNEXT(SQT2=0));
XSL:=REFX(SLL,BARSNEXT(SQT2=0));
TJ1:=CONST(M0)>0 AND CURRBARSCOUNT=CONST(JT)+1;
TJ2:=CONST(M0)<0 AND CURRBARSCOUNT=CONST(ST)+1;
STICKLINE(QQT=1 AND M0>0,XJH,XJH,4,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(QQT=1 AND M0>0,XJL,XJL,4,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(JT=0,XJH,XJL,0,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(QT2=0 AND ST>0,HH00,LL00,0,-199),COLORMAGENTA,LINETHICK5;
DRAWLINE(TJ1,CONST(HH00),ISLASTBAR AND CONST(M0)>0,HH00,0),COLORMAGENTA,LINETHICK5;
DRAWLINE(TJ1,CONST(LL00),ISLASTBAR AND CONST(M0)>0,LL00,0),COLORMAGENTA,LINETHICK5;
STICKLINE(CONST(M0)>0 AND CURRBARSCOUNT=CONST(JT)+1,CONST(HH00),CONST(LL00),0,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(CONST(M0)>0 AND ISLASTBAR AND CONST(ST)>0,CONST(HH00),CONST(LL00),0,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(SQQT=1 AND M0<0,XSH,XSH,4,-199),COLORGREEN,LINETHICK5;
STICKLINE(SQQT=1 AND M0<0,XSL,XSL,4,-199),COLORGREEN,LINETHICK5;
STICKLINE(ST=0,XSH,XSL,0,-199),COLORGREEN,LINETHICK5;
STICKLINE(SQT2=0,SHH,SLL,0,-199),COLORGREEN,LINETHICK5;
DRAWLINE(TJ2,CONST(SHH),ISLASTBAR AND CONST(M0)<0,SHH,0),COLORGREEN,LINETHICK5;
DRAWLINE(TJ2,CONST(SLL),ISLASTBAR AND CONST(M0)<0,SLL,0),COLORGREEN,LINETHICK5;
STICKLINE(CONST(M0)<0 AND CURRBARSCOUNT=CONST(ST)+1,CONST(SHH),CONST(SLL),0,-199),COLORGREEN,LINETHICK5;
STICKLINE(CONST(M0)<0 AND ISLASTBAR AND CONST(JT)>0,CONST(SHH),CONST(SLL),0,-199),COLORGREEN,LINETHICK5;
请老师改成博弈指标
M0:=MACD.MACD;JT:=BARSLAST(CROSS(M0,0));
ST:=BARSLAST(CROSS(0,M0));
Q1:=BACKSET(ST=0,2);
QT0:=BARSLAST(CROSS(Q1=1,0.5));
QQT:=BACKSET(QT0=0,JT+1);
QT2:=BARSLAST(CROSS(Q1=1,0.5));
HH00:=HHV(H,JT+1);
LL00:=LLV(L,JT+1);
XJH:=REFX(HH00,BARSNEXT(QT2=0));
XJL:=REFX(LL00,BARSNEXT(QT2=0));
SQ1:=BACKSET(JT=0,2);
SQT:=BARSLAST(CROSS(SQ1=1,0.5));
SQQT:=BACKSET(SQT=0,ST+1);
SQT2:=BARSLAST(CROSS(SQ1=1,0.5));
SHH:=HHV(H,ST+1);
SLL:=LLV(L,ST+1);
XSH:=REFX(SHH,BARSNEXT(SQT2=0));
XSL:=REFX(SLL,BARSNEXT(SQT2=0));
TJ1:=CONST(M0)>0 AND CURRBARSCOUNT=CONST(JT)+1;
TJ2:=CONST(M0)<0 AND CURRBARSCOUNT=CONST(ST)+1;
STICKLINE(QQT=1 AND M0>0,XJH,XJH,4,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(QQT=1 AND M0>0,XJL,XJL,4,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(JT=0,XJH,XJL,0,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(QT2=0 AND ST>0,HH00,LL00,0,-199),COLORMAGENTA,LINETHICK5;
DRAWLINE(TJ1,CONST(HH00),ISLASTBAR AND CONST(M0)>0,HH00,0),COLORMAGENTA,LINETHICK5;
DRAWLINE(TJ1,CONST(LL00),ISLASTBAR AND CONST(M0)>0,LL00,0),COLORMAGENTA,LINETHICK5;
STICKLINE(CONST(M0)>0 AND CURRBARSCOUNT=CONST(JT)+1,CONST(HH00),CONST(LL00),0,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(CONST(M0)>0 AND ISLASTBAR AND CONST(ST)>0,CONST(HH00),CONST(LL00),0,-199),COLORMAGENTA,LINETHICK5;
STICKLINE(SQQT=1 AND M0<0,XSH,XSH,4,-199),COLORGREEN,LINETHICK5;
STICKLINE(SQQT=1 AND M0<0,XSL,XSL,4,-199),COLORGREEN,LINETHICK5;
STICKLINE(ST=0,XSH,XSL,0,-199),COLORGREEN,LINETHICK5;
STICKLINE(SQT2=0,SHH,SLL,0,-199),COLORGREEN,LINETHICK5;
DRAWLINE(TJ2,CONST(SHH),ISLASTBAR AND CONST(M0)<0,SHH,0),COLORGREEN,LINETHICK5;
DRAWLINE(TJ2,CONST(SLL),ISLASTBAR AND CONST(M0)<0,SLL,0),COLORGREEN,LINETHICK5;
STICKLINE(CONST(M0)<0 AND CURRBARSCOUNT=CONST(ST)+1,CONST(SHH),CONST(SLL),0,-199),COLORGREEN,LINETHICK5;
STICKLINE(CONST(M0)<0 AND ISLASTBAR AND CONST(JT)>0,CONST(SHH),CONST(SLL),0,-199),COLORGREEN,LINETHICK5;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 您好,这个公式不能修改,很多函数不匹配 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容