买入:=XMA((C+H+O+L)/4,20)*(1-100/1000);XG1:CROSS(C,买入) AND 买入>REF(买入,1);
N:=20;M:=32;P1:=80;P2:=100;VAR1:=(C+H+O+L)/4;买入:=XMA(VAR1,M)*(1-P2/1000);选股:REF(买入,1)REF(买入,1) AND C<=买入;