在线检测未来函数

将大智慧rsi改成通达信的

来源:Internet,编辑:股旁网,2012-08-24

编写条件:

源码如下:INPUT: Nrsi(14,2,100,1),Nstoch(5,2,100,1); REFLINE: 0, 20, 50, 80, 100; RSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),Nrsi,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),Nrsi,1)*100; Stochrsi:(RSI-LLV(RSI,Nstoch))/(HHV(RSI,Nstoch)-LLV(RSI,Nstoch))*100; 参数精灵: Param#1日Relative Strength Index; Param#2日Stochastic Relative Strength Index 谢谢各位高手。小弟不胜感激

编写方法:

 INPUT: Nrsi(14,2,100),Nstoch(5,2,100);

RSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),Nrsi,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),Nrsi,1)*100;
Stochrsi:(RSI-LLV(RSI,Nstoch))/(HHV(RSI,Nstoch)-LLV(RSI,Nstoch))*100;
 
 

相关文章