Rss & SiteMap

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

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

标题:关于平仓的条件

1楼
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工作!!!

2楼
jinzhe 发表于:2016/10/26 9:30:14

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

[此贴子已经被作者于2016-10-26 9:30:28编辑过]
3楼
jckk 发表于:2016/10/26 9:34:46
price>0 and exitshortcond1 这两个?
4楼
jinzhe 发表于:2016/10/26 9:42:38
就是price>0和你发的xxxx,
[此贴子已经被作者于2016-10-26 9:42:51编辑过]
共4 条记录, 每页显示 10 条, 页签: [1]


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