I am trying to backtest mean reversion technical signals using the TA-lib. However, I am not sure whether my code is realistic enough or not. I don't want to improve the performance. What I want is to make my backtesting realistic as most as I can, e.g., cash management. Do you have any suggestion on this?