量能趋势之追选股指标公式

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);

追:crOSS(能量,MA3) AND RANGE(MA3,20,50);