以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  这么解决我的只怎么开仓。不知道平仓。麻烦老师帮我改一下  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=1125)

--  作者:he671112
--  发布时间:2010/3/18 11:48:11
--  这么解决我的只怎么开仓。不知道平仓。麻烦老师帮我改一下
if Long then
    begin   
    tsellshort(tholding<0,1,limitr,h30,0,market);
    tbuy(Long and tholding=0,1,limitr,h30,0,market);
    end

--  作者:admin
--  发布时间:2010/3/18 11:50:51
--  

请认真看看 tsellshort函数各个参数的具体含义。

建议用户,在没有完全搞清楚金字塔后台工作机制之前,使用图表自动交易


--  作者:he671112
--  发布时间:2010/3/18 16:09:39
--  

if Long then
 begin       
 tsellshort(tholding<0,1,mkt);
 tbuy(tholding=0,1,mkt);
 end

 

 

老师这样子可以买入和卖出吗


--  作者:admin
--  发布时间:2010/3/18 17:18:50
--  
可以