market:市价下单
thisclose:对手价下单
不是
指的是开仓时的即时的市价和对手价
if d1 and d2 and d3 and d4 then buy(holding=0,1,marketr);
if enterbars>=0 then sell(holding>0,holding,market);
if k1 and k2 and k3 and k4 and k5 then buyshort(holding=0,1,market);
if enterbars>=0 then sellshort(holding<0,holding,market);
只有这4句不会提示缺少begin end 你是不是其他地方用了begin 少写了end?
把全部代码贴下
market是市价下单,thisclose是对手价,单根还是下跟下单取决于你是选择走完一根k还是固定时间间隔