飞狐保护神指标公式,飞狐长江珠江指标公式
admin888
|飞狐保护神指标公式,飞狐长江珠江指标公式
飞狐保护神指标公式
DRAWGBK(CLOSE,COLORRGB(36,68,36),COLORRGB(100,100,100),1);
XDJ1:=LLV(LOW,13);
XDJ2:=ema(((3*CLOSE+HIGH+LOW+OPEN)/6-XDJ1)/(HHV(HIGH,13)-XDJ1),8);
XDJ3:=Ema(XDJ2,2)*100;
CD1:=REF(CLOSE,1)/CLOSE;
CD2:=(1-MA(LOW,3)/(MA((HIGH+LOW+2*CLOSE)/4,20)))*100-5;
CD3:=(MA(HIGH,3)/(MA((HIGH+LOW+2*CLOSE)/4,20))-1)*100-5;
CD4:=IF(CD2>0,CD2*(REF((HIGH+LOW+2*CLOSE)/4,3))/CLOSE,0);
HZ1:=MA(LOW,2)*0.96;
HZ2:=MA(LOW,26)*0.85;
HZ3:=IF(REF(HZ1,1)
铁底:=MA(LOW,30)*0.85;
N1:=SYSPARAM(3);
N2:=SYSPARAM(2);
N3:=N1-N2+1;
HH:=HHV(XDJ3,N3);
LL:=LLV(XDJ3,N3);
高:=HH[N1]*0.9;
中:=(HH[N1]+LL[N1])/2;
低:=LL[N1]*1.3;
最低:=LL[N1];
Y:=HHV(ol,N1-N2+1);
YVB:=Y[N1]/(HH[N1]-LL[N1]+MINdifF);
Z:=VOL/YVB+LL[N1];
Z_1:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100-50;
Z_2:=SMA(Z_1,3,1);
Z_3:=EMA(3*Z_2-2*SMA(Z_2,3,1),6);
Z_4:=(Z_3-REF(Z_3,1))*3;
ZJ1:=dma((HIGH+LOW+CLOSE*2)/4,0.9);
ZJ2:=VOL/((HIGH-LOW)*2-(Abs(CLOSE-OPEN)));
ZJ3:=(IF(CLOSE>OPEN,ZJ2*(HIGH-LOW),IF(CLOSE
ZJ4:=ZJ3/20/1.15;
ZJ5:=ZJ4*0.55+REF(ZJ4,1)*0.33+REF(ZJ4,2)*0.22;
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:=SUM(VOL*CLOSE,1)/SUM(VOL,1);
QJ2:=EMA(QJ1,13);
QJ3:=FORCAST((QJ1-QJ2)*100/QJ1,5);
XLA:=CLOSE>=REF(CLOSE,1) AND REF(CLOSE,1)>=REF(CLOSE,2) AND REF(CLOSE,1)<=REF(CLOSE,3) AND REF(CLOSE,2)<=REF(CLOSE,3) AND (REF(CLOSE,4)>REF(CLOSE,2) OR REF(CLOSE,4)<=REF(CLOSE,2) AND REF(CLOSE,5)>=REF(CLOSE,3)) OR CLOSE>=REF(CLOSE,1) AND REF(CLOSE,1)<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,2) AND (REF(CLOSE,3)>REF(CLOSE,1) OR REF(CLOSE,3)<=REF(CLOSE,1) AND REF(CLOSE,4)>=REF(CLOSE,2));
STICKLINE(ZJ6<=0,0,最低+Z/2,5,1),colorFCFF00;
STICKLINE(CD4>0,0,最低+Z/2,5,0),colorFFB0FF;
STICKLINE(CD4>0,0,(最低+Z/2)*0.8,5,0),colorFF8CFF;
STICKLINE(CD4>0,0,(最低+Z/2)*0.6,5,0),colorFF59FF;
STICKLINE(CD4>0,0,(最低+Z/2)*0.4,5,0),colorFF18FF;
STICKLINE(CD4>0,0,(最低+Z/2)*0.2,5,0),color1DFF;
STICKLINE(HZ3,0,最低+Z/2,5,0),colorFF00;
STICKLINE(HZ3,0,(最低+Z/2)*0.8,5,0),color33CC00;
STICKLINE(HZ3,0,(最低+Z/2)*0.6,5,0),color339900;
STICKLINE(HZ3,0,(最低+Z/2)*0.4,5,0),color337700;
STICKLINE(HZ3,0,(最低+Z/2)*0.2,5,0),color5500;
STICKLINE(ZJ6>=0,0,最低+Z/2,5,1),color5050FF;
STICKLINE(CLOSE<铁底,Z/2,最低+Z/2,5,0),color808080;
PARTLINE(CLOSE,高),POINTDOT,color808080;
PARTLINE(CLOSE,中),POINTDOT,color808080;
PARTLINE(CLOSE,低),POINTDOT,colorFFFFFF;
强:FORCAST(XDJ3,5),LINETHICK0,PRECISION2,colorFF;
弱:=FORCAST(REF(XDJ3,1),5);
PARTLINE(CLOSE,强),LINETHICK2,colorFF;
PARTLINE(强<弱,强),LINETHICK2,colorFF0000;
区界:REF(LLV(XDJ3,T2),T1),LINEDOT,PRECISION2,colorFFFF;
换手率:IF(CAPITAL=0,VOL/SUM(VOL,100)*100,VOL/FINANCE(7)),LINETHICK0,PRECISION2,colorFF00FF;
涨跌幅:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,LINETHICK0,PRECISION2,colorFFBBFF;
GDT2:=FINANCE(0);
XXX:=STRTONUM(STRRIGHT(NUMTOSTR(FINANCE(0),0),2));
NN:=IF(XXX>11 OR XXX<3,1,IF(BETWEEN(XXX,2.9,6),4,IF(BETWEEN(XXX,5.9,9),2,4/3)));
市赢率:CLOSE/(FINANCE(33)*NN),LINETHICK0,PRECISION2,colorFFFF00;
市净率:CLOSE/FINANCE(34),LINETHICK0,PRECISION2,colorFF8500;
DRAWTEXT(XH,强*0.86,' ↑ \n★'),ALIGN0,color89FF;
DRAWTEXT(BARPOS=SYSPARAM(2),高,'高位: '+NUMTOSTR(高,2)),PXUP26,color808080;
DRAWTEXT(BARPOS=SYSPARAM(2),中,'中位: '+NUMTOSTR(中,2)),PXUP26,color808080;
DRAWTEXT(BARPOS=SYSPARAM(2),最低*0.68,'低位: '+NUMTOSTR(低,2)),PXUP8,colorFFFFFF;
PARTLINE(WHX,中*0.9),color8585FF;
DRAWTEXT(WTS,中*0.88,'稳定天数:'+NUMTOSTR(WT[SYSPARAM(1)],0)+'(天) '),ALIGN2,PXDN6,color8585FF;
PARTLINE(RANGE(BARPOS,SYSPARAM(1),SYSPARAM(3)+3),中*(1.1)),color5BBBB5;
DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(1),中*1.2,' 倒数: '+NUMTOSTR(B[SYSPARAM(1)],0)+'(天) '+' \n 累计换手:'+NUMTOSTR(HS,2)+'% '),ALIGN2,PXUP18,color5BBBB5;
飞狐长江珠江指标公式
LC:=REF(CLOSE,1);
rsi:=SMA(maX(CLOSE-LC,0),21,1)/SMA(A(CLOSE-LC),21,1)*100;
JW1:=ema(RSI,8)-EMA(RSI,17);
G1:1.5*JW1;
G3:=LLV(LOW,20);
G4:=HHV(HIGH,20);
G5:=MA((CLOSE-G3)/(G4-G3)*100,12);
G6:=MA(G5,6);
G7:=(G5-G6)/2;
PARTLINE(G1>0 AND G1>REF(G1,1),G1),COLORRED;
水到渠成:G7,COLOR00B0B0,LINETHICK2;
FILLRGN(水到渠成>G1,G1,水到渠成),COLORBROWN;
FILLRGN(水到渠成
G2:1.5*JW1,COLORstICK;
DRAWTEXT(FILTER(JW1>0,20),HHV(G7,60),'长江'),COLOR999999;
DRAWTEXT(FILTER(JW1<0,20),LLV(G7,60),'珠江'),COLOR00F080;
DRAWTEXT(FILTER(crOSS(JW1,0),10),0,'源头'),COLORDD22DD;
DRAWICON(FILTER(CROSS(G7,0),10),0,4);
DRAWICON(FILTER(CROSS(0,G7),10),0,5);
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。