开盘后三根K线内,第一次出现的阳线,用 valuewhen(todaybar=3,C>O) 好像不行
这个阳线可能是第一根,也可能是第三根,应该怎么描述呢
求这个阳线的周期数?
求这个阳线的周期数?
阳线出现时 then buy
只能这样写吗,不能够自动识别吗
如果是30根K线内,岂不是要写很多条。。。。
cond:=valuewhen(todaybar=30,any(c>o,30));
if cond then buy....
cond:=valuewhen(todaybar=30,any(c>o,30));
if cond then buy....
如果第二根就满足C>O,那就没有后面的28根了,不能先把todaybar=30写定吧
todaybar<=30,但具体是开盘后第几根出信号需要自动识别
variable:n=0;
if todaybar<=30 and c>O and holding=0 then begin
buy(holding=0,1,market);
n:=time;
end
n就是
variable:n=0;
if todaybar<=30 and c>O and holding=0 then begin
buy(holding=0,1,market);
n:=time;
end
n就是
如果这根C>O的K线成后,要求下一根和下下根的K线的close小于这根K线的CLOSE呢
REF(Todaybar<=30,2)好像不行,周期不固定