Closed YASHGUPTA2611 closed 2 years ago
For simple crossovers, i suggest using the crossover function https://www.backtrader.com/home/helloalgotrading/
it would be a much simpler implementation. also backtrader follows regular indexing in a timeseries, so 0, -1, 1 does the same as a regular timeseries
ok understood, Thanks
Whats the difference if we put self.upperband[0], self.upperband[-1], self.upperband[1]?
I want to consider my upperband values a previous row and the closing price as current for the besting of my strategy.