Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:高人帮忙翻译个飞狐公式变成金字塔的

1楼
winewine99 发表于:2010/7/31 18:56:51
 INPUT:N(10,1,100);
fc:=c;fo:=o;cc:0*c,LINETHICK;oo:0*c,LINETHICK;t1:=0*c;t2:=0*c; fc:=c;fo:=o;cc:0*c,LINETHICK;oo:0*c,LINETHICK;t1:=0*c;t2:=0*c;
for i=1 to datacount do begin for i=1 to datacount do begin
if i=1 then begin if i=1 then begin
cc[i]:=fc[i]; cc[i]:=fc[i];
oo[i]:=fc[i]; oo[i]:=fc[i];
end else begin end else begin
cc[i]:=cc[i-1]; cc[i]:=cc[i-1];
oo[i]:=oo[i-1]; oo[i]:=oo[i-1];
if fc[i]>cc[i]*(1+n/100) then begin if fc[i]>cc[i]*(1+n/100) then begin
cc[i]:=cc[i-1]*(1+n/100); cc[i]:=cc[i-1]*(1+n/100);
oo[i]:=cc[i-1]; oo[i]:=cc[i-1];
end; end;
if fc[i]<oo[i]/(1+n/100) then begin if fc[i]<oo[i]/(1+n/100) then begin
oo[i]:=oo[i-1]/(1+n/100); oo[i]:=oo[i-1]/(1+n/100);
cc[i]:=oo[i-1]; cc[i]:=oo[i-1];
end; end;
if oo[i]=oo[i-1] then if oo[i]=oo[i-1] then
t1[i]:=t1[i-1]+1; t1[i]:=t1[i-1]+1;
if cc[i]=cc[i-1] then if cc[i]=cc[i-1] then
t2[i]:=t2[i-1]+1; t2[i]:=t2[i-1]+1;
end; end;
end; end;
o1:=ref(oo,t1+1); o1:=ref(oo,t1+1);
c1:=ref(cc,t2+1); c1:=ref(cc,t2+1);
STICKLINE(c1=oo,cc,oo,8,1),COLORRED; STICKLINE(c1=oo,cc,oo,8,1),COLORRED;
STICKLINE(o1=cc,cc,oo,8,1),COLORCYAN; STICKLINE(o1=cc,cc,oo,8,1),COLORCYAN;
2楼
admin 发表于:2010/7/31 21:46:31
此多重未来数据数组的公式系统,无法在目前的架构的金字塔下运行,请等待日后升级版
3楼
winewine99 发表于:2010/8/1 9:51:47
谢谢版主回复
共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.02344 s, 3 queries.