老师请教下
如何在模型测试中
多头为例
以最低价<enterprice-10作为止损
然后测试出来的结果是止损都限价在enterprice-10这个价格上, 而不是收盘价。
比如IF LOW<enterprice-10
但是收盘价是enterprice-11.4
如何得到限价让 LOW<enterprice-10 的时候 以enterprice-10的价格平仓 只求测试结果 有未来函数也行
SELL(LOW<enterprice-10 AND holding>0,1,LIMIT,enterprice-10);
//如果有多头持仓,以enterprice-10价格挂单子;
//结果:成交价≥enterprice-10