Hello,
How can I get the value of my broker account in my Strategy 'next' function?
I suspect I cannot use directly cerebro.broker.getvalue() in the 'next' function?
for example:
class TestStrategy(bt.Strategy):
def next(self):
if cerebro.broker.getvalue()>100
self.buy()