Rss & SiteMap

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

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

标题:全局单值变量问题

1楼
系统使用者 发表于:2014/7/27 18:09:08
if TSELLHOLDING(0)<0 then begin
   kgprice:=extgbdata('kaikong')+(extgbdata('S')+1)*q;
   if high>=kgprice then begin
   tsellshort(1,1,lmt,kgprice);
   extgbdataset('S',extgbdata('S')+1);
  end
 end
全局单值变量:
1)平仓完毕后,是否要清零。
2)再次开仓,系统是否自动清除,改为当下的开仓值?
2楼
系统使用者 发表于:2014/7/27 18:10:20
是否要在语句后加上这
 if (TBUYHOLDING(0)=0 and TSELLHOLDING(0)=0) then begin
 extgbdataset('kaikong',drawnull);
 extgbdataset('kaiduo',drawnull);
end
3楼
jinzhe 发表于:2014/7/28 9:08:32
你这个是单向操作还是双向都有持仓的?
4楼
系统使用者 发表于:2014/7/28 11:41:56
双向都有持仓
5楼
jinzhe 发表于:2014/7/28 13:20:20
那么需要重置一下
6楼
系统使用者 发表于:2014/7/28 17:03:00
 if (TBUYHOLDING(0)=0 and TSELLHOLDING(0)=0) then begin
 extgbdataset('kaikong',drawnull);
 extgbdataset('kaiduo',drawnull);
end
这样?
7楼
jinzhe 发表于:2014/7/28 17:09:22
再发一遍,用IE浏览器
8楼
系统使用者 发表于:2014/7/28 19:32:16
 if (TBUYHOLDING(0)=0 and TSELLHOLDING(0)=0) then begin
 extgbdataset('kaikong',drawnull);
 extgbdataset('kaiduo',drawnull);
end
9楼
jinzhe 发表于:2014/7/29 8:57:29
还是看不到,用IE浏览器发帖
10楼
系统使用者 发表于:2014/7/29 10:51:52
if (TBUYHOLDING(0)=0 and TSELLHOLDING(0)=0) then begin
 extgbdataset('kaikong',drawnull);
 extgbdataset('kaiduo',drawnull);
end
共11 条记录, 每页显示 10 条, 页签: [1] [2]


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