Hi,
it's because scales are different. The RSI indicator have scale from 0 till 100, but for a SMAoverRSI is not defined scale. To define a scale, you need to implement IMinMax. Please consider the following code snippet:
. . .
public class SMAOverRSIIndicator implements IIndicator, [b]IMinMax[/b] {
. . .
@Override
public double[] getMinMax(int outputIdx, Object values,
int firstVisibleValueIndex, int lastVisibleValueIndex) {
return new double[] {0, 100};
}