ND := 5;
DOWN := CLOSE/LLV(LOW,60)<=1.2;
Pma1 := MA(CLOSE,5);
PMA2 := MA(CLOSE,10);
VMA1 := MA(vol,5);
VMA2 := MA(VOL,10);
difF := ema(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
PPDAY := BArslAST(crOSS(PMA1,PMA2));
YDAY := BARSLAST(CROSS(VMA1,VMA2));
MacDDAY := BARSLAST(CROSS(DIFF,DEA));
买好股:IF((PPDAY<=ND AND DAY<=ND AND macdDAY<=ND),1,0);