飞狐寻庄RSI公式源码 飞狐指标公式大全
2016-4-11 9:47:45 股票入门 http://rumen.southmoney.com
飞狐寻庄RSI公式源码 飞狐指标公式大全 南方财富网小编为您提供
n1:=16;P:=5;WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),n1/2,1)/SMA(ABS(CLOSE-LC),N1/2,1)*100,COLORWHITE;
RSI1:SMA(MAX(CLOSE-LC,0),n1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORRED,LINETHICK2;
RSI2:=SMA(MAX(CLOSE-LC,0),n1*2,1)/SMA(ABS(CLOSE-LC),N1*2,1)*100,COLORAAAA00;
PARTLINE(RSI1<50,rsi1),COLOR00bb00,LINETHICK2;
短趋势:=Ema(RSI,N1/3),COLORYELLOW,LINEDOT;
中趋势:Ema(RSI1,N1/2),COLORAAAA00,COLORMAGENTA,LINEDOT;
A1:=REF(RSI1,P)=HHV(RSI1,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);{高点}
A2:=REF(RSI1,P)=LLV(RSI1,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);{低点}
上:REF(RSI1,BARSLAST(D1)),COLORFF00FF,LINETHICK;
下:REF(RSI1,BARSLAST(D2)),COLOR00FF00,LINETHICK;
向上:CROSS(RSI1,上*1.01),LINETHICK;
相对能量:(RSI1-(上+下)/2)/(上+下)/2*100,LINETHICK;
STICKLINE(相对能量>0,50,相对能量+50,2,0),COLORRED;
STICKLINE(相对能量<0,50,相对能量+50,2,0),COLORCYAN;
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
S11:=R11>REF(R11,1);
DRAWLINE(D1,RSI1,S11,RSI1,1),COLORYELLOW;
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
U11:=T11>REF(T11,1);
DRAWLINE(D2,RSI1,U11,RSI1,1),COLOR00FF00;
STICKLINE(C>0,下,下,1,0),COLOR00FF00;
STICKLINE(C>0,上,上,1,0),COLORFF00FF;
DRAWTEXT(CROSS(RSI1,上*1.01),上,'★'),COLORRED,ALIGN0;
DRAWTEXT(CROSS(下*0.99,RSI1),下,'★'),COLORGREEN,ALIGN0;
DRAWICON(D1,RSI1,2);
DRAWICON(D2,RSI1,1);
20;50;80;
更多飞狐指标公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。
相关阅读
官方微信
文章导读
48小时排行