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

显示数值于附图左上角 [文华财经]

  • 咨询内容: 老师帮给取消80/50/20在左上角显示的情况,同时增加RSI的走势数值与左上角位置,并且也在走势线的末端时时显示一下实际发生数值,字用黄色。

    N1:=6;LC := REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;DRAWTEXT(RSI>80,RSI,'',COLORCYAN,VALIGN1,FONTSIZE13;DRAWTEXT(RSI<20,RSI,'',COLORYELLOW,VALIGN1,FONTSIZE13;

    DRAWCOLORLINE(RSI>50,RSI,COLORRED,COLORGREEN);DRAWICON(REFX1(CROSS(RSI,50),0),RSI,'CO10',ALIGN1,VALIGN1;DRAWICON(REFX1(CROSSDOWN(RSI,50),0),RSI,'CO12',ALIGN1,VALIGN1;REFLINE:80,50,20;REFX1(80,10000),COLORMAGENTA,DOT,LINETHICK1;REFX1(50,10000),COLORWHITE,DOT,LINETHICK1;REFX1(20,10000),COLORBLUE,DOT,LINETHICK1;DRAWSL(ISLASTBAR,80,0,10000,0,COLORMAGENTA),DOT;DRAWSL(ISLASTBAR,50,0,10000,0,COLORWHITE),DOT;DRAWSL(ISLASTBAR,20,0,10000,0,COLORBLUE),DOT;

     

     来源:程序化99

  • 文华技术人员:  请参考


    N1:=6; LC := REF(CLOSE,1); RSI:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,NODRAW; DRAWTEXT(RSI>80,RSI,'',COLORCYAN,VALIGN1,FONTSIZE13; DRAWTEXT(RSI<20,RSI,'',COLORYELLOW,VALIGN1,FONTSIZE13;

    DRAWCOLORLINE(RSI>50,RSI,COLORRED,COLORGREEN); DRAWICON(REFX1(CROSS(RSI,50),0),RSI,'CO10',ALIGN1,VALIGN1; DRAWICON(REFX1(CROSSDOWN(RSI,50),0),RSI,'CO12',ALIGN1,VALIGN1; REFLINE:80,50,20; REFX1(80,10000),COLORMAGENTA,DOT,LINETHICK1,NODRAW; REFX1(50,10000),COLORWHITE,DOT,LINETHICK1,NODRAW; REFX1(20,10000),COLORBLUE,DOT,LINETHICK1,NODRAW; DRAWSL(ISLASTBAR,80,0,10000,0,COLORMAGENTA),DOT; DRAWSL(ISLASTBAR,50,0,10000,0,COLORWHITE),DOT; DRAWSL(ISLASTBAR,20,0,10000,0,COLORBLUE),DOT; DRAWNUMBER1(ISLASTBAR,RSI,RSI,2),COLORRED,ALIGN0;

     

     来源: WWW.CXH99.COM

  • 文华客服:  老师,我的意思是在左上角就不用显示80/50/20这三个坐标数值了,只保留RSI一个实际数值,右上角就不显示其它任何信息了

     

  • 网友回复:  请参考
    N1:=6; LC := REF(CLOSE,1); RSI:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,NODRAW; DRAWTEXT(RSI>80,RSI,'',COLORCYAN,VALIGN1,FONTSIZE13; DRAWTEXT(RSI<20,RSI,'',COLORYELLOW,VALIGN1,FONTSIZE13;

    DRAWCOLORLINE(RSI>50,RSI,COLORRED,COLORGREEN); DRAWICON(REFX1(CROSS(RSI,50),0),RSI,'CO10',ALIGN1,VALIGN1; DRAWICON(REFX1(CROSSDOWN(RSI,50),0),RSI,'CO12',ALIGN1,VALIGN1; REFLINE:80,50,20; REFX1(80,10000),COLORMAGENTA,DOT,LINETHICK1,NOTEXT; REFX1(50,10000),COLORWHITE,DOT,LINETHICK1,NOTEXT; REFX1(20,10000),COLORBLUE,DOT,LINETHICK1,NOTEXT; DRAWSL(ISLASTBAR,80,0,10000,0,COLORMAGENTA),DOT; DRAWSL(ISLASTBAR,50,0,10000,0,COLORWHITE),DOT; DRAWSL(ISLASTBAR,20,0,10000,0,COLORBLUE),DOT; DRAWNUMBER1(ISLASTBAR,RSI,RSI,2),COLORRED,ALIGN0;

 

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

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

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

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


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

相关文章

    没有相关内容