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

老师好辛苦了 [文华财经]

  • 咨询内容:

     请老师将以下两个指标叠加在一个主图上,我怎么也不能同时使用。请老师帮忙!谢谢!!!!

    N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
    STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORYELLOW;
    STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORBLUE;
    MA5:MA(C,5),COLORYELLOW;
    MA11:MA(C,11),COLORRED,LINETHICK2;
    MA21:MA(C,21),COLORBLUE;
    MA55:MA(C,55),COLORGREEN,LINETHICK2;
    MA120:MA(C,120),COLORMAGENTA;
    DRAWTEXT(CROSS(MA5,MA11),L-1*MINPRICE,'',FONTSIZE30,COLORRED,VALIGN0;
    DRAWICON(CROSS(MA11,MA21),MA5,'CO1';
    DRAWTEXT(CROSSDOWN(MA5,MA11),H+1*MINPRICE,'',FONTSIZE30,COLORGREEN,VALIGN2;
    DRAWICON(CROSSDOWN(MA11,MA21),MA5,'CO2';
    PLAYSOUND(CROSS(MA11,MA21),'';
    PLAYSOUND(CROSSDOWN(MA11,MA21),''; 老师取消这个指标中的箭头,为了发音只要笑脸。

     

    以下指标箭头加在上一个指标的k线上,要求箭头大并且距k远一点,否则看不清楚。

    顶:=REFX(HIGH,5)<HIGH AND REFX(HIGH,4)<HIGH AND REFX(HIGH,3)<HIGH AND REFX(HIGH,2)<HIGH AND REFX(HIGH,1)<HIGH AND REF(HIGH,1)<HIGH AND REF(HIGH,2)<HIGH AND REF(HIGH,3)<HIGH AND REF(HIGH,4)<HIGH AND REF(HIGH,5)<HIGH;
    底:=REFX(LOW,5)>LOW AND REFX(LOW,4)>LOW AND REFX(LOW,3)>LOW AND REFX(LOW,2)>LOW AND REFX(LOW,1)>LOW AND REF(LOW,1)>LOW AND REF(LOW,2)>LOW AND REF(LOW,3)>LOW AND REF(LOW,4)>LOW AND REF(LOW,5)>LOW;
    DRAWICON(底,LOW,4),VALIGN0;
    DRAWICON(顶,HIGH,5),VALIGN2;

     

     来源:程序化99

  • 文华技术人员:  
    编写如下,仅供参考
    N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORYELLOW;STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORBLUE;MA5:MA(C,5),COLORYELLOW;MA11:MA(C,11),COLORRED,LINETHICK2;MA21:MA(C,21),COLORBLUE;MA55:MA(C,55),COLORGREEN,LINETHICK2;MA120:MA(C,120),COLORMAGENTA;//DRAWTEXT(CROSS(MA5,MA11),L-1*MINPRICE,'',FONTSIZE30,COLORRED,VALIGN0;DRAWICON(CROSS(MA11,MA21),MA5,'CO1';//DRAWTEXT(CROSSDOWN(MA5,MA11),H+1*MINPRICE,'',FONTSIZE30,COLORGREEN,VALIGN2;DRAWICON(CROSSDOWN(MA11,MA21),MA5,'CO2';PLAYSOUND(CROSS(MA11,MA21),'';PLAYSOUND(CROSSDOWN(MA11,MA21),''; //老师取消这个指标中的箭头,为了发音只要笑脸。 顶:=REFX(HIGH,5)<HIGH AND REFX(HIGH,4)<HIGH AND REFX(HIGH,3)<HIGH AND REFX(HIGH,2)<HIGH AND REFX(HIGH,1)<HIGH AND REF(HIGH,1)<HIGH AND REF(HIGH,2)<HIGH AND REF(HIGH,3)<HIGH AND REF(HIGH,4)<HIGH AND REF(HIGH,5)<HIGH;底:=REFX(LOW,5)>LOW AND REFX(LOW,4)>LOW AND REFX(LOW,3)>LOW AND REFX(LOW,2)>LOW AND REFX(LOW,1)>LOW AND REF(LOW,1)>LOW AND REF(LOW,2)>LOW AND REF(LOW,3)>LOW AND REF(LOW,4)>LOW AND REF(LOW,5)>LOW;DRAWTEXT(底,LOW-2*MINPRICE,'',FONTSIZE30,COLORRED,VALIGN0;DRAWTEXT(顶,HIGH+2*MINPRICE,'',FONTSIZE30,COLORGREEN,VALIGN2;

     

     来源: WWW.CXH99.COM

  • 文华客服:  老师写的很好!谢谢谢了!!!!还要麻烦老师,把指标中的黄蓝方块,给改成像通达信那样的抛物线形势好吗?黄蓝方块经常和k线重叠,影响分析。再次谢谢!!!!!!!

     

  • 网友回复:   修改如下,仅供参考
    设置的黄柱的时候改成黄色的MA(C,N)均线,蓝柱的时候显示蓝色MA(C,N)均线
    N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));DRAWCOLORLINE(C>=MA(C,N),MA(C,N),COLORYELLOW,COLORBLUE),LINETHICK2;MA5:MA(C,5),COLORYELLOW;MA11:MA(C,11),COLORRED,LINETHICK2;MA21:MA(C,21),COLORBLUE;MA55:MA(C,55),COLORGREEN,LINETHICK2;MA120:MA(C,120),COLORMAGENTA;//DRAWTEXT(CROSS(MA5,MA11),L-1*MINPRICE,'',FONTSIZE30,COLORRED,VALIGN0;DRAWICON(CROSS(MA11,MA21),MA5,'CO1';//DRAWTEXT(CROSSDOWN(MA5,MA11),H+1*MINPRICE,'',FONTSIZE30,COLORGREEN,VALIGN2;DRAWICON(CROSSDOWN(MA11,MA21),MA5,'CO2';PLAYSOUND(CROSS(MA11,MA21),'';PLAYSOUND(CROSSDOWN(MA11,MA21),''; //老师取消这个指标中的箭头,为了发音只要笑脸。 顶:=REFX(HIGH,5)<HIGH AND REFX(HIGH,4)<HIGH AND REFX(HIGH,3)<HIGH AND REFX(HIGH,2)<HIGH AND REFX(HIGH,1)<HIGH AND REF(HIGH,1)<HIGH AND REF(HIGH,2)<HIGH AND REF(HIGH,3)<HIGH AND REF(HIGH,4)<HIGH AND REF(HIGH,5)<HIGH;底:=REFX(LOW,5)>LOW AND REFX(LOW,4)>LOW AND REFX(LOW,3)>LOW AND REFX(LOW,2)>LOW AND REFX(LOW,1)>LOW AND REF(LOW,1)>LOW AND REF(LOW,2)>LOW AND REF(LOW,3)>LOW AND REF(LOW,4)>LOW AND REF(LOW,5)>LOW;DRAWTEXT(底,LOW-2*MINPRICE,'',FONTSIZE30,COLORRED,VALIGN0;DRAWTEXT(顶,HIGH+2*MINPRICE,'',FONTSIZE30,COLORGREEN,VALIGN2;

     

  • 网友回复:  老师好!麻烦老师用上述公式条件编写一个选股器可以吗?1、取消笑脸。2、选出当底部红箭头出现的个股。谢谢老师!!!!

 

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

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


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

相关文章

    没有相关内容