Rss & SiteMap

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

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

标题:改交易模型

1楼
系统使用者 发表于:2014/7/23 11:59:16
hld[n]:=0;
for i=n+1 to DATACOUNT do begin
IF fkc[i]>mhn[i-1] then hld[i]:=1; 
else 
IF fkc[i]<mln[i-1] then hld[i]:=-1;
else
hld[i]:=hld[i-1];
end;

改序列模型为逐K

2楼
jinzhe 发表于:2014/7/23 13:22:15
第一句改成variable:hld=0;
3楼
系统使用者 发表于:2014/7/23 13:42:50
改了也没有用,不显示结果
4楼
系统使用者 发表于:2014/7/23 13:45:18
variable:hld=0;
fkc:= c;
mhn:=h;
mln:=l;
for i=n+1 to DATACOUNT do begin
IF fkc[i]>mhn[i-1] then hld[i]:=1; 
else 
IF fkc[i]<mln[i-1] then hld[i]:=-1;
else
hld[i]:=hld[i-1];
end;
hilo:IF(hld=-1,mhn,mln);
5楼
jinzhe 发表于:2014/7/23 13:48:52
n是多少?
6楼
系统使用者 发表于:2014/7/23 14:04:07
5
7楼
jinzhe 发表于:2014/7/23 14:34:06

variable:hld=0;
fkc:=c;
mhn:=h;
mln:=l;
r1:=ref(mhn,1);
r2:=ref(mln,1);


if barpos>=6 then begin
 if fkc>r1 then hld:=1;
 if fkc<r2 then hld:=-1;
end
hh:hld;


hilo:IF(hld=-1,mhn,mln);

8楼
系统使用者 发表于:2014/7/23 22:49:57
结构错误,不一样
9楼
系统使用者 发表于:2014/7/23 22:50:28
variable:hld=0;
fkc:= c;
mhn:=h;
mln:=l;
for i=6+1 to DATACOUNT do begin
IF fkc[i]>mhn[i-1] then hld[i]:=1; 
else 
IF fkc[i]<mln[i-1] then hld[i]:=-1;
else
hld[i]:=hld[i-1];
end;
hilo:IF(hld=-1,mhn,mln);
10楼
jinzhe 发表于:2014/7/24 8:43:02
按照你的意思改了,不然你用逐k线循环实现不了
共10 条记录, 每页显示 10 条, 页签: [1]


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