以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 提前n秒平仓问题 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=15407) |
-- 作者:tonybig -- 发布时间:2012/8/23 15:02:25 -- 提前n秒平仓问题 按照下列写法,用在日线级别上,想每天最后1分钟平仓。 但是加载后一点反应都没。请来看看怎么回事。
input:tq(60,3,120,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);
if abb then begin if sc> enterprice and enterbars>0 and holding<0 then sellshort(1 ,holding,limitr,close); |
-- 作者:jinzhe -- 发布时间:2012/8/23 15:06:55 -- time0用在日线上返回0 |
-- 作者:tonybig -- 发布时间:2012/8/23 15:08:47 -- 金哲兄你好,那我用在日线上,该如何最后几秒平仓? [此贴子已经被作者于2012-8-23 15:11:01编辑过]
|
-- 作者:jinzhe -- 发布时间:2012/8/23 15:19:58 -- 把time0直接改成54900
abb:=(54900-timetot0(dynainfo(207))<=tq) or not(islastbar); |
-- 作者:tonybig -- 发布时间:2012/8/23 17:41:37 -- 谢谢 |