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

补充RSI空多字体标注 [文华财经]

  • 咨询内容:  保持下面代码不变: LC := REF(CLOSE,1); RSI1:SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; M:=26; N:=74; ZZ:=(RSI1>REF(RSI1,1)&&RSI1>REFX(RSI1,1))||(RSI1<REF(RSI1,1)&&RSI1<REFX(RSI1,1)); DRAWNUMBER(ZZ,RSI1,RSI1,0,COLORRED); 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; 要求:增加转折点处(M:=26;N:=74;)多、空字体,即在转折点数值上方增加空,在转折点数值下方增加多字,原来多、空字体不变,谢谢你。 

     

     来源:程序化99

  • 文华技术人员:  参考;
    LC := REF(CLOSE,1); RSI1:SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; M:=26; N:=74; 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),RSI1+3,''; DRAWTEXT(RSI1<REF(RSI1,1)&&RSI1<REFX(RSI1,1),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;

     

     来源: WWW.CXH99.COM

  • 文华客服:   要求详细说明,请更正:增加RSI转折点处(M:=26;N:=74;)多、空字体,即在满足RSI>=N条件的转折点数值上方增加空,另在满足RSI<=M条件的转折点数值下方增加多字,其他不满足RSI前述条件数值的转折点处,无需标注多或空字体。原来多、空字体不变,谢谢你。

     

  • 网友回复:  参考:
    LC := REF(CLOSE,1); RSI1:SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; M:=26; N:=74; 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;

 

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

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

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

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


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

相关文章

    没有相关内容