源码
趋势线:=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);
趋势准备:=趋势线<=10;
BD1:=REF(CLOSE,2);
BD2:=SMA(MAX(CLOSE-BD1,0),7,1)/SMA(ABS(CLOSE-BD1),7,1)*100;
波段介入:=BD2<19;
波段底:波段介入 AND 趋势准备;