老师,测试时提示,某个资金已经不足,后续的周期已经无法开仓,是什么原因啊
老师,您看看这个公式怎么优化能避免这个问题发生呢sell(holding>0 and low<=ref(low,1) and enterbars>0,0,limitr,min(0,ref(low,1)));
sellshort(holding<0 and high>=ref(high,1) and enterbars>0,0,limitr,max(0,ref(high,1)));
buyshort(holding>=0 and low<ref(low,1),1,limitr,min(0,ref(low,1)));
buy(holding<=0 and high>ref(high,1),1,limitr,max(0,ref(high,1)));