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

在RSI指标增加3条线 [文华财经]

  • 咨询内容:

     在RSI指标增加3条横线,分别是RSI=20,红色,thickline3;RSI=80,绿色,thickline3;RSI=50,白色,thickline3。谢谢你! 

    在下列代码中添加

    LC := REF(CLOSE,1);
    RSI1:SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
    M:=30;
    N:=70;
    ZZ:=(RSI1>REF(RSI1,1)&&RSI1>REFX(RSI1,1))||(RSI1<REF(RSI1,1)&&RSI1<REFX(RSI1,1));
    DRAWNUMBER(ZZ,RSI1,RSI1,0,COLORRED);
    DRAWTEXT(RSI1>REF(RSI1,1)&&RSI1>REFX(RSI1,1)&&REF(RSI1,0)>N,RSI1+3,'空');
    DRAWTEXT(RSI1<REF(RSI1,1)&&RSI1<REFX(RSI1,1)&&REF(RSI1,0)<M,RSI1-2,'多'),VALIGN0;
    DRAWTEXT(CROSS(RSI1,REF(RSI1,1))&&REF(RSI1,1)<=M,RSI1,'多'),ALIGN2;
    CROSS(RSI1,REF(RSI1,1))&&REF(RSI1,1)<=M,SOUND('G');
    DRAWTEXT(CROSSDOWN(RSI1,REF(RSI1,1))&&REF(RSI1,1)>=N,RSI1,'空'),ALIGN2;
    CROSSDOWN(RSI1,REF(RSI1,1))&&REF(RSI1,1)>=N,SOUND('H'); 
    DRAWNUMBER(CROSS(RSI1,REF(RSI1,1))&&REF(RSI1,1)<=M,RSI1,RSI1,0,COLORRED),ALIGN0;
    DRAWNUMBER(CROSSDOWN(RSI1,REF(RSI1,1))&&REF(RSI1,1)>=N,RSI1,RSI1,0,COLORRED),ALIGN0;

     

     来源:程序化99

  • 文华技术人员:  参考:
    LC := REF(CLOSE,1); RSI1:SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; M:=30; N:=70; ZZ:=(RSI1>REF(RSI1,1)&&RSI1>REFX(RSI1,1))||(RSI1<REF(RSI1,1)&&RSI1<REFX(RSI1,1)); DRAWNUMBER(ZZ,RSI1,RSI1,0,COLORRED); DRAWTEXT(RSI1>REF(RSI1,1)&&RSI1>REFX(RSI1,1)&&REF(RSI1,0)>N,RSI1+3,''; DRAWTEXT(RSI1<REF(RSI1,1)&&RSI1<REFX(RSI1,1)&&REF(RSI1,0)<M,RSI1-2,'',VALIGN0; DRAWTEXT(CROSS(RSI1,REF(RSI1,1))&&REF(RSI1,1)<=M,RSI1,'',ALIGN2; CROSS(RSI1,REF(RSI1,1))&&REF(RSI1,1)<=M,SOUND(''; DRAWTEXT(CROSSDOWN(RSI1,REF(RSI1,1))&&REF(RSI1,1)>=N,RSI1,'',ALIGN2; CROSSDOWN(RSI1,REF(RSI1,1))&&REF(RSI1,1)>=N,SOUND('';  DRAWNUMBER(CROSS(RSI1,REF(RSI1,1))&&REF(RSI1,1)<=M,RSI1,RSI1,0,COLORRED),ALIGN0; DRAWNUMBER(CROSSDOWN(RSI1,REF(RSI1,1))&&REF(RSI1,1)>=N,RSI1,RSI1,0,COLORRED),ALIGN0;

    20,COLORRED,LINETHICK3; 80,COLORGREEN,LINETHICK3; 50,COLORWHITE,LINETHICK3;

 

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

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

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

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


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

相关文章

    没有相关内容