您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:反向推算RSI主图 【任意参数版】-(源码)

反向推算RSI主图 【任意参数版】-(源码)


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:4.00 KB
更新时间:2010-08-06 09:50:00
公式简介:

{参数设置}
RSI1预设:=50;
RSI2预设:=50;
RSI3预设:=50;
LC:=REF(CLOSE,1);
X:=6;Y:=12;Z:=24;
RSI1:=SMA(MAX(CLOSE-LC,0),X,1)/SMA(ABS(CLOSE-LC),X,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),Y,1)/SMA(ABS(CLOSE-LC),Y,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),Z,1)/SMA(ABS(CLOSE-LC),Z,1)*100;
A1:=SMA(MAX(CLOSE-LC,0),X,1);
B1:=SMA(ABS(CLOSE-LC),X,1);
A2:=SMA(MAX(CLOSE-LC,0),Y,1);
B2:=SMA(ABS(CLOSE-LC),Y,1);
A:=SMA(MAX(CLOSE-LC,0),Z,1);
B:=SMA(ABS(CLOSE-LC),Z,1);
YCJ1:IF(C>LC,(REF(A1,1)*(X-1)-REF(B1,1)*(X-1)*RSI1预设/100)/(RSI1预设/100-1)+LC,LC+REF(B1,1)*(X-1)-REF(A1,1)*(X-1)/(RSI1预设/100));
YCJ2:IF(C>LC,(REF(A2,1)*(Y-1)-REF(B2,1)*(Y-1)*RSI2预设/100)/(RSI2预设/100-1)+LC,LC+REF(B2,1)*(Y-1)-REF(A2,1)*(Y-1)/(RSI2预设/100));
YCJ3:IF(C>LC,(REF(A,1)*(Z-1)-REF(B,1)*(Z-1)*RSI3预设/100)/(RSI3预设/100-1)+LC,LC+REF(B,1)*(Z-1)-REF(A,1)*(Z-1)/(RSI3预设/100));
{乖离率}
前收:=DYNAINFO(3)/1.618;
BD:=(C-YCJ1)/YCJ1*10;BDV:(C-YCJ1)/YCJ1*10+前收,COLORWHITE;
STICKLINE(BD>0,前收,前收+BD,0,1),COLORRED;
STICKLINE(BD<0,前收,前收+BD,0,1),COLORD9D919;
-1+前收,POINTDOT,COLORLIGRAY;1+前收,POINTDOT,COLORLIGRAY;


[url=http://www.goodgupiao.com/gupiaogongshi/8994.html][B]反向推算RSI主图 【任意参数版】-(源码)[/B][/url]