您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

[求助]wh8程序化 [文华财经]

  • 咨询内容: 老师:看一下,这个公式,哪里错了?
    ZB
    DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);DEA:EMA(DIFF,9); TJ1:DIFF>REF(DIFF,1);TJ2:DIFF<REF(DIFF,1);TJ11:CROSS(DIFF,REF(DIFF,1))&&DIFF<0;TJ22:CROSSDOWN(DIFF,REF(DIFF,1))&&DIFF>0;

    #IMPORT[MIN,30,ZB] AS VARD:=VAR.TJ1;K:=VAR.TJ2;DD:=VAR.TJ11;KK:=VAR.TJ22;
    AA:=CROSS(DIFF,DEA) ;OPENMINUTE>5&&COUNT(AA,BARSLAST(DD))<6&&AA&&(BKVOL=0||(BKVOL>0&&C<BKPRICE)),BPK(1);CROSSDOWN(DIFF2,REF(DIFF2,1))&&DIFF2>0,SP(BKVOL);
    BB:=CROSSDOWN(DIFF,DEA) ;OPENMINUTE>5&&COUNT(BB,BARSLAST(KK))<6&&BB&&((TIME>9:15&&TIME<1030)||(TIME>1315&&TIME<1430)||(TIME>1800&&TIME<2130))&&(SKVOL=0||(SKVOL>0&&C>SKPRICE)),SPK(1);CROSS(DIFF2,REF(DIFF2,1))&&DIFF2<0,BP(SKVOL);TRADE_AGAIN(10);CLOSEMINUTE<=3,CLOSEOUT; 

     

     来源:程序化99

  • 文华技术人员:  您的主指标里,需要重新定义下DIFF,DEA,DIFF2,中间淡蓝色字体中,时间9:15应该改为0915
    参考:
    #IMPORT[MIN,30,TT] AS VARD:=VAR.TJ1;K:=VAR.TJ2;DD:=VAR.TJ11;KK:=VAR.TJ22;
    DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);DEA:EMA(DIFF,9); DIFF2:EMA(CLOSE,12)-EMA(CLOSE,27);
    AA:=CROSS(DIFF,DEA) ;OPENMINUTE>5&&COUNT(AA,BARSLAST(DD))<6&&AA&&(BKVOL=0||(BKVOL>0&&C<BKPRICE)),BPK(1);CROSSDOWN(DIFF2,REF(DIFF2,1))&&DIFF2>0,SP(BKVOL);
    BB:=CROSSDOWN(DIFF,DEA) ;OPENMINUTE>5&&COUNT(BB,BARSLAST(KK))<6&&BB&&((TIME>0915&&TIME<1030)||(TIME>1315&&TIME<1430)||(TIME>1800&&TIME<2130))&&(SKVOL=0||(SKVOL>0&&C>SKPRICE)),SPK(1);CROSS(DIFF2,REF(DIFF2,1))&&DIFF2<0,BP(SKVOL);TRADE_AGAIN(10);CLOSEMINUTE<=3,CLOSEOUT;

 

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

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


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

相关文章

    没有相关内容