請(qǐng)問(wèn)如何表達(dá)下列:
A:=當(dāng)日開(kāi)盤(pán)后最高價(jià)
開(kāi)空: A-13點(diǎn)時(shí)市價(jià)開(kāi)空
或者某K收盤(pán)價(jià)小于A-12點(diǎn)時(shí)市價(jià)開(kāi)空
或者某K最低價(jià)小于A-11.4 并且 后5K內(nèi)有任意1K小于A-11.2時(shí)市價(jià)開(kāi)空)
三個(gè)條件先成立的實(shí)行, 實(shí)行后其它兩個(gè)條件失效
A-13點(diǎn)時(shí)市價(jià)開(kāi)空
a-13要等于最新價(jià)的意思?
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;