4 Backtrader Strategy Part 1
#############################
Video Source: www.youtube.com/watch?v=1IRG1mUVeZI
Think of a strategy lifecycle as a loop over the data, at each new bar (or candle), we check for a particular condition, which could be the SMA cross, for example, if this condition is true, we execute the order, and notify the trader, then a new bar comes in if the condition is met the same thing happens, if it wasn’t met or the condition was False, then the trader does nothing and waits for the new bar. • • 00:00 introduction • 00:20 loop over data • 00:55 conceptual strategy loop • 01:30 backtrader strategy methods • 02:05 internal referencing • 03:05 code examples
#############################