以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 求程序编写帮助,客服速来! (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=60022) |
-- 作者:azzhe -- 发布时间:2013/12/17 15:41:52 -- 求程序编写帮助,客服速来! 在套利交易中,当持仓超过5分钟,不管盈亏,就平仓,求编写 |
-- 作者:jinzhe -- 发布时间:2013/12/17 15:53:05 -- if 开多条件 and 持仓判断 then begin tbuy........; extgbdataset(\'tt\',timetot0(dynainfo(207))); end if 开空条件 and 持仓判断 then begin tbuyshort........; extgbdataset(\'tt\',timetot0(dynainfo(207))); end
if timetot0(dynainfo(207))>=extgbdata(\'tt\')+300 then begin tsell........; tsellshort........; end [此贴子已经被作者于2013/12/17 15:53:14编辑过]
|
-- 作者:azzhe -- 发布时间:2013/12/17 16:14:13 -- 给我这个提示! |
-- 作者:jinzhe -- 发布时间:2013/12/17 16:18:24 -- 不要紧的, |
-- 作者:azzhe -- 发布时间:2013/12/17 16:21:25 -- 是用于后台交易,是不是这个冲突? |
-- 作者:jinzhe -- 发布时间:2013/12/17 16:28:33 -- 不是,原因看连接,但是这样写不要紧,你要的功能是必要后台实现的 |
-- 作者:azzhe -- 发布时间:2013/12/17 16:36:59 -- 好的, 谢谢,这个只有明天测试看看才知道行不行 |