Rss & SiteMap

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

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

标题:满仓开单 仓位对不上

1楼
kiiik 发表于:2012/9/27 13:59:25
 if cond2 and time <145500 then
begin
 if holding=0 then buyshort(1,market);
 if holding>0  then
   begin
   sell(1,0,market);
   buyshort(1,market);   
  end
end

if cond1 and time <145500 then
begin
 if holding=0 then buy(1,market);
 if holding<0  then
   begin
   sellshort(1,0,market);
   buy(1,market);   
  end
end

2楼
jinzhe 发表于:2012/9/27 14:02:49
下单函数里面的下单手数没有写,
3楼
kiiik 发表于:2012/9/27 15:18:06
 0,或 省略不是满仓吗?

4楼
kiiik 发表于:2012/9/27 15:18:57
 if cond2 and time <145500 then
begin
 if holding=0 then buyshort(1,0,market);
 if holding>0  then
   begin
   sell(1,0,market);
   buyshort(1,0,market);   
  end
end

if cond1 and time <145500 then
begin
 if holding=0 then buy(1,0,market);
 if holding<0  then
   begin
   sellshort(1,0,market);
   buy(1,0,market);   
  end
end
5楼
kiiik 发表于:2012/9/27 15:20:07
填写 0,也是半仓 不是满仓。那里错了。帮忙改下
6楼
jinzhe 发表于:2012/9/27 15:21:34
图表上多少手,下单了多少手?
7楼
kiiik 发表于:2012/9/27 16:27:45
 能开22手。只开11手
8楼
王锋 发表于:2012/9/27 16:34:09
公式属性里, 设置好初始资金,保证金和费率
9楼
kiiik 发表于:2012/9/27 16:40:20
 公式属性里, 设置好初始资金,保证金和费率
公式里没有。能帮我写下吗
做股指
10楼
jinzhe 发表于:2012/9/27 16:41:55

对着k线图上的公式右键

公式属性---交易费用

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


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