SJ:=1;
A1:=BArslAST(REF(crOSS("macd.DIF"(12,26,9),"MacD.DEA"(12,26,9)),1))*SJ;
B1:=REF(C,A1+1)>C AND REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) AND CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9))*SJ;
MACD底背:B1>0;
SJ:=1;
A1:=BArslAST(REF(crOSS("macd.DIF"(12,26,9),"MacD.DEA"(12,26,9)),1))*SJ;
B1:=REF(C,A1+1)>C AND REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) AND CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9))*SJ;
MACD底背:B1>0;