Difference between Actual and Prediction is high but anomaly score is low

Thanks sheiser1 for valuable responses . I didn’t find similar example in java .
how to configure multi step in Java, I have to do this prediction on streaming data .