金字塔未走完K線,提前N秒下單代碼 [金字塔]
- 咨詢內容:
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秒的參數。我自己搞了半天也沒搞明白,謝謝
- 金字塔客服:
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);加這個一段,tq是提前下單的秒數
- 用戶回復:
謝謝
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容