以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请老师帮我看一下,是什么问题  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=76928)

--  作者:IF左边
--  发布时间:2015/3/26 11:07:35
--  请老师帮我看一下,是什么问题
开多有信号,开空没有信号,是什么原因。

if hh-cpj>10.2 and c<W  and  c<=bollxg and time <143000 then begin
 
   sellshort(1,0,market);
   buy(holding=0,1,market);
   end
   
if cpj-ll>10.2 and c>W and c>=bollsg and time<143000 then begin
   sell(1,0,market);
   buyshort(holding=0,1,market); 
   end
是不是哪里限制了只可以做多,不可以做空?

--  作者:jinzhe
--  发布时间:2015/3/26 11:10:08
--  

http://www.weistock.com/bbs/dispbbs.asp?BoardID=4&ID=1246&replyID=&skin=1

按照这里的方法调试一下看看是哪个条件没有满足导致的没有开空信号


--  作者:IF左边
--  发布时间:2015/3/26 11:15:55
--  
我看了,所有条件都达到的,就是不开仓。所有的空头却没有开仓,而多头都开了。
--  作者:jinzhe
--  发布时间:2015/3/26 11:19:53
--  
把你的调试结果发上来看看,是不是你的调试有漏的地方?