以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 金字塔软件问题提交 (http://weistock.com/bbs/list.asp?boardid=2) ---- 每天按收盘价强制平仓怎么写? (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=3340) |
-- 作者:tittat -- 发布时间:2010/10/19 15:39:26 -- 每天按收盘价强制平仓怎么写? 用哪个函数呢 |
-- 作者:fly -- 发布时间:2010/10/19 15:46:34 -- //收盘前5分钟平仓 if time > 145500 then begin sell(holding > 0, 0, thisclose); sellshort(holding < 0, 0, thisclose); end |
-- 作者:tittat -- 发布时间:2010/10/19 16:00:10 -- 这样写如果测试5分钟周期是可以, 但如果测试30分钟周期,则在14:31分就可能被平仓,60分钟周期则14:01分就可能被平 |
-- 作者:fly -- 发布时间:2010/10/19 16:45:14 -- 用CURRENTTIME试试 |
-- 作者:tittat -- 发布时间:2010/10/19 17:41:11 -- 试过,currenttime是当前时间,不起作用的 |
-- 作者:admin -- 发布时间:2010/10/19 17:59:10 -- 这种情况你只能在后台使用currenttime,运行模式必须选择固定轮训 |
-- 作者:tittat -- 发布时间:2010/10/20 11:34:00 -- 唔,我的问题越来越专业了哈 |