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

语法检测不通过 [博易POBO]

咨询内容:

语法检测不通过

老师,帮看下,我的程序检测不通过,帮修改下。
 
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
TJ1:=REF(H,1)>H&&REF(H,2)<REF(H,1)&&REF(L,1)>L&&REF(L,1)>REF(L,2);
TJ2:=REF(H,1)>REF(C,1)&&REF(H,1)>REF(O,1);
TJ3:=REF(MACD,1)>1;
TJ4:=REF(H,1)>REF(HV(H,19),1);
TJ5:=REF(ISUP,1)&&C<REF(O,1);
TJ6:=REF(ISDOWN,1)&&C<REF(C,1);
TJ7:=REF(C=O,1)&&C<REF(O,1);
TJ:=TJ1&&TJ2&&TJ3&&TJ4&&(TJ5||TJ6||TJ7);
TT:=BACKSET(TJ=1,2);
DRAWTEXT(CROSS(TT=1,0.5),H,'顶');
DRAWSL(CROSS(TT=1,0.5),H,0,10,2,COLORGREEN),DOT;
 
T1:=REF(H,1)<H&&REF(H,1)<REF(H,2)&&REF(L,1)<L&&REF(L,1)<REF(L,2);
T2:=((REF(C=O,1)&&REF(H,1)>REF(C,1)&&REF(L,1)<REF(O,1))||(REF(ISDOWN&&L<C,1))||(REF(ISUP&&L<O,1)))&&REF(L,1)=REF(LLV(L,20),1);
T3:=ISUP&&C>REF(C,1);
T4:=REF(MACD<0,1);
TT1:=T1&&T2&&T3&&T4;
T:=BACKSET(TT1=1,2);
DRAWTEXT(CROSS(T=1,0.5),L,'底');
DRAWSL(CROSS(T=1,0.5),L,0,10,2,COLORRED),LINETHICK2;

A:=MACD>0&&ISDOWN&&MACD>2;
STICKLINE(MACD>REF(MACD,1)&&BARSLAST(NOT(A))<2&&MACD>0&&ISDOWN&&MACD>2,C,O,COLORYELLOW,0);
STICKLINE1(MACD>REF(MACD,1)&&BARSLAST(NOT(A))<2&&MACD>0&&ISDOWN&&MACD>2,H,L,0.001,0),COLORYELLOW;
B:=MACD<0&&ISUP&&MACD<-2;
STICKLINE(MACD<REF(MACD,1)&&BARSLAST(NOT(B))<2&&MACD<0&&ISUP&&MACD<-2,C,O,COLORMAGENTA,0);
STICKLINE1(MACD<REF(MACD,1)&&BARSLAST(NOT(B))<2&&MACD<0&&ISUP&&MACD<-2,H,L,0.001,0),COLORMAGENTA;
 
 
 

 

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

博易技术人员: DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
TJ1:=REF(H,1)>H&&REF(H,2)<REF(H,1)&&REF(L,1)>L&&REF(L,1)>REF(L,2);
TJ2:=REF(H,1)>REF(C,1)&&REF(H,1)>REF(O,1);
TJ3:=REF(MACD,1)>1;
TJ4:=REF(H,1)>REF(HHV(H,19),1);
TJ5:=REF(ISUP,1)&&C<REF(O,1);
TJ6:=REF(ISDOWN,1)&&C<REF(C,1);
TJ7:=REF(C=O,1)&&C<REF(O,1);
TJ:=TJ1&&TJ2&&TJ3&&TJ4&&(TJ5||TJ6||TJ7);
TT:=BACKSET(TJ=1,2);
DRAWTEXT(CROSS(TT=1,0.5),H,'顶');
DRAWSL(CROSS(TT=1,0.5),H,0,10,2),COLORGREEN,POINTDOT;
 
T1:=REF(H,1)<H&&REF(H,1)<REF(H,2)&&REF(L,1)<L&&REF(L,1)<REF(L,2);
T2:=((REF(C=O,1)&&REF(H,1)>REF(C,1)&&REF(L,1)<REF(O,1))||(REF(ISDOWN&&L<C,1))||(REF(ISUP&&L<O,1)))&&REF(L,1)=REF(LLV(L,20),1);
T3:=ISUP&&C>REF(C,1);
T4:=REF(MACD<0,1);
TT1:=T1&&T2&&T3&&T4;
T:=BACKSET(TT1=1,2);
DRAWTEXT(CROSS(T=1,0.5),L,'底');
DRAWSL(CROSS(T=1,0.5),L,0,10,2),COLORRED,LINETHICK2;

A:=MACD>0&&ISDOWN&&MACD>2;
STICKLINE(MACD>REF(MACD,1)&&BARSLAST(NOT(A))<2&&MACD>0&&ISDOWN&&MACD>2,C,O,COLORYELLOW,0);
STICKLINE(MACD>REF(MACD,1)&&BARSLAST(NOT(A))<2&&MACD>0&&ISDOWN&&MACD>2,H,L,0.001,0),COLORYELLOW;
B:=MACD<0&&ISUP&&MACD<-2;
STICKLINE(MACD<REF(MACD,1)&&BARSLAST(NOT(B))<2&&MACD<0&&ISUP&&MACD<-2,C,O,COLORMAGENTA,0);
STICKLINE(MACD<REF(MACD,1)&&BARSLAST(NOT(B))<2&&MACD<0&&ISUP&&MACD<-2,H,L,0.001,0),COLORMAGENTA; 第4行语法检测不通过 来源 程序化久久网

 

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

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


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

相关文章

    没有相关内容