飞狐BIAS趋势参考公式源码是什么?
2016-4-22 15:13:09 股票入门 http://rumen.southmoney.com
飞狐BIAS趋势参考公式源码是什么?附:飞狐一目均衡表Ichimoku云图主图公式源码 南方财富网小编为您提供
【飞狐BIAS趋势参考公式源码】
var1:=(H+L+2*C)/4;
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">擒龙线1:=ma(hhv(var1,10) ,20);
擒龙线3:=ma(llv(var1,10) ,20);
擒龙线2:=(擒龙线1+擒龙线3)/2;
BIAS3 :(var1-擒龙线2)/擒龙线2*100,colorffffff,LINETHICK1;
fillrgn(1,ma(hhv(BIAS3,20) ,BARSCOUNT(hhv(BIAS3,20))),ma(llv(BIAS3,20) ,BARSCOUNT(hhv(BIAS3,20)))),color223322;
(var1-擒龙线2)/擒龙线2*100,color00ffff,LINETHICK1;
t:ma(hhv(BIAS3,20) ,BARSCOUNT(hhv(BIAS3,20))),colorCC00;
d:ma(llv(BIAS3,20) ,BARSCOUNT(hhv(BIAS3,20))),colorCC00;
z:(t+d)/2,color000000;
t+0.809*(t-d),colorff00ff,POINTDOT;
t+0.618*(t-d),colorff00ff,POINTDOT;
t+0.382*(t-d),colorff00ff;
d-0.809*(t-d),colorffff00,POINTDOT;
d-0.618*(t-d),colorffff00,POINTDOT;
d-0.382*(t-d),colorffff00;
z+0.618*(t-z),colorCC00,POINTDOT;
z-0.618*(t-z),colorCC00,POINTDOT;
p1:=min(count(c,0),3);
p2:=min(count(c,0),5);
p3:=min(count(c,0),8);
p4:=min(count(c,0),13);
p5:=min(count(c,0),21);
p6:=min(count(c,0),34);
p7:=min(count(c,0),55);
p8:=min(count(c,0),60);
p9:=min(count(c,0),55);
p10:=min(count(c,0),25);
SW1:=(eMA(BIAS3 ,5)*7+eMA(BIAS3 ,10)*3)/10;
bbi3:= SW1-AVEDEV(BIAS3 , 5);
bbi4:= SW1+AVEDEV(BIAS3 , 5);
g1:=hhv(bbi3,p1);
g2:=hhv(bbi3,p2);
g3:=hhv(bbi3,p3);
g4:=hhv(bbi3,p4);
g5:=hhv(bbi3,p5);
g6:=hhv(bbi3,p6);
g7:=hhv(bbi3,p7);
hjx2:(g1+g2+g3+g4+g5+g6+g7)/7, LINETHICK1,color00FF;
d1:=llv(bbi4,p1);
d2:=llv(bbi4,p2);
d3:=llv(bbi4,p3);
d4:=llv(bbi4,p4);
d5:=llv(bbi4,p5);
d6:=llv(bbi4,p6);
d7:=llv(bbi4,p7);
hjx3:(d1+d2+d3+d4+d5+d6+d7)/7, LINETHICK1,color00FF;
PARTLINE(BIAS3 < hjx2,hjx2), LINETHICK2,colorFF4400;
PARTLINE(BIAS3 < hjx3,hjx3), LINETHICK2,colorFF4400;
附:【飞狐一目均衡表Ichimoku云图主图公式源码】
{M5 72-144-288}
{时 120-240-480(极好) 或 12-24-120}
{日 5-10-20 或 7-22-44 或 9-26-52(经典)}
{周 9-26-52}
input:N1(9,3,150,1),N2(26,5,300,1),N3(52,15,600,1);
转换线1:=(hhV(h,N1)+LLV(L,N1))/2;
基准线1:=(hhV(h,N2)+LLV(L,N2))/2;
先行带A:REF((转换线1+基准线1)/2,N2),COLOR000088,LINETHICK2;
先行带B:REF((hhV(h,N3)+LLV(L,N3))/2,N2),COLOR005500,LINETHICK2;
FILLRGN(先行带A>先行带B,先行带A,先行带B),COLOR555555;
FILLRGN(先行带A<先行带B,先行带A,先行带B),COLOR333333;
转换线:转换线1;
基准线:基准线1;
迟行带:=REFX(c,N2);
PARTLINE(DATACOUNT-BARPOS>N2-1,迟行带),COLORAD9B47;
KLINE(o,h,L,c,0);
更多飞狐指标公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。