barslast(平多条件 and holding=0 and ref(holding>0,1))>10
写在平仓语句后面
上次多单平仓到最新K线根数要大于10根 请问这样写正确吗,谢谢。 |
VALUEWHEN(EXITBARS=0&&HOLDING=0,REF(HOLDING,1))>0&&EXITBARS>10;
多加一个=0,
把&&改成and
valuewhen(开仓条件 and holding>0 and ref(holding<=0,1),enterprice)
写在开仓语句后面