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

老师,请改下指标 [博易POBO]

咨询内容:

老师,请改下指标

请把文华改N:=10;
DRAWGBK(CLOSE>0,RGB(0,0,0),RGB(2,22,47),0);
AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC11:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;

STICKLINE1(AA,O,C,3,1),COLORRED;
STICKLINE1(AA,MAX(O,C),H,0,0),COLORRED;
STICKLINE1(AA,MIN(O,C),L,0,0),COLORRED;
STICKLINE1(AA AND DD,O,C,3,0),COLORRED;

STICKLINE1(BB,MAX(O,C),H,0,0),COLORGREEN;
STICKLINE1(BB,MIN(O,C),L,0,0),COLORGREEN;
STICKLINE1(BB,O,C,3,1),COLORGREEN;

STICKLINE1(BB AND DD,O,C,3,0),COLORGREEN;

STICKLINE1(BB AND CC11,MAX(O,C),H,0,1),COLORWHITE;
STICKLINE1(BB AND CC11,MIN(O,C),L,0,1),COLORWHITE;

STICKLINE1(BB AND CC11,O,C,3,1),COLORWHITE;
STICKLINE1(BB AND CC11 AND DD,O,C,3,0),COLORWHITE;
STICKLINE1(AA AND CC1,MAX(O,C),H,0,0),COLORWHITE;
STICKLINE1(AA AND CC1,MIN(O,C),L,0,0),COLORWHITE;
STICKLINE1(AA AND CC1,O,C,3,1),COLORWHITE;
STICKLINE1(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;

FXA:=MA(((SLOPE(C,20)*5)+C),20);

C1:=(C+ O +H+L)/4;
CA:=EMA(C1,1);
CB:=EMA(C1,3);
CC:=EMA(C1,5);
CE:=EMA((VOL*CA),1)/EMA(VOL,1);
CF:=EMA((VOL*(CA+CB+CC)/3),1)/EMA(VOL,1);
DXA:=EMA(EMA(EMA(CE,3),2),1),NODRAW;
DXB:=EMA(EMA(EMA(CF,5),3),1),NODRAW;
子:EMA(DXA,1),PRECIS0,COLORWHITE,NODRAW;
午:EMA(DXB,1),PRECIS0,COLORBLUE,NODRAW;
分界线:MA(CLOSE,18),PRECIS0,COLORRED,NODRAW;
DRAWCOLORLINE(子>REF(子,1),子,RGB(255,0,0),RGB(255,255,255));
DRAWCOLORLINE(午>REF(午,1),午,RGB(255,0,0),COLORBLUE);
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK3;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,NULL),COLORGREEN,LINETHICK3,NOTEXT;
TY1:=HIGH;
HD1:=FILTER(BACKSET(FILTER(REF(TY1, N )=HHV(TY1,2* N +1), N ), N +1), N );
LD1:=FILTER(BACKSET(FILTER(REF(TY1, N )=LLV(TY1,2* N +1), N ), N +1), N );
A1:=REF(TY1,BARSLAST(HD1));
B1:=REF(LOW,BARSLAST(LD1));
T1:=BARSLAST(HD1)<BARSLAST(LD1) && NOT(HD1);
T2:=BARSLAST(HD1)>BARSLAST(LD1) && NOT(LD1);
AAA:=CLOSE>REF(CLOSE,1) && REF(CLOSE,1)>REF(CLOSE,2) && REF(CLOSE,1)<REF(CLOSE,3) && IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) || (REF(CLOSE,2)<REF(CLOSE,4) && REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))));
BBB:=CLOSE<REF(CLOSE,1) && REF(CLOSE,1)<REF(CLOSE,2) && REF(CLOSE,1)>REF(CLOSE,3) && IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) || (REF(CLOSE,2)>REF(CLOSE,4) && REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));
DRAWICON(AAA && CLOSE>REF(OPEN,2),LOW,'ICO4'),VALIGN0;
DRAWICON(BBB && CLOSE<REF(CLOSE,2),HIGH,'ICO5'),VALIGN2;
AUTOFILTER;
QQ:=C;
A1Q:=REF(QQ,10)=HHV(QQ,2*10+1);
B1Q:=FILTER(A1Q,10);
C1Q:=BACKSET(B1Q,10+1);
HD:=FILTER(C1Q,10);
A2:=REF(QQ,10)=LLV(QQ,2*10+1);
B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
A :=REF(C,BARSLAST(HD));
BQ:=REF(L,BARSLAST(LD));
T1Q:=BARSLAST(HD)<BARSLAST(LD) && NOT(HD);
T2Q:=BARSLAST(HD)>BARSLAST(LD) && NOT(LD);
压力:IF(T1Q, A , A ),COLORBLUE,POINTDOT,LINETHICK1;
支撑:IF(T2Q,BQ,BQ),COLORRED,POINTDOT,LINETHICK1;成博易

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: N:=10;

AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC11:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;

STICKLINE(AA,O,C,3,1),COLORRED;
STICKLINE(AA,MAX(O,C),H,0,0),COLORRED;
STICKLINE(AA,MIN(O,C),L,0,0),COLORRED;
STICKLINE(AA AND DD,O,C,3,0),COLORRED;

STICKLINE(BB,MAX(O,C),H,0,0),COLORGREEN;
STICKLINE(BB,MIN(O,C),L,0,0),COLORGREEN;
STICKLINE(BB,O,C,3,1),COLORGREEN;

STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;

STICKLINE(BB AND CC11,MAX(O,C),H,0,1),COLORWHITE;
STICKLINE(BB AND CC11,MIN(O,C),L,0,1),COLORWHITE;

STICKLINE(BB AND CC11,O,C,3,1),COLORWHITE;
STICKLINE(BB AND CC11 AND DD,O,C,3,0),COLORWHITE;
STICKLINE(AA AND CC1,MAX(O,C),H,0,0),COLORWHITE;
STICKLINE(AA AND CC1,MIN(O,C),L,0,0),COLORWHITE;
STICKLINE(AA AND CC1,O,C,3,1),COLORWHITE;
STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;

FXA:=MA(((SLOPE(C,20)*5)+C),20);

C1:=(C+ O +H+L)/4;
CA:=EMA(C1,1);
CB:=EMA(C1,3);
CC:=EMA(C1,5);
CE:=EMA((VOL*CA),1)/EMA(VOL,1);
CF:=EMA((VOL*(CA+CB+CC)/3),1)/EMA(VOL,1);
DXA:=EMA(EMA(EMA(CE,3),2),1),NODRAW;
DXB:=EMA(EMA(EMA(CF,5),3),1),NODRAW;
子:EMA(DXA,1),PRECIS0,COLORWHITE,NODRAW;
午:EMA(DXB,1),PRECIS0,COLORBLUE,NODRAW;
分界线:MA(CLOSE,18),PRECIS0,COLORRED,NODRAW;
PARTLINE2(子,子>REF(子,1),COLOR0000FF,子<REF(子,1),COLORFFFFFF);
PARTLINE2(午,午>REF(午,1),COLOR0000FF,午<REF(午,1),COLORBLUE);
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK3;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,DRAWNULL),COLORGREEN,LINETHICK3;
TY1:=HIGH;
HD1:=FILTER(BACKSET(FILTER(REF(TY1, N )=HHV(TY1,2* N +1), N ), N +1), N );
LD1:=FILTER(BACKSET(FILTER(REF(TY1, N )=LLV(TY1,2* N +1), N ), N +1), N );
A1:=REF(TY1,BARSLAST(HD1));
B1:=REF(LOW,BARSLAST(LD1));
T1:=BARSLAST(HD1)<BARSLAST(LD1) && NOT(HD1);
T2:=BARSLAST(HD1)>BARSLAST(LD1) && NOT(LD1);
AAA:=CLOSE>REF(CLOSE,1) && REF(CLOSE,1)>REF(CLOSE,2) && REF(CLOSE,1)<REF(CLOSE,3) && IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) || (REF(CLOSE,2)<REF(CLOSE,4) && REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))));
BBB:=CLOSE<REF(CLOSE,1) && REF(CLOSE,1)<REF(CLOSE,2) && REF(CLOSE,1)>REF(CLOSE,3) && IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) || (REF(CLOSE,2)>REF(CLOSE,4) && REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));
DRAWICON(AAA && CLOSE>REF(OPEN,2),LOW,'4'),VALIGN0;
DRAWICON(BBB && CLOSE<REF(CLOSE,2),HIGH,'5'),VALIGN2;
AUTOFILTER;
QQ:=C;
A1Q:=REF(QQ,10)=HHV(QQ,2*10+1);
B1Q:=FILTER(A1Q,10);
C1Q:=BACKSET(B1Q,10+1);
HD:=FILTER(C1Q,10);
A2:=REF(QQ,10)=LLV(QQ,2*10+1);
B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
A :=REF(C,BARSLAST(HD));
BQ:=REF(L,BARSLAST(LD));
T1Q:=BARSLAST(HD)<BARSLAST(LD) && NOT(HD);
T2Q:=BARSLAST(HD)>BARSLAST(LD) && NOT(LD);
压力:IF(T1Q, A , A ),COLORBLUE,POINTDOT,LINETHICK1;
支撑:IF(T2Q,BQ,BQ),COLORRED,POINTDOT,LINETHICK1; 来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


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

相关文章

    没有相关内容