文档介绍:/* MA1:MA(C,5);
MA2:MA(C,10);
MA3:MA(C,30);
A1:=BARSLAST(REF(CROSS(""(12,26,9),""(12,26,9)),1));
B1:=REF(C,A1+1)>C AND REF(""(12,26,9),A1+1)<""(12,26,9) AND CROSS(""(12,26,9),""(12,26,9));
底背离MACD:DRAWTEXT(FILTER(B1>0,5),LOW,'1'),COLORYELLOW;
DRAWTEXT(FILTER(B1>0,5),LOW*,'MACD底背离'),COLOR00FF00;
A2:=BARSLAST(REF(CROSS(""(9,3,3),""(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF(""(9,3,3),A2+1)<""(9,3,3) AND CROSS(""(9,3,3),""(9,3,3));
底背离KDJ:DRAWTEXT(FILTER(B2>0,5),LOW,'▲'),COLORYELLOW;
DRAWTEXT(FILTER(B2>0,5),LOW*,'KDJ底背离'),COLORRED;
A3:=BARSLAST(REF(CROSS(""(8,55,55),""(8,55,55)),1));
B3:=REF(C,A3+1)>C AND REF(""(8,55,55),A3+1)<""(8,55,55) AND CROSS(""(8,55,55),""(8,55,55));
底背离RSI:DRAWTEXT(FILTER(B3>0,5),LOW,'▲'),COLORYELLOW;
DRAWTEXT(FILTER(B3>0,5),LOW*,'RSI底背离'),COLORF0F000;
A4:=BARSLAST(REF(CROSS(""(14,6),""(14,6)),1));
B4:=REF(C,A4+1)>C AND REF(""(14,6),A4+1)<""(14,6) AND CROSS(""(14,6),""(14,6));
底背离DMI:DRAWTEXT(FILTER(B4>0,5),LOW,'▲'),COLORYELLOW;
DRAWTEXT(FILTER(B4>0,5),LOW*,'DMI底背离'),COLORF00FF0;
C1:=BARSLAST(REF(CROSS(""(12,26,9),""(12,26,9)),1));
D1:=REF(C,C1+1)<C AND REF(""(12,26,9),C1+1)>""(12,26,9) AND CROSS(""(12,26,9),""