Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共5 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:提前n秒平仓问题

1楼
tonybig 发表于:2012/8/23 15:02:25

按照下列写法,用在日线级别上,想每天最后1分钟平仓。 但是加载后一点反应都没。请来看看怎么回事。

 

input:tq(60,3,120,1);

 

abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);
SC:=ref(c,1);

 

if abb  then begin

if sc> enterprice and enterbars>0 and holding<0 then sellshort(1 ,holding,limitr,close);
if sc< enterprice and enterbars>0 and holding>0 then sell(1 ,holding,limitr,close);
end

2楼
jinzhe 发表于:2012/8/23 15:06:55
time0用在日线上返回0
3楼
tonybig 发表于:2012/8/23 15:08:47

金哲兄你好,那我用在日线上,该如何最后几秒平仓?

[此贴子已经被作者于2012-8-23 15:11:01编辑过]
4楼
jinzhe 发表于:2012/8/23 15:19:58

把time0直接改成54900

 

abb:=(54900-timetot0(dynainfo(207))<=tq) or not(islastbar);

5楼
tonybig 发表于:2012/8/23 17:41:37
谢谢
共5 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03125 s, 3 queries.