设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

飞狐峰谷均线主图公式源码是什么?

2016-6-2 11:21:31 股票入门 http://rumen.southmoney.com

飞狐峰谷均线主图公式源码是什么?附:飞狐亚当理论指标公式 南方财富网小编为您提供


【飞狐峰谷均线主图公式源码】

input: N(55,1,100);
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">AA:=REF(H,N)=HHV(H,2*N+1); 
BB:=BACKSET(AA,N+1);//未来涵数 “BACKSET”
CC:=FILTER(BB,N) AND H=HHV(H,N+1);
AA2:=REF(L,N)=LLV(L,2*N+1); 
BB2:=BACKSET(AA2,N+1);
CC2:=FILTER(BB2,N) AND L=LLV(L,N+1);
AA3:=REF(H,2*N)=HHV(H,4*N+1);
BB3:=BACKSET(AA3,2*N+1);
CC3:=FILTER(BB3,2*N) AND H=HHV(H,2*N+1);
AA4:=REF(L,2*N)=LLV(L,4*N+1);
BB4:=BACKSET(AA4,2*N+1);
CC4:=FILTER(BB4,2*N) AND L=LLV(L,2*N+1);
a1:=BARSLAST(CC); 
M1:ma(h,a1+1),PRECISION2,LINETHICK0,COLORYELLOW; 
PARTLINE(a1>0,M1),COLORYELLOW;
a11:=ref(a1,a1+1); 
M2:ma(h,a11+a1),PRECISION2,LINETHICK0,COLORCYAN;
PARTLINE(a1>0,M2),COLORCYAN;
a2:=BARSLAST(CC2);
M3:ma(l,a2+1),PRECISION2,LINETHICK0,COLORMAGENTA;
PARTLINE(a2>0,M3),PRECISION2,COLORMAGENTA;
a22:=ref(a2,a2+1); 
M4:ma(l,a22+a2),PRECISION2,LINETHICK0,COLORWHITE;
PARTLINE(a2>0,M4),COLORWHITE;
a3:=BARSLAST(CC3);
M5:ma(h,a3+1),PRECISION2,LINETHICK0,COLORBLUE;
PARTLINE(a3>0,M5),COLORBLUE;
a4:=BARSLAST(CC4);
M6:ma(l,a4+1),PRECISION2,LINETHICK0,COLORGREEN;
PARTLINE(a4>0,M6),COLORGREEN;

附:【飞狐亚当理论指标公式】

HH:=HIGH; LL:=LOW; OO:=OPEN; CC:=CLOSE;
<%
vh=ffl.vardata("hh")
vl=ffl.vardata("ll")
vo=ffl.vardata("oo")
vc=ffl.vardata("cc")
last=ubound(vh)
if last<101 then
b=last+1
else
b=0
for i=last-101 to last-51
vh(i)=vh(i+51)
vl(i)=vl(i+51)
vo(i)=vo(i+51)
vc(i)=vc(i+51)
next
a=(vh(last-51)+vl(last-51))/2
j=1
for i=last-49 to last
j=j+2
vh(i)=2*a-vl(i-j)
vl(i)=2*a-vh(i-j)
vo(i)=2*a-vc(i-j)
vc(i)=2*a-vo(i-j)
next
end if
ffl.vardata("hh")=vh
ffl.vardata("ll")=vl
ffl.vardata("oo")=vo
ffl.vardata("cc")=vc
ffl.varstartindex("hh")=b
ffl.varstartindex("ll")=b
ffl.varstartindex("oo")=b
ffl.varstartindex("cc")=b
%>
A:=BACKSET(ISLASTBAR,50);
STICKLINE(A AND CC>=OO,OO,CC,6,1),COLORMAGENTA,SHIFT50;
STICKLINE(A AND CC>=OO,LL,OO,0.1,1),COLORMAGENTA,SHIFT50;
STICKLINE(A AND CC>=OO,CC,HH,0.1,1),COLORMAGENTA,SHIFT50;
STICKLINE(A AND CC<OO,OO,CC,6,0),COLORGREEN,SHIFT50;
STICKLINE(A AND CC<OO,LL,HH,0.1,0),COLORGREEN,SHIFT50;
VERTLINE(ISLASTBAR),COLORYELLOW,POINTDOT;

更多飞狐公式源码相关资讯请关注南方财富网

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。