Last trading bar
Trade Prophet last edited by
How can I tell if the next() method runs on the last trading bar during backtesting?
There is no difference between backtesting and live trading. Only that you can preload the data during backtesting and check if
len(data) == data.buflen(), which is of course cheating.