a1:=BARSLASTCOUNT(REF(c,1)>REF(c,2))>=4 AND c<REF(c,1);{价格条件} a2:=BARSLASTCOUNT(REF(VOL,1)>REF(VOL,2))>=4 AND VOL<REF(VOL,1);{成交量条件} a3:=ma(c,5)>ref(ma(c,5),1);{均线条件} XG:a1 and a2 and a3;
解答如下:
a1:=LAST(REF(c,1)>REF(c,2))>=4 AND c<REF(c,1);{价格条件} a2:=LAST(REF(VOL,1)>REF(VOL,2))>=4 AND VOL<REF(VOL,1);{成交量条件} a3:=ma(c,5)>ref(ma(c,5),1);{均线条件} XG:a1 and a2 and a3;