请教:
逐K线模式。假设D为开多信号。
当出现D信号时,判断若此次D信号出现时当天的收盘价大于上次D信号时的当天最高价,则买入。
这个应该怎么表达?
日线上的计算吗?
nn:=barslast(d);
if d and close>ref(ref(h,d),1) then buy........;
不一定是日线,只要同一周期就行。
上面书写是否有笔误?
应该:
nn:=barslast(d);
if d and close>ref(ref(h,nn),1) then buy……?