以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  夜盘收盘前5分钟,怎么写?当天收盘前5分钟,怎么写?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=90625)

--  作者:roadpeace
--  发布时间:2016/1/22 18:28:12
--  夜盘收盘前5分钟,怎么写?当天收盘前5分钟,怎么写?
如题,谢谢
--  作者:jinzhe
--  发布时间:2016/1/25 8:56:16
--  

if time0>=(timetot0(closetime(1))-5*60) then begin

   sell(1,0,marketr);

   sellshort(1,0,marketr);

end