NDAY_2:= 3;
DOWN := CLOSE/LLV(LOW,60)<=1.2;
PMA1 := MA(CLOSE,3);
PMA2 := MA(CLOSE,5);
VMA1 := MA(VOL,3);
VMA2 := MA(VOL,5);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
PPDAY := BARSLAST(CROSS(PMA1,PMA2));
VVDAY := BARSLAST(CROSS(VMA1,VMA2));
MACDDAY := BARSLAST(CROSS(DIFF,DEA));
SJCJD:= IF((PPDAY<=NDAY_2 AND VVDAY<=NDAY_2 AND MACDDAY<=NDAY_2),1,0);
三金叉:SJCJD;