您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

修改指标 [博易POBO]

咨询内容:

修改指标

本帖最后由 zp100896 于 2015-3-1 15:08 编辑

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,10);
MA(C,0),COLORWHITE;
MA(C,0),COLORYELLOW;
{STICKLINE(DIFF>DEA,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(DIFF>DEA,CLOSE,OPEN,2,2),COLORRED;
STICKLINE(DIFF<=DEA,LOW,HIGH,0.1,1),COLORGREEN;
STICKLINE(DIFF<=DEA,CLOSE,OPEN,2,2),COLORGREEN;}
STICKLINE(DIFF>=DEA,LOW,HIGH,0,1),COLORRED;
STICKLINE(DIFF>=DEA,CLOSE,OPEN,3.2,2),COLORRED;
STICKLINE(DIFF STICKLINE(DIFF STICKLINE(CROSS(DEA,DIFF),OPEN,CLOSE,3.2,0),COLORGREEN;
STICKLINE(CROSS(DIFF,DEA),OPEN,CLOSE,3.2,0),COLORRED;
STICKLINE((CLOSE>OPEN) AND (DIFF STICKLINE((CLOSE>OPEN) AND (DIFF>=DEA),CLOSE,OPEN,3.2,2)COLORRED;
STICKLINE((CLOSE STICKLINE((CLOSE=DEA),CLOSE,OPEN,3.2,0)COLORRED;
DRAWTEXT(CROSS(DIFF,DEA),LOW-0.2,'买'),COLORRED;
DRAWTEXT(CROSS(DEA,DIFF),HIGH+0.2,'卖'),COLORGREEN;
QA:=REF(H,10)=HHV(H,2*10+1);
QB:=BACKSET(QA,10+1);
QC:=FILTER(QB,10) AND H=HHV(H,10+1);
QD:=BARSLAST(QC);
QE:=IF(QC,CURRBARSCOUNT,0);
QF:=IF(QD,REF(QE,QD),QE);
QG:=CONST(QF);
QH:=REF(QF,QD+1);
QW:=CONST(QH);
DRAWLINE(CURRBARSCOUNT=QW,H,CURRBARSCOUNT=QG,H,1),COLORGREEN;
DRAWLINE(CURRBARSCOUNT=QW,H,ISLASTBAR,REF(H,QW-1),1),COLOR0099FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=QG,H,ISLASTBAR,REF(H,QG-1),1),COLOR0099FF,POINTDOT;
QM:=INTPART(3*8/5);
QR:=REF(H,QM)=HHV(H,2*QM+1);
QT:=FILTER(QR,QM);
QY:=BACKSET(QT,QM+1);
QU:=FILTER(QY,QM);
QI:=BACKSET(ISLASTBAR,BARSLAST(QU)+1);
QP:=QI>REF(QI,1);
DRAWLINE(QU,H,QP,H,1),COLORRED;
QA1:=REF(L,8)=LLV(L,2*8+1);
QB1:=BACKSET(QA1,8+1);
QC1:=FILTER(QB1,8) AND L=LLV(L,8+1);
QD1:=BARSLAST(QC1);
QE1:=IF(QC1,CURRBARSCOUNT,0);
QF1:=IF(QD1,REF(L,QD1),L);
QG1:=IF(QD1,REF(QE1,QD1),QE1);
QH1:=CONST(QG1);
QW1:=REF(QF1,QD1+1);
QM1:=REF(QG1,QD1+1);
QR1:=CONST(QM1);
DRAWLINE(CURRBARSCOUNT=QR1,L,CURRBARSCOUNT=QH1,L,1),COLORBLUE;
DRAWLINE(CURRBARSCOUNT=QH1,L,ISLASTBAR,REF(L,QH1-1),1),COLORWHITE,POINTDOT;
DRAWLINE(CURRBARSCOUNT=QR1,L,ISLASTBAR,REF(L,QR1-1),1),COLORWHITE,POINTDOT;
QT1:=REF(L,QM)=LLV(L,2*QM+1);
QY1:=FILTER(QT1,QM);
QU1:=BACKSET(QY1,QM+1);
QI1:=FILTER(QU1,QM);
QP1:=BACKSET(ISLASTBAR,BARSLAST(QI1)+1);
QJ1:=QP1>REF(QP1,1);
DRAWLINE(QI1,L,QJ1,L,1),COLORRED;
SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);
SR2:=FILTER(SR1,10);
SR3:=BACKSET(SR2,10+1);
HD:=FILTER(SR3,10);
前高:=REF(H,BARSLAST(HD));
DRAWICON(CROSS(C,前高),L-0.20,3);{突破前高的信号};




 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容