全局单值变量问题
作者:金字塔 来源:cxh99.com 发布时间:2016年07月05日
- 咨询内容:
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)再次开仓,系统是否自动清除,改为当下的开仓值?
- 金字塔客服:
是否要在语句后加上这 if (TBUYHOLDING(0)=0 and TSELLHOLDING(0)=0) then begin extgbdataset('kaikong',drawnull); extgbdataset('kaiduo',drawnull);end
- 用户回复:
你这个是单向操作还是双向都有持仓的?
- 网友回复:
双向都有持仓
- 网友回复:
那么需要重置一下