DIFF:=Ema(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); macd:=2*(DIFF-DEA); A11:=BArslAst(REF(crOSS(DIFF,DEA),1)); B11:=REF(C,A11+1)>C AND REF(DIFF,A11+1)<DIFF AND CROSS(DIFF,DEA); M买:B11>0;