后台程序 平仓条件 很简单
tsell(currenttime>=145700 and tholding>0,0,mkt);
前面开盘的时候 刚开进去的多单 立马就自动给平了 搞不懂是为什么 哪里写错了?
开盘前我程序就先运行着了 结果一开盘 有4个品种没接收到数据 双击点开也没有数据 电信1的服务器 什么情况? 重新开了以后才好的
所以觉得很奇怪啊 不知道是什么原因。。难道因为我的WIN7是盗版。。。
tsell(currenttime>=145700 and tholding>0,0,mkt);
这句其实就是实现收盘前平仓的,改为以下试试
IF currenttime>=145700 and currenttime<=145900 and tholding>0 then tsell(1,0,mkt);