Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
一般是这样处理的。设置一个指定好的收盘前的一个时间,如果时间大于设定的时间,就平仓。
if time>指定的时间 then begin sell(holding>0,holding,marketr); sellshort(holding<0,holding,marketr);end
思路都是利用时间来进行判断的,实际使用中还需要考虑运行模式,周期等因素进行修改,看你具体需求了。