D13:IF((DATE 0),EMA(CLOSE,13),(LOW * 0.5));
D25:IF((DATE 0),EMA(CLOSE,25),(LOW * 0.5));
D34:IF((DATE 0),EMA(CLOSE,34),(LOW * 0.5));
D60:IF((DATE 0),EMA(CLOSE,60),(LOW * 0.5));
D90:IF((DATE 0),EMA(CLOSE,90),(LOW * 0.5)),colorffddff;
D120:IF((DATE 0),EMA(CLOSE,120),(LOW * 0.5)),color339988,LINETHICK2;
D244:IF((DATE 0),EMA(CLOSE,244),(LOW * 0.5)),color00dd00,LINETHICK2;
D488:IF((DATE 0),EMA(CLOSE,488),(LOW * 0.5)),color0000ff,LINETHICK2;
MD :=MA(CLOSE,30);
UER:= MD + 2*std(c,52);
LER:= MD - 2*std(c,52);
bb2:=sma(Ema(ma((c-ler)/(uer-ler),1),1),2,1)*70;
bb3:=ref(bb2,3);
A4:=((C-LLV(L,13))/(HHV(H,13)-LLV(L,13)))*100;
趋势:=MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2);
趋势线:=ref(趋势,1);
买:cross(趋势,趋势线)and cross(bb2,bb3),colorffddff;
DRAWTEXT(买,l*0.95,'买'),colorffddff;
DRAWTEXT(((((LOW = (SMA(LOW,5,2) * 0.96)) AND (HIGH = LLV(HIGH,36))) AND (CLOSE = LLV(HIGH,30))) AND ((CLOSE / OPEN) 1.03)),(LOW - 0.08),'★抄底'),color0000FF;