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

修改指标老师 [文华财经]

  • 咨询内容: X_1:=REF(CLOSE,1);

    X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100;

    X_3:=SMA(X_2,5,1);

    X_4:=BARSLAST(X_2<=15)<5;

    X_5:=SMA(X_2,5,1);

    X_6:=CROSS(X_2,X_3) AND X_5>15 AND X_4;

    X_7:=FILTER(X_6,10);

    X_8:=IF(CLOSE>REF((6*HIGH+5*REF(HIGH,1)+4*REF(HIGH,2)+3*REF(HIGH,3)+2*REF(HIGH,4)+1*REF(HIGH,5))/(6+5+4+3+2+1),1),1,IF(CLOSE<REF((6*LOW+5*REF(LOW,1)+4*REF(LOW,2)+3*REF(LOW,3)+2*REF(LOW,4)+1*REF(LOW,5))/(6+5+4+3+2+1),1),(-1),0));

    X_9:=BARSLAST(NOT(X_8=0));

    X_10:=IF(X_8=0,REF(X_8,X_9),X_8);

    触发:X_7,NODRAW,COLORRED;

    止损:CLOSE<REF(OPEN,BARSLAST(X_7>0)) AND COUNT(CLOSE<REF(OPEN,BARSLAST(X_7>0)),BARSLAST(X_7>0))=1 AND IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))>0,NODRAW,COLORWHITE;

    止盈:HIGH/REF(CLOSE,BARSLAST(X_7>0))>=1.05 OR CLOSE/REF(CLOSE,BARSLAST(X_7>0))>=1.05 AND COUNT(止损,BARSLAST(X_7>0))=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0))=0,NODRAW,COLORBLUE;

    区间:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止损,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0)+1)=0,NODRAW,COLOR696960;

    结束:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止损,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,5),MA(LOW,5)),1,(-1))),BARSLAST(X_7>0)+1)=1 AND CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,5)),1,(-1))) OR 止损,NODRAW,COLORGREEN;

    STICKLINE(触发>0,0,1,(-1),0),COLORRED;

    STICKLINE(止盈>0,0.4,0.6,4,0),COLORBLUE;

    STICKLINE(结束>0,0,0.7,(-1),0),COLORGREEN;

    STICKLINE(止损>0,0.8,1,(-1),0),COLORWHITE;

    X_11:=BARSLASTCOUNT(止盈>0);

    DRAWTEXT(止盈>0,0.5,VAR2STR(X_11,0));

    六、“独霸一方”指标源码(选股):

    X_1:=REF(CLOSE,1);

    X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100;

    X_3:=SMA(X_2,5,1);

    X_4:=BARSLAST(X_2<=15)<5;

    X_5:=SMA(X_2,5,1);

    X_6:=CROSS(X_2,X_3) AND X_5>15 AND X_4;

    BU:FILTER(X_6,10);

     

     来源:程序化99

  • 文华技术人员:  参考:
    X_1:=REF(CLOSE,1); X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100;
    X_3:=SMA(X_2,5,1);
    X_4:=BARSLAST(X_2<=15)<5;
    X_5:=SMA(X_2,5,1);
    X_6:=CROSS(X_2,X_3) AND X_5>15 AND X_4;
    X_7:=FILTER(X_6,10);
    X_8:=IF(CLOSE>REF((6*HIGH+5*REF(HIGH,1)+4*REF(HIGH,2)+3*REF(HIGH,3)+2*REF(HIGH,4)+1*REF(HIGH,5))/(6+5+4+3+2+1),1),1,IF(CLOSE<REF((6*LOW+5*REF(LOW,1)+4*REF(LOW,2)+3*REF(LOW,3)+2*REF(LOW,4)+1*REF(LOW,5))/(6+5+4+3+2+1),1),(-1),0));
    X_9:=BARSLAST(NOT(X_8=0));
    X_10:=IF(X_8=0,REF(X_8,X_9),X_8);
    触发:X_7,NODRAW,COLORRED;
    止损:CLOSE<REF(OPEN,BARSLAST(X_7>0)) AND COUNT(CLOSE<REF(OPEN,BARSLAST(X_7>0)),BARSLAST(X_7>0))=1 AND IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))>0,NODRAW,COLORWHITE;
    止盈:HIGH/REF(CLOSE,BARSLAST(X_7>0))>=1.05 OR CLOSE/REF(CLOSE,BARSLAST(X_7>0))>=1.05 AND COUNT(止损,BARSLAST(X_7>0))=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0))=0,NODRAW,COLORBLUE;
    区间:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止损,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0)+1)=0,NODRAW,COLOR696960;
    结束:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止损,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,5),MA(LOW,5)),1,(-1))),BARSLAST(X_7>0)+1)=1 AND CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,5)),1,(-1))) OR 止损,NODRAW,COLORGREEN;
    STICKLINE(触发>0,0,1,(-1),0),COLORRED;
    STICKLINE(止盈>0,0.4,0.6,4,0),COLORBLUE;
    STICKLINE(结束>0,0,0.7,(-1),0),COLORGREEN;
    STICKLINE(止损>0,0.8,1,(-1),0),COLORWHITE;
    X_11:=BARSLASTCOUNT(止盈>0);
    //六、“独霸一方”指标源码(选股):


    BU:FILTER(X_6,10);

 

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

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

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

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


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

相关文章

    没有相关内容