回测时,我已勾选了走完K线模式。你说的“取决于代码中的价格指令函数”是什么意思?可以选择吗?我的代码如下:请帮忙看一下,谢谢
macd:=stkindi('','macd.macd1',0,7);//日macd值
diff:=stkindi('','macd.diff',0,7);//日macd值
dea:=stkindi('','macd.dea',0,7);//日macd值
if CROSS(diff,dea) and barpos>10 and tbuyholding(1)=0 and TTOTALDAYTRADE<1 then tbuy(1,10000/close,mkt);
if CROSS(ref(macd,1),macd) and tbuyholding(0)>0 then tsell(1,0,mkt);