Rss & SiteMap

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

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

标题:[原创]反手模板

1楼
z7c9 发表于:2010/9/22 21:58:19

input:n(20,1,60,1);

le1:=1;
se1:=1;

//多头开仓
if holding=0  and le1 then begin
 buy(1,1,limitr,askprice);
end;

//空头开仓
if holding=0 and se1 then begin
 buyshort(1,1,limitr,bidprice);
end;

//多头反手
if holding>0 and se1 then begin
 sell(1,holding,limitr,bidprice);
 buyshort(1,1,limitr,bidprice);
end;

//空头反手
if holding<0 and le1 then begin
 sellshort(1,holding,limitr,askprice);
 buy(1,1,limitr,askprice);
end;

资产:asset,noaxis,colorred;
胜率:percentwin,linethick0;
次数:totaltrade,linethick0;

2楼
脑残 发表于:2010/10/23 20:59:05
模板
共2 条记录, 每页显示 10 条, 页签: [1]


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