Rss & SiteMap

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

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

标题:[交易系统]时空交易

1楼
z7c9 发表于:2011/2/27 22:10:14


 

 

input:n(11,1,20,1);
input:m(35,5,120,5);

longcond:=ref(close,1)-ref(close,n)>=m*mindiff;
longprice:=open;

shortcond:=ref(close,n)-ref(close,1)>=m*mindiff;
shortprice:=open;

if holding=0 then begin
 if longcond then
  buy(1,1,limitr,longprice);
end

if holding=0 then begin
 if shortcond then
  buyshort(1,1,limitr,shortprice);
end

if holding>0 then begin
 if time=closetime(0) then
  sell(1,holding,limitr,close);
end

if holding<0 then begin
 if time=closetime(0) then
  sellshort(1,holding,limitr,close);
end
     
收益:asset,noaxis,colormagenta;
次数:totaltrade,linethick0;
胜率:percentwin,linethick0;
连亏:maxseqloss,linethick0;
连赢:maxseqwin,linethick0;

[此贴子已经被作者于2011-10-3 11:23:10编辑过]
2楼
a7777 发表于:2013/1/29 21:38:56
图片点击可在新窗口打开查看
共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01404 s, 2 queries.