N:=10;
方向线:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1), COLOR00FFFF ,LINETHICK1;
趋势:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORRED,LINETHICK2;
底线:IF(趋势<=8,5,0),COLORGREEN,LINETHICK2;
上穿必涨:IF(趋势<=28,25,20),COLORBROWN,LINETHICK2;
中线5:IF(趋势<=53,50,45),COLORWHITE,LINETHICK1;
下破必跌:IF(趋势<=90,85,80),COLORBROWN,LINETHICK2;
頂线11:IF(趋势<=105,100,95),COLOR00FF00,LINETHICK2;
顶:IF(趋势<=118,115,110),COLORGREEN,LINETHICK2;