恳请老师们帮忙修改以下公式{价格条件}{成交量条件}{均线条件}让大智慧通过,多谢 。。。。。。。。。
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;