下底线:=5,COLORWHITE,LINETHICK4;
趋势力度:=(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*
SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)),COLORCYAN;
DB1:=crOSS(趋势力度,下底线);
DB2:=REF(COUNT(DB1,20)=2,1);
DB3:=REF(COUNT(DB1,30)=3,1);
DB4:=DB2 OR DB3;
钻石底:DB1 AND DB4;