A1:=BARSLAST(ref(oss(".diff"(12,26,9),"macd.dea"(12,26,9)),1));B1:=ref(c,A1+1)>c and ref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9));MACD:=FILTER(B1>0,5);STICKLINE(MACD底,0,0.75,3,0),COLORGREEN;DRAWTEXT(MACD底背离,0.57,'MACD底背离'),COLORGREEN;A2:=BARSLAST(ref(cross(".k"(9,3,3),"j.d"(9,3,3)),1));B2:=ref(c,A2+1)>c and ref("kdj.k"(9,3,3),A2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));KDJ底背离:=FILTER(B2>0,5);STICKLINE(KDJ底背离,0,1,3