fix backwards analysis input
clean and improve rsi_sim example