m12:=expma(close,12);
m50:=expma(close,50);
value_a1:=ref(every(m12<=ref(m12,1),2),1) and m12>=ref(m12,1);
value_a2:=between((m12-m50)/m50*100,0,1);
value_a:=value_a1 and value_a2;
value_b1:=(close-ref(close,1))/ref(close,1)*100;
value_b2:=macd.macd>=ref(macd.macd,1) and macd.macd>=0;
value_b3:=abs(ref(macd.macd,1))/abs(macd.macd)>=1.8 and macd.macd<0;
value_b4:=vol/ref(vol,1)>=2;
value_b:=value_b1>=2.5 and value_b3 and value_b4;
value:value_a and value_b;
效果如下图所示: