飞狐趋势牛股选股指标公式,飞狐顾比K线主图指标公式
admin888
|飞狐趋势牛股选股指标公式,飞狐顾比K线主图指标公式
飞狐趋势牛股选股指标公式
AP0:=SMA(C,3,1),COLORRED;
AP1:=(55*AP0+34*REF(AP0,1)+21*REF(AP0,2)+13*REF(AP0,3)+8*REF(AP0,4)+5*REF(AP0,5)
+3*REF(AP0,6)+2*REF(AP0,7)+REF(AP0,8)+REF(AP0,9))/143;
AP2:=REF(AP1,1);
XA:=0.5*(AP1+AP2),COLORRED;
ZD0:=Sma(C,5,1),COLORRED;
ZD1:=(55*ZD0+34*REF(ZD0,1)+21*REF(ZD0,2)+13*REF(ZD0,3)+8*REF(ZD0,4)+5*REF(ZD0,5)
+3*REF(ZD0,6)+2*REF(ZD0,7)+REF(ZD0,8)+REF(ZD0,9))/143;
ZD2:=REF(ZD1,1);
XA1:=0.5*(ZD1+ZD2),COLORYELLOW;
H0:=SMA(C,8,1);
H1:=(55*H0+34*REF(H0,1)+21*REF(H0,2)+13*REF(H0,3)+8*REF(H0,4)+5*REF(H0,5)
+3*REF(H0,6)+2*REF(H0,7)+REF(H0,8)+REF(H0,9))/143;
H2:=REF(H1,1);
XA2:=0.5*(H1+H2),COLORMAGENTA;
{DRAWBAND(H1,RGB(255,255,0),H2,RGB(0,0,255));
stICKLINE(H1>H2,H1,H2,10,0),COLORYELLOW;}
DZ0:=SMA(C,13,1);
DZ1:=(55*DZ0+34*REF(DZ0,1)+21*REF(DZ0,2)+13*REF(DZ0,3)+8*REF(DZ0,4)+5*REF(DZ0,5)
+3*REF(DZ0,6)+2*REF(DZ0,7)+REF(DZ0,8)+REF(DZ0,9))/143;
DZ2:=REF(DZ1,1);
XA3:=0.5*(DZ1+DZ2),COLORWHITE;
ZX0:=SMA(C,21,1);
ZX1:=(55*ZX0+34*REF(ZX0,1)+21*REF(ZX0,2)+13*REF(ZX0,3)+8*REF(ZX0,4)+5*REF(ZX0,5)
+3*REF(ZX0,6)+2*REF(ZX0,7)+REF(ZX0,8)+REF(ZX0,9))/143;
ZX2:=REF(ZX1,1);
XA4:=0.5*(ZX1+ZX2),COLORGREEN;
I0:=SMA(C,34,1);
I1:=(55*I0+34*REF(I0,1)+21*REF(I0,2)+13*REF(I0,3)+8*REF(I0,4)+5*REF(I0,5)
+3*REF(I0,6)+2*REF(I0,7)+REF(I0,8)+REF(I0,9))/143;
I2:=REF(I1,1);
XA5:=0.5*(I1+I2),COLORCYAN;
CX0:=SMA(C,55,1);
CX1:=(55*CX0+34*REF(CX0,1)+21*REF(CX0,2)+13*REF(CX0,3)+8*REF(CX0,4)+5*REF(CX0,5)
+3*REF(CX0,6)+2*REF(CX0,7)+REF(CX0,8)+REF(CX0,9))/143;
CX2:=REF(CX1,1);
XA6:=0.5*(CX1+CX2),COLORBLUE;
CC0:=SMA(C,89,1);
CC1:=(55*CC0+34*REF(CC0,1)+21*REF(CC0,2)+13*REF(CC0,3)+8*REF(CC0,4)+5*REF(CC0,5)
+3*REF(CC0,6)+2*REF(CC0,7)+REF(CC0,8)+REF(CC0,9))/143;
CC2:=REF(CC1,1);
XA7:=0.5*(CC1+CC2),COLORGREEN,LINETHICK2;
TC0:=SMA(C,144,1);
TC1:=(55*TC0+34*REF(TC0,1)+21*REF(TC0,2)+13*REF(TC0,3)+8*REF(TC0,4)+5*REF(TC0,5)
+3*REF(TC0,6)+2*REF(TC0,7)+REF(TC0,8)+REF(TC0,9))/143;
TC2:=REF(TC1,1);
XA8:=0.5*(TC1+TC2),COLORMAGENTA,LINETHICK2;
A0:=IF(XA>REF(XA,1),1,0);
A1:=IF(XA>=XA1,1,0);
A2:=IF(XA1>=XA2,1,0);
A3:=IF(XA2>=XA3,1,0);
A31:=IF(XA3>=XA4,1,0);
A32:=IF(XA4>=XA5,1,0);
A33:=IF(XA5>=XA6,1,0);
A34:=IF(XA6>=XA7,1,0);
A35:=IF(XA7>=XA8,1,0);
A4:=IF(XA3>=REF(XA3,1),1,0);
A5:=IF(XA4>=REF(XA4,1),1,0);
A6:=IF(XA5>=REF(XA5,1),1,0);
A7:=IF(XA2>=REF(XA2,1),1,0);
A8:=IF(XA6>=REF(XA6,1),1,0);
A9:=IF(XA7>=REF(A7,1),1,0);
A10:=IF(XA8>=REF(XA8,1),1,0);
A11:=IF(XA1>=REF(XA1,1),1,0);
A12:=IF(AP0>XA,1,0);
A13:=IF(AP0>REF(AP0,1),1,0);
B1:=IF(XA
B2:=IF(XA1
B3:=IF(XA2
B31:=IF(XA3
B32:=IF(XA4
B33:=IF(XA5
B34:=IF(XA6
B35:=IF(XA7
B12:=IF(AP0<=XA,-1,0);
B13:=IF(AP0<=REF(AP0,1),-1,0);
日趋势:=((A0+A1+A2+A3+A31+A32+A33+A34+A35+A4+A5+A6+A7+A8+A9+A10+A11+A12+A13+B0+B1+B2+B3+B31+B32+B33+B34+B35+B4+B5+B6+B7+B8+B9+B10+B11+B12+B13)/38)*200,COLORRED,LINETHICK2;
XG:crOSS(日趋势,90);
飞狐顾比K线主图指标公式
//DRAWGBK(1,COLORRGB(240,240,240),COLORRGB(240,240,240),0);
{--------------------均线组----------------}
{18日收盘均价为安全线}ema(close,18),COLOR006600,LINETHICK4;
安全生命线:Ema(close,18),COLOR00CC00,LINETHICK2;
MA1:ema(close,3),COLORRED,LINETHICK2;
MA2:ema(close,5),color009900;
MA3:ema(close,8),color00aa00;
MA4:ema(close,10),COLOR00bb00;
MA5:ema(close,12),COLOR00CC00;
MA6:ema(close,15),COLOR00DD00;
MA7:ema(close,30),COLOR990099;
MA8:ema(close,35),COLORAA00AA;
MA9:ema(close,40),COLORBB00BB;
MA10:ema(close,45),COLORCC00CC;
MA11:ema(close,50),COLORDD00DD;
MA12:ema(close,60),COLOREE00EE;
eMA(close,3),COLORYELLOW,LINETHICK1;
{-------顾比倒数------------}
ff:=l;
fhf:=h;
fgf:=h;
ftf:=l;
fdf:=l;
zdtf:=c;
zqf:=c;
zqtf:=c;
{顾比倒数进场}<%
f=ffl.vardata("ff")
fh=ffl.vardata("fhf")
fg=ffl.vardata("fgf")
ft=ffl.vardata("ftf")
fd=ffl.vardata("fdf")
zq=ffl.vardata("zqf")
zqt=ffl.vardata("zqtf")
zdt=ffl.vardata("zdtf")
zq(1)=0
zq(2)=0
zqt(1)=0
zqt(2)=0
tj=0
n=ubound(f)
for i=2 to n
k1=0
k2=0
k3=0
ii=i-2
for j=ii to 2
step -1
if f(j)
k1=j
exit for
end if
next
j=k1-1
while j>=0 and tj=0
if fh(j)>fh(k1) then
k2=j
tj=1
else
j=j-1
end if
wend
j=k2-1
tj=0
while j>=0 and tj=0
if fh(j)>fh(k2) then
k3=j
tj=1
else
j=j-1
end if
wend
if k3>0 then
fg(i)=fh(k3)
zq(i)=k3
else
fg(i)=fg(i-1)
zq(i)=zq(i-1)+1
end if
next
ffl.vardata("fgf")=fg
ffl.vardata("zqf")=zq'
止损线'
for i=2 to n
k1=0
k2=0
k3=0
ii=i-2
for j=ii to 2 step -1
if fh(j)>fh(j-1) and fh(j)>fh(j-2) and fh(j)>fh(j+1) and fh(j)>fh(j+2) then
k1=j
exit for
end if
next
tj=0
j=k1-1
while j>=0 and tj=0
if fh(j)
k2=j
tj=1
else
j=j-1
end if
wend
if k2>0 then
fd(i)=fh(k2)
zdt(i)=k2
else
fd(i)=fd(i-1)
zdt(i)=zdt(i-1)+1
end if
j=k2-1
tj=0
while j>0 and tj=0
if fh(j)
k3=j
tj=1
else
j=j-1
end if
wend
if k3>0 then
ft(i)=fh(k3)
zqt(i)=k3
else
ft(i)=ft(i-1)
zq(i)=zqt(i-1)+1
end if
next
ffl.vardata("ftf")=ft
ffl.vardata("fdf")=fd
ffl.vardata("zqtf")=zqt
ffl.vardata("zdtf")=zdt
%>
离场线:ftf,linethick1,COLORWHITE,LINEDOT;//如果想把止损位提高,可选第二根
k线
做参考线,把ftf改成fdf就可以了;
顾比倒数:fgf,COLOR0066FF,LINEDOT;
{-----------------------------立体K线--------------------------------------}
KC:=close;
KO:=ref(close,1);
STICKLINE(ko
STICKLINE(ko>=kc,LOW,HIGH,0.5 ,0 ),COLOR999900;
STICKLINE(ko>=kc ,CLOSE ,OPEN,7,0 ),COLOR665500;
STICKLINE(ko>=kc ,CLOSE ,OPEN,5,0 ),COLOR999900;
STICKLINE(ko
STICKLINE(ko
{-----------买卖点----------------------}
Eee:=IF(cross(c,ma4) and cross(c,安全生命线),1,0);
短3:=EMA(CLOSE,3);
长30:=EMA(CLOSE,30) ,COLORRED;
K60:=EMA(CLOSE,60) ,COLORGREEN;
VV:=CROSS(短3,K60) AND K60>REF(K60,1);
VV1:=CROSS(短3,长30) AND 长30>REF(长30,1);
XG2:=IF(VV,1,0);
XG1:=IF(VV1,1,0);
转势:=(XG2 OR XG1);
DRAWTEXT(转势 and Eee and CROSS(CLOSE,顾比倒数),LOW*0.95,'趋势买'),COLORMAGENTA;
DRAWTEXT(转势,LOW*0.92,'搏短'),colorred;
//DRAWTEXT(cross(c,ma2) and cross(c,ma4),LOW*0.92,'短买'),colorred;
//DRAWTEXT(cross(离场线,c),H*1.05,'离场'),colorred;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。