Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
掘金社区
l***0@sina.com 发表在 掘金2 2016-03-11 14:25:18
如何实现尾盘平仓?
如何实现尾盘平仓?Pinned highlighted
l***0@sina.com 发表在掘金2 2016-03-11 14:25:18
用matlab在做日内策略,不持仓过夜,要在尾盘时清仓。然而返回的bar和tick数据中的时间都是带日期的字符串,感觉很难实现。请问有什么简单的方法?
用tick.utc, bar.utc。 strtime字段时间戳的字符串表达,方便阅读用的,不是计算目的。
谢谢。utc是什么格式的呢?能举个例子吗?
unix timestamp. 1970-01-01以来的累计秒数。
已解决问题。用截取strtime字符串并转化为数字。谢谢
l***0@sina.com
热门标签
热门推荐
Looks like your connection to 掘金量化社区 - 量化交易者的交流社区 was lost, please wait while we try to reconnect.