A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑码线:EMA(A1,5),LINETHICK2,COLOR6600FF;
A2:=(黑码线-REF(黑码线,1))/REF(黑码线,1)*100;
A3:=EMA(C,5);
A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;
A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
DRAWTEXT(FILTER(REF(黑码线,1)>90 AND A2<0,7),黑码线,'跑'),COLOR00FF00;
DRAWTEXT(CROSS(A1,黑码线)AND 黑码线<A5,黑码线,'黑码');
DRAWTEXT(CROSS(黑码线,A5)AND 趋势线<80,黑码线,'追涨');
DRAWTEXT(CROSS(趋势线,0)AND 黑码线<40,5,'大黑码');
底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;
DRAWICON(底部 AND A3>REF(A3,1),25,4);
机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0;
大势已去:IF(CROSS(黑码线,A1)AND 黑码线>70 AND 趋势线>80,90,100),COLORFF0000;
{DAY1:=REF(C,1)/REF(C,2)<1.02 AND REF(C,1)/REF(C,2)>0.98;
DAY2:=REF(C,2)/REF(C,3)<1.02 AND REF(C,2)/REF(C,3)>0.98;
DAY3:=REF(C,3)/REF(C,4)<1.02 AND REF(C,3)/REF(C,4)>0.98;
上趋势:=MA(LOW,20)*1.2,COLOR0080FF,LINETHICK2;
次上趋势:=MA(LOW,20)*1.1,COLORYELLOW;
次下趋势:=MA(HIGH,20)*0.9,COLORWHITE;
下趋势:=MA(HIGH,20)*0.8,COLORGREEN,LINETHICK2;
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C<次上趋势,2,IF(C<下趋势,0,1)));
LS:=C/REF(C,1)>=1.02 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
}