DYNAINFO(7)和DYNAINFO2什么区别呢?如果用于图表实盘,当最新价大于前20周期最高价就立刻市价开仓if DYNAINFO(7,STKLABEL)>ref(hhv(h,20),1) then buy(1,marketr);
这样写对吗?
完全不对
看函数说明,dynainfo2才需要加合约,dynainfo不需要
这样对吗?if DYNAINFO2(7,STKLABEL)>ref(hhv(h,20),1) then buy(1,marketr);
if h>ref(hhv(h,20),1) or (DYNAINFO2(7,STKLABEL)>ref(hhv(h,20),1) and islastbar) then buy(1,1,marketr);