以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  关于平仓的条件  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=141808)

--  作者:jckk
--  发布时间:2016/10/26 9:27:05
--  关于平仓的条件

if holding<0 then begin
 price:=0;
 
 if exitshortcond1 then
  price:=max(open,exitupperband);
 
 if high>=enterprice+2*atr and enterbars>=1 then
  price:=max(open,enterprice+2*atr);
 
 if price>0 then
  sellshort(1,holding,limitr,price);
  if                     xxxxxxxxxxx              then playsound(1,\'D:\\Tools\\Weisoft Stock32\\Order5.wav\');
end

 

 

 

请问版主哪个是平仓条件好让playsound工作!!!


--  作者:jinzhe
--  发布时间:2016/10/26 9:30:14
--  

你的条件是price>0 and xxxx,这两个条件要同时成立

[此贴子已经被作者于2016-10-26 9:30:28编辑过]

--  作者:jckk
--  发布时间:2016/10/26 9:34:46
--  
price>0 and exitshortcond1 这两个?
--  作者:jinzhe
--  发布时间:2016/10/26 9:42:38
--  
就是price>0和你发的xxxx,
[此贴子已经被作者于2016-10-26 9:42:51编辑过]