Both these methods work in backtest