Rss & SiteMap

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

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

标题:代码测试无结果,请帮忙看一下是什么原因,谢谢

1楼
huifeng623 发表于:2012/5/22 10:53:27

if (ref(c,1)<j and c>=j and time>t) then
begin
buy(HOLDING=0,4,LIMIT,c);
end

if (HOLDING>0 and time>t) then
begin
sell(c-ENTERPRICE>=a*y or ENTERPRICE-c>=a*s,4,LIMIT,c);
end

if (ref(c,1)>j and c<=j and time>t) then
begin
buyshort(HOLDING=0,4,limit,c);
end

if (HOLDING<0 and time>t) then
begin
sellshort(ENTERPRICE-c>=a*y or c-ENTERPRICE>=a*s,4,limit,c);
end

 

其中,j,t,s,y等都是参数,选择的是CU08,保证金比例15%,手续费0.016%,没有使用平仓条件

2楼
just 发表于:2012/5/22 10:55:26

把你的参数设置一并附上。

共2 条记录, 每页显示 10 条, 页签: [1]


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