进出中线指标 (源码)
2012-08-13 09:04:00来源:本站整理浏览:137
通达信进出中线指标公式股票软件源码如下:
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
G:=BARSLAST(CROSS(RSI1,RSI2))/2+28;
XG1:RSI1>G;
XG2:G>RSI1;
DRAWICON(CROSS(XG1,XG2),XG1,1);
DRAWICON(RSI1>80,XG1,12);
- 上一篇公式:零轴KDJ指标 (源码)
- 下一篇公式:进出短线指标 (源码)