Rss & SiteMap

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

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

标题:问一个问题。

1楼
系统使用者 发表于:2012/10/19 12:00:04

if holding=0 then begin
 if  x+y>0 then
  buy(1,30%,limitr,open-0.2);
end
if holding=0 then begin
 if x+y<0 then
  buyshort(1,30%,limitr,open-0.2); 
end

if holding>0 then begin
 if x+y<0 then begin
  sell(1,holding,limitr,open-0.2);
  buyshort(1,30%,limitr,open-0.2);
 end
end
if holding<0 then begin
 if x+y>0 then begin
  sellshort(1,holding,limitr,open-0.2);
  buy(1,30%,limitr,open-0.2);
 end
end

 

这样设计是否可以在信号出现的时候开盘价能成交?

2楼
系统使用者 发表于:2012/10/19 12:22:39

或者直接使用滑点

variable:DHcDs=1;{多、空单滑点数}

if holding=0 then begin
 if  x+y>0 then
  buy(1,30%,limitr,open-DHcDs);
end
if holding=0 then begin
 if x+y<0 then
  buyshort(1,30%,limitr,open-DHcDs); 
end

if holding>0 then begin
 if x+y<0 then begin
  sell(1,holding,limitr,open-DHcDs);
  buyshort(1,30%,limitr,open-DHcDs);
 end
end
if holding<0 then begin
 if x+y>0 then begin
  sellshort(1,holding,limitr,open-DHcDs);
  buy(1,30%,limitr,open-DHcDs);
 end
end

 

这样写可以否?

3楼
jinzhe 发表于:2012/10/19 13:29:42

会以指定价报单,具体以什么价成交要看具体交易了

4楼
sunjunwin 发表于:2012/10/20 20:56:17

滑点肯定是有的 只不过滑点的话我能想到的也就用限价单来控制下 别无她发 求个大侠指教

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


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