飞狐寻庄RSI指标公式,飞狐个股盈亏指标公式
admin888
|飞狐寻庄RSI指标公式,飞狐个股盈亏指标公式
飞狐寻庄RSI指标公式
n1:=16;P:=5;
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;
飞狐个股盈亏指标公式
佣金:=0.5;
difF :ema(CLOSE,12) - Ema(CLOSE,26);
DEA : EMA(DIFF,9);
macd: 2*(DIFF-DEA), COLORstICK;
EXPLAIN(1, STRMID(STKLABEL,1,6)),LINETHICK;
进价:=SELFDATA('持仓股');
股数:=SELFDATA('持仓量');
买入价:进价,LINETHICK,COLORFFFFFF;
保本价:进价*(1.001+佣金*2/1000)+0.001,LINETHICK,COLOR00FF00;//默认佣金:万分之五调整到自己的实际佣金盈亏:(DYNAINFO( 7)-保本价)*股数,LINETHICK,COLORFFFF;//保本价=进价*(印花税+佣金*2/1000)+0.001(过户费 可不计入)
每股盈亏:(DYNAINFO( 7)-保本价),LINETHICK,COLORFFFFFF;
A:=BARPOS; B:=DAT
acOUNT; A2:=SYSPARAM(2); A3:=SYSPARAM(3); HM:=A3-A2;
HQ:=HHV(HIGH,HM);
LQ:=LLV(LOW,HM);
ZH:=HQ[B];
ZL:=LQ[B];
Q:=(ZH-ZL)/10;
MM:=HM/100;
DW:=A=A3-ROUND(MM*95);
DRAWTEXT(DW, 0.15 ,'买入价'+NUMTOSTR(进价,2)+' 持仓量'+NUMTOSTR(股数,0)),COLORFFFFFF,ALIGN1;
DRAWTEXT(DW, -0.15 ,'保本价'+NUMTOSTR(保本价,2)+' 总盈亏'+NUMTOSTR(盈亏,2)),COLORFFFFFF,ALIGN5;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。