請教一下 [金字塔]
- 咨詢內容:
請問如何表達下列:
A:=當日開盤后最高價
開空: A-13點時市價開空
或者某K收盤價小于A-12點時市價開空
或者某K最低價小于A-11.4 并且 后5K內有任意1K小于A-11.2時市價開空)
三個條件先成立的實行, 實行后其它兩個條件失效
- 金字塔客服:
A-13點時市價開空
a-13要等于最新價的意思?
- 用戶回復:
是的謝謝
- 網友回復:
a:=hhv(h,enterbars+1);
variable:n=0;
if (a-13)>=l and (a-13)<=h and holding=0 then begin
buyshort(holding=0,1,market);
n:=1;
endif l<(a-12) and holding=0 then begin
buyshort(holding=0,1,market);
n:=1;
endif ref(l<(a-11.4),6) and any(l<(a-11.4),5) and holding=0 then begin
buyshort(holding=0,1,market);
n:=1;
endif time=closetime(0) then n:=0;
- 網友回復:
不好意思,能否講一下紅色部分的具體意思
a:=hhv(h,enterbars+1);
variable:n=0;
if (a-13)>=l and (a-13)<=h and holding=0 then begin
buyshort(holding=0,1,market);
n:=1;
endif l<(a-12) and holding=0 then begin
buyshort(holding=0,1,market);
n:=1;
endif ref(l<(a-11.4),6) and any(l<(a-11.4),5) and holding=0 then begin
buyshort(holding=0,1,market);
n:=1;
endif time=closetime(0) then n:=0;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容