Demo or live makes no difference, but on chart doesn't work in backtesting, so that bot will need changing to work on backtest.