飞狐新RSI副图指标
-
相关简介:飞狐新RSI副图指标 源码 N:=12; LC:=REF(CLOSE,1); TD:=WINNER(C)*100; LCcb:=WINNER(REF(C,1))*100;{如用REF(WINNER(C),1),因WINNER函数的范围是0-1可能会有影响} LC1:=REF(INDEXC,1); ZF:=(C-LC)/LC; ZF1:=(INDEXC-LC1)/LC1; XD:=ZF-ZF1; RSI1:=SMA(MAX(CLOSE-LC,0),4,1)/SMA(ABS(CLOSE-LC),4,
-
文章来源:股海网作者:股海网发布时间:2016-02-26浏览次数:
飞狐新RSI副图指标
源码
N:=12;
LC:=REF(CLOSE,1);
TD:=WINNER(C)*100;
LCcb:=WINNER(REF(C,1))*100;{如用REF(WINNER(C),1),因WINNER函数的范围是0-1可能会有影响}
LC1:=REF(INDEXC,1);
ZF:=(C-LC)/LC;
ZF1:=(INDEXC-LC1)/LC1;
XD:=ZF-ZF1;
RSI1:=SMA(MAX(CLOSE-LC,0),4,1)/SMA(ABS(CLOSE-LC),4,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
量RSI:SMA(MAX(CLOSE-LC,0)*(1+V/CAPITAL),N,1)/SMA(ABS(CLOSE-LC)*(1+V/CAPITAL),N,1)*100;
成本RSI:SMA(MAX(TD-LCcb,0),N,1)/SMA(ABS(TD-LCcb),N,1)*100;
大盘RSI:SMA(MAX(XD,0),N,1)/SMA(ABS(XD),N,1)*100;
时间RSI:(RSI1+RSI2+RSI3)/3;