以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- [求助]麻烦将这个模型改成固定轮询模式,提前几秒下单 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=48915) |
-- 作者:zyf1199 -- 发布时间:2013/2/26 11:16:00 -- [求助]麻烦将这个模型改成固定轮询模式,提前几秒下单
W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50; if W1>45 AND REF(ANY(W1>45,9),1) then begin 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 if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose); |