以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  怎么以这个条件反手做多  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=67323)

--  作者:jetzhu
--  发布时间:2014/7/12 22:57:14
--  怎么以这个条件反手做多
SELLSHORT(h>ref(h,enterbars) and HOLDING<0 ,100%,LIMITR,ref(h,enterbars)+s2*MINDIFF);
--  作者:qq代人发帖
--  发布时间:2014/7/14 8:54:48
--  
hh:ref(h,enterbars);
cond:h>hh;
if cond then
begin
SELLSHORT(holding<0 ,100%,LIMITR,hh+s2*MINDIFF); 
buy(holding=0,1,market);
end