N:=4;
VAR1:=IF(C>=REF(C,1),V,0);
VAR2:=IF(C<REF(C,1),V,0);
VAR3:=SUM(VAR1,N);
VAR4:=SUM(VAR2,N);
能量:=3*SMA((VAR3-LLV(VAR4,34))/(HHV(VAR3,34)-LLV(VAR4,34))*100,5,1)-2*SMA(SMA((VAR3-LLV(VAR4,34))/(HHV(VAR3,34)-LLV(VAR4,34))*100,5,1),3,1);
MA3:=MA(能量,3);
低拐点:=IF(REF(MA3,1)=LLV(MA3,4) AND MA3>REF(MA3,1) AND REF(能量,1)<18,REF(MA3,1),0);
底背离:IF(低拐点>LLV(低拐点,20) AND 低拐点>0 AND C<REF(C,BArslAST(LLV(低拐点,20))),1,-10);