Rss & SiteMap

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

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

标题:帮忙改一下一下模型

1楼
zyf1199 发表于:2013/3/4 15:30:44

input:n1(32,6,50,1);

 

W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;

T1:=TIME>093000 AND TIME<143500;

T2:=TIME>150500;

 

if W1>45 AND REF(ANY(W1>45,9),1) then begin

 sellshort(holding<0, 0, thisclose);

 buy(holding=0 AND T1, 1, thisclose);

 end

 

if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);

 

if W1<-45 AND REF(ANY(W1<-45,9),1) then begin

 sell(holding>0, 0, thisclose);

 buyshort(holding=0 AND T1, 1, thisclose);

 end  

 

if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);该指标用在期指5分钟周期,麻烦给搞一个固定轮询1秒,未走完K线,提前N秒的参数。我自己搞了半天也没搞明白,谢谢

2楼
jinzhe 发表于:2013/3/4 15:51:32

input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);

加这个一段,tq是提前下单的秒数

3楼
zyf1199 发表于:2013/3/4 16:19:42

谢谢

 

共3 条记录, 每页显示 10 条, 页签: [1]


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