A:=((VOL)/(CAPITAL))*(100);
S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));
Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));
AA:=MA(CLOSE,250);
买入:IF(CROSS(S,Y) and (LOW > AA),1,0),coloryellow;
BB:=BARSLAST((买入 > 0));
止损1:=IF((HIGH < AA) and (BB < 150),1,0);
止损:FILTER((止损1 > 0),50),ColorFF00FF;