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

改成WH8自动开仓、加仓、平仓模型 [文华财经]

  • 咨询内容:  老师:把下面的内容,改成WH8自动开仓、加仓、平仓,指令指标

    DRAWICON(CROSS(DIFF120,REF(DIFF120,1))&&DIFF12<0&&DIFF120<-15,DIFF12,'ICO130'),VALIGN0;(开多仓1手;如前面已开仓,价格低于前面开仓的,加1手多)

    DRAWICON(CROSS(DIFF12,REF(DIFF12,1))&&DIFF12<-5&&DIFF120>REF(DIFF120,1)&&DIFF120<10,DIFF12,'ICO140'),VALIGN0;(开多仓1手;如前面已开仓,价格低于前面开仓的,加1手多)

    DRAWICON(DIFF<0&&CROSS(DIFF,DEA)&&DIFF12>REF(DIFF12,1)&&DIFF12<-5&&DIFF120>REF(DIFF120,1)&&DIFF120<10,DIFF12,'ICO95'),VALIGN0;(开多仓1手;如前面已开仓,价格低于前面开仓的,加1手)

     

    A:=CROSS(DIFF120,REF(DIFF120,1))&&DIFF12<0&&DIFF120<-15;

    AA:=DIFF<0&&CROSS(DIFF,DEA) ;

    DRAWICON(COUNT(AA,BARSLAST(A))<4&&AA&&DIFF12<0,DIFF12,'ICO1'),VALIGN0;(开多仓1手;如前面已开仓,价格低于前面开仓的,加1手多)

     

    DIFF12>0&& CROSSDOWN(DIFF12,REF(DIFF12,1))平多仓

     

     

    DRAWICON(CROSSDOWN(DIFF120,REF(DIFF120,1))&&DIFF12>0&&DIFF120>15,DIFF12,'ICO131'),VALIGN2;(开空仓1手;如前面已开仓,价格低于前面开仓的,加1手空)

    DRAWICON(CROSSDOWN(DIFF12,REF(DIFF12,1))&&DIFF12>5&&DIFF120<REF(DIFF120,1)&&DIFF120>-10,DIFF12,'ICO141'),VALIGN2;(开空仓1手;如前面已开仓,价格低于前面开仓的,加1手空)

    DRAWICON(DIFF>0&&CROSSDOWN(DIFF,DEA)&&DIFF12<REF(DIFF12,1)&&DIFF12>5&&DIFF120<REF(DIFF120,1)&&DIFF120>-10,DIFF12,'ICO96'),VALIGN2;(开空仓1手;价格低于前面开仓的,加1手空)

     

    B:=CROSSDOWN(DIFF120,REF(DIFF120,1))&&DIFF12>0&&DIFF120>15;

    BB:=DIFF>0&&CROSSDOWN(DIFF,DEA) ;

    DRAWICON(COUNT(BB,BARSLAST(B))<4&&BB&&DIFF12>0,DIFF12,'ICO2'),VALIGN2;(开空仓1手;如前面已开仓,价格低于前面开仓的,加1手空)

     

    DIFF12<0&& CROSS (DIFF12,REF(DIFF12,1))平空仓

       

     

     来源:程序化99

  • 文华技术人员:  参考
    CROSS(DIFF120,REF(DIFF120,1))&&DIFF12<0&&DIFF120<-15&&(BKVOL=0||BKVOL>0&&C<BKPRICE),BK(1); CROSS(DIFF12,REF(DIFF12,1))&&DIFF12<-5&&DIFF120>REF(DIFF120,1)&&DIFF120<10&&(BKVOL=0||BKVOL>0&&C<BKPRICE),BK(1); DIFF<0&&CROSS(DIFF,DEA)&&DIFF12>REF(DIFF12,1)&&DIFF12<-5&&DIFF120>REF(DIFF120,1)&&DIFF120<10&&(BKVOL=0||BKVOL>0&&C<BKPRICE),BK(1); COUNT(AA,BARSLAST(A))<4&&AA&&DIFF12<0&&(BKVOL=0||BKVOL>0&&C<BKPRICE),BK(1); DIFF12>0&& CROSSDOWN(DIFF12,REF(DIFF12,1)),SP(BKVOL);
    CROSSDOWN(DIFF120,REF(DIFF120,1))&&DIFF12>0&&DIFF120>15&&(SKVOL=0||SKVOL>0&&C<SKPRICE),SK(1); CROSSDOWN(DIFF12,REF(DIFF12,1))&&DIFF12>5&&DIFF120<REF(DIFF120,1)&&DIFF120>-10&&(SKVOL=0||SKVOL>0&&C<SKPRICE),SK(1); DIFF>0&&CROSSDOWN(DIFF,DEA)&&DIFF12<REF(DIFF12,1)&&DIFF12>5&&DIFF120<REF(DIFF120,1)&&DIFF120>-10&&(SKVOL=0||SKVOL>0&&C<SKPRICE),SK(1); COUNT(BB,BARSLAST(B))<4&&BB&&DIFF12>0&&(SKVOL=0||SKVOL>0&&C<SKPRICE),SK(1); DIFF12<0&& CROSS (DIFF12,REF(DIFF12,1)),BP(SKVOL);

 

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

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


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

相关文章

    没有相关内容