請問如何表達下列:
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;
end
if l<(a-12) and holding=0 then begin
buyshort(holding=0,1,market);
n:=1;
end
if 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;
end
if 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;
end
if l<(a-12) and holding=0 then begin
buyshort(holding=0,1,market);
n:=1;
end
if 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;
end
if time=closetime(0) then n:=0;