WY1:=(2*CLOSE+HIGH+LOW)/3;
WY2:=EMA(WY1,3);
WY3:=EMA(WY2,3);
WY4:=EMA(WY3,3);
WY0:(WY4-REF(WY4,1))/REF(WY4,1)*100;
STICKLINE(WY0>=0,WY0,0,2.5,0),COLORRED;
STICKLINE(WY0<0,WY0,0,2.5,0),COLORGREEN;
A:=AMOUNT/VOL/100;
B:=MA(A,13);
D:=EMA(VOL,13);
E:=EMA(AMOUNT,13);
F:=E/D/100;
G:=(CLOSE-F)/F*100;
J:=EMA(VOL/CAPITAL*100,13);
牛线:MA(WY0,1),COLORMAGENTA;
马线:MA(WY0,2),COLORYELLOW;
STICKLINE(J>6.1 AND G>5,牛线*0.5,0,2.5,0),COLORGREEN;
STICKLINE(J>3.8 AND G>5,牛线*0.4,0,2.5,0),COLORYELLOW;
STICKLINE(J>2.1 AND G>5,牛线*0.3,0,2.5,0),COLORCYAN;
STICKLINE(J>1.8 AND G>5,牛线*0.2,0,2.5,0),COLORBLUE;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线0:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
熊线:=MA(牛线0,6);
A1:=BARSLAST(REF(CROSS(牛线,马线),1));
B1:=REF(L,A1+1)>L AND REF(牛线,A1+1)<=牛线 AND CROSS(牛线,马线) AND REF(EVERY(马线/牛线<1.005,2),1) AND 牛线0/LOW>1.045;
DRAWTEXT(B1,牛线-0.50,'●底背离'),COLORFF00FF;
IF(B1,牛线-0.50,DRAWNULL),CROSSDOT,LINETHICK6,COLORFF33FF;
IF(B1,牛线-0.50,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;
DRAWICON(B1,马线-0.2,1);