M:=5;
趋势线:=3*SMA((CLOSE- LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100,5,1),3,1);
见底信号:=10;
买入时间:IF(crOSS(趋势线,见底信号),100,0);
M:=5;
趋势线:=3*SMA((CLOSE- LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100,5,1),3,1);
见底信号:=10;
买入时间:IF(crOSS(趋势线,见底信号),100,0);