Rss & SiteMap

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

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

标题:请教高手

1楼
kongfzchina 发表于:2013/7/8 9:43:26
我想卖在买一 买在卖一,如何修改下面的下单组件

longcond:=a;
shortcond:=b;;

if holding=0 then begin
 if longcond then
  buy(1,N1,THISCLOSE);
end

if holding=0 then begin
 if shortcond then
  buyshort(1,N1,THISCLOSE);
end

if holding>0 then begin
 if shortcond then begin
  sell(1,holding,THISCLOSE);
  buyshort(1,N1,THISCLOSE);
 end 
 

end

if holding<0 then begin
 if longcond then begin
  sellshort(1,holding,THISCLOSE);
  buy(1,N1,THISCLOSE);
 end

end











收益:asset,noaxis,colorred;
次数:totaltrade,linethick0;
胜率:percentwin,linethick0;
连亏:maxseqloss,linethick0;
连赢:maxseqwin,linethick0;
2楼
fly 发表于:2013/7/8 10:22:44
类似这样改写,就是当时的对手价下单 
buyshort(1,N1,LIMIT,C-MINDIFF); 
 
 buy(1,N1,LIMIT,C+MINDIFF);
 
 
3楼
kongfzchina 发表于:2013/7/8 11:07:00
谢谢
共3 条记录, 每页显示 10 条, 页签: [1]


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