For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
How to get init value from Strategy class?
-
class TestStrategy(bt.Strategy): def __init__(self): self.win = 0 self.lose = 0
Need to get win and lose value.(TestStrategy.win doesn't work)
Sorry, if I asked a stupid question -
Personal advice: work very hard on your programming/Python skills.
Docs - Cerebro and see the section Returning the Results
-
@backtrader ok, thanks)