Rss & SiteMap

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

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

标题:咨询开仓问题

1楼
maxhuang 发表于:2012/10/24 11:21:02

我的代码如下,在条件满足情况下,保证金也满足下,系统只给我开仓14手,怎么回事啊?

 

if  (Ref(ShortEnter1,1) or  ShortEnter2  or  ShortEnter3) and  Holding>=0 then
//if  ( ShortEnter1  or  ShortEnter2  or  ShortEnter3) and  Holding>=0 then
begin
  Sell(     true, 0        ,market),ORDERQUEUE;
  BuyShort( true, 45 ,market),ORDERQUEUE;
end

if (ShortExit   or (Time=150000 and not(ShortEnter3))) and  Holding<=-1 then
begin
  SellShort(true, 0 ,market),ORDERQUEUE;
end

if (Ref(LongEnter1,1) or  LongEnter2  or  LongEnter3 )  and  Holding<=0 then 
//if ( LongEnter1  or  LongEnter2  or  LongEnter3 )  and  Holding<=0 then
begin
  SellShort( true, 0        ,market),ORDERQUEUE;
  Buy(       true, 45 ,market),ORDERQUEUE;
end

if (LongExit  or (Time=150000 and  not(LongEnter3)))  and  Holding>=1 then
begin
  Sell(true,0,market),ORDERQUEUE;
end
 

 

 

2楼
lichenghu 发表于:2012/10/24 11:29:53
您再贴下您图表上的交易信号,信号上是开45手么
共2 条记录, 每页显示 10 条, 页签: [1]


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