For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
ow to set the csv attribute of broker to disable it's output in Writer.
-
I write the following code:
cerebro.addwriter(bt.WriterFile, csv=True, out='mywriter.csv', rounding=2)then I want to disable observer broker output. The document says: Which
observers
output data to the CSV stream is
controlled by the attributecsv
in each instance. I wonder how to set the csv attribute of broker. Could you give an example? -
Try to run cerebro with
stdstats=False
. This should remove standard observers such as broker value, cash, and buy/sell and trades from the system. -
Thank you. So, If I want to keep other observer e.g. trades, then I need add them mannualy, right?
-
Yes.....