var2:=trou**ars(3,15,1)<10;var3:=peakbars(3,15,1)<10;var4:=if(var2=1,50,0);var5:=if(var3=1,50,0);底部:=if(var4=50,10,0);买入:=if(底部=10 and ref(底部,1)=10 and ref(底部,2)=0,50,0);选股:买入=50;
var3:=(close-ma(close,6))/ma(close,6)*100;var4:=(close-ma(close,24))/ma(close,24)*100;var5:=(close-ma(close,32))/ma(close,32)*100;v**:=(var3+var4+var5)/3;varc:=(zig(3,5)>ref(zig(3,5),1)) and (ref(z...