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

跨周期引用 [文华财经]

  • 咨询内容: 老师:一个指标里,可否引用2个周期?
    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))TJ22:CROSSDOWN(DIFF,REF(DIFF,1))
    #IMPORT[MIN,30,ZB] AS VARD:=VAR.TJ1;K:=VAR.TJ2;

    OPENMINUTE>5&&D&&CROSS(DIFF2,REF(DIFF2,1))&&DIFF2<0&&(BKVOL=0||(BKVOL>0&&C<BKPRICE)),BPK(1);CROSSDOWN(3分钟DIFF下拐),SP(BKVOL);
    OPENMINUTE>5&&K&&CROSSDOWN(DIFF2,REF(DIFF2,1))&&DIFF2>0&&(SKVOL=0||(SKVOL>0&&C>SKPRICE)),SPK(1);CROSS(3分钟DIFF上拐),BP(SKVOL);TRADE_AGAIN(10);CLOSEMINUTE<=10,CLOSEOUT;   

     

     来源:程序化99

  • 文华技术人员:  可以的,最多可以引用6个周期 ,格式参考:
    #IMPORT[MIN,30,ZB] AS VAR1 A1:=VAR1.A; #IMPORT[MIN,3,ZB] AS VAR2 A2:=VAR2.A;

     

     来源: WWW.CXH99.COM

  • 文华客服:  老师:我是新手,看不懂怎样改?根据一楼的要求,写个完整的

     

  • 网友回复: 以产紧固件的1周期拐头,参考:
    被引用NN
    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));TJ22:CROSSDOWN(DIFF,REF(DIFF,1));X:DIFF<REF(DIFF,1)&&REF(DIFF,1)>REF(DIFF,2),NODRAW;S:DIFF<REF(DIFF,1)&&REF(DIFF,1)<REF(DIFF,2),NODRAW;
    主模型:

    #IMPORT[MIN,30,NN] AS VARD:=VAR.TJ1;K:=VAR.TJ2;
    #IMPORT[MIN,3,NN] AS VAR1X:=VAR.X;S:=VAR.S;

    OPENMINUTE>5&&D&&CROSS(DIFF2,REF(DIFF2,1))&&DIFF2<0&&(BKVOL=0||(BKVOL>0&&C<BKPRICE)),BPK(1);X,SP(BKVOL);
    OPENMINUTE>5&&K&&CROSSDOWN(DIFF2,REF(DIFF2,1))&&DIFF2>0&&(SKVOL=0||(SKVOL>0&&C>SKPRICE)),SPK(1);S,BP(SKVOL);TRADE_AGAIN(10);CLOSEMINUTE<=10,CLOSEOUT;

 

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

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


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

相关文章

    没有相关内容