请问如何表达下列:
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;
不好意思,能否讲一下红色部分的具体意思
a:=hhv(h,enterbars+1);
variable:n=0;
if (a-13)>=l and (a-13)<=h and holding=0 and n=0 then begin
buyshort(holding=0,1,market);
n:=1;
end
if l<(a-12) and holding=0 and n=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 and n=0 then begin
buyshort(holding=0,1,market);
n:=1;
end
if time=closetime(0) then n:=0;
你好
那开多单的时侯是否还用这个变量,
另外现在是开盘开仓,如果盘中其它条件开是否还用这个变量
开多也是用变量,但是不是用同一个,
看你的思路,要不要限制开仓