V3:=100-(100-3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1)+2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1),15,1));
趋势线:= 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);
见底信号:= 3;
买入:= IF(crOSS(趋势线,见底信号),100,0);
趋势线1:= 3*SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1);
见底信号1:= 3;
买入1:= IF(CROSS(趋势线1,见底信号1),100,0);
趋势1:=V3;
趋势线2:= 3*SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,5,1),3,1);
见底信号2:= 3;
买入2:= IF(CROSS(趋势线2,见底信号2),100,0);
顶入:=STICKLINE(买入 AND 买入1 AND 买入2 AND 趋势1<10,25,80,8,0);
小:=IF(COUNT(( 趋势1<0),5)=3, -25,0) ;
顶顶A:=STICKLINE(顶入 OR 小,25,80,8,0);
顶部:=FILTER(顶顶A,25);
测量大底:FILTER(顶部,15);