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

麻烦改成一个模型,感谢你了 [文华财经]

  • 咨询内容:

    MA10:MA(C,10);
    MA30:MA(C,30);


    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    COND1:=J>K&&K>D&&CROSS(MA10,MA30)&&C>MA10;
    DRAWTEXT(CROSS(COND1,0.5),H,'',VALIGN2;
    N1:BARSLAST(CROSS(COND1,0.5))+1,NODRAW;
    DRAWTEXT(CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),N1)=1,H,'平',VALIGN2;
    N2:BARSLAST(CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),N1)=1)+1,NODRAW;
    COND2:=J<K&&K<D&&CROSSDOWN(MA10,MA30)&&C<MA30;
    DRAWTEXT(CROSS(COND2,0.5),H,'',VALIGN2;
    N3:=BARSLAST(CROSS(COND2,0.5))+1;
    DRAWTEXT(CROSS(C,MA10)&&COUNT(CROSS(C,MA10),N3)=1,H,'平',VALIGN2;


    N4:=BARSLAST(CROSS(C,MA10)&&COUNT(CROSS(C,MA10),N3)=1)+1;
    DRAWCOLORKLINE(N1<N2,COLORRED,0);
    DRAWCOLORKLINE(N3<N4,COLORBLUE,0);
    DRAWCOLORKLINE(NOT(N1<N2 OR N3<N4),COLORYELLOW,0);

     

     来源:程序化99

  • 文华技术人员:  参考:
    MA10:MA(C,10); MA30:MA(C,30);

    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; COND1:=J>K&&K>D&&CROSS(MA10,MA30)&&C>MA10; DRAWTEXT(CROSS(COND1,0.5),H,'',VALIGN2; N1:BARSLAST(CROSS(COND1,0.5))+1,NODRAW; DRAWTEXT(CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),N1)=1,H,'平',VALIGN2; N2:BARSLAST(CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),N1)=1)+1,NODRAW; COND2:=J<K&&K<D&&CROSSDOWN(MA10,MA30)&&C<MA30; DRAWTEXT(CROSS(COND2,0.5),H,'',VALIGN2; N3:=BARSLAST(CROSS(COND2,0.5))+1; DRAWTEXT(CROSS(C,MA10)&&COUNT(CROSS(C,MA10),N3)=1,H,'平',VALIGN2;

    N4:=BARSLAST(CROSS(C,MA10)&&COUNT(CROSS(C,MA10),N3)=1)+1; DRAWCOLORKLINE(N1<N2,COLORRED,0); DRAWCOLORKLINE(N3<N4,COLORBLUE,0); DRAWCOLORKLINE(NOT(N1<N2 OR N3<N4),COLORYELLOW,0);
    CROSS(COND1,0.5),BK; CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),N1)=1,SP; CROSS(COND2,0.5),SK; CROSS(C,MA10)&&COUNT(CROSS(C,MA10),N3)=1,BP; AUTOFILTER;

 

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

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

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

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


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

相关文章

    没有相关内容