The instance of the executed strategies are returned by
Posts made by backtrader
RE: Double commission when switching from long to short (or viceversa)
Commision is only charged once per operation. But there is no code and as such:
- How you switch from long to short .... ???
- What your custom commission scheme does ... ???
Implemeting a Fixed commission scheme, in any case, doesn't need a custom commission scheme. You simply have to use
bt.CommissionInfo.COMM_FIXED(shorter) to either
- Instantiate a
CommissionInfoinstance and use
- Directly use
RE: decimal.Decimal in BT
I am seeing large discrepancies between computations in my actual system
I see large discrepancies between a blank statement like that one, backed by an anonymous id in a forum in the internet, and ... well who knows where the discrepancies are what you mean and ... and ...
RE: Is the `date` in analyzers.Transactions record wrong?
Which date are you expecting where and why is the actual one wrong?
RE: Best practice for date range for Emini Backtest
What you are actually executing: unknown!
It simply seems no data is being delivered. but it is simply a guess.
RE: Exception when use optstrategy together addwriter
I'm trying to use the bt.WriterFile but for some reason
It's not for some reason.
TypeError: cannot serialize '_io.TextIOWrapper' object
cerebro.addwriter(bt.WriterFile, csv=True, out="test")
Multiple processes would be writing to the same file ... you'd better complain to the devils of multiple concurrent processes or to the operating system vendor.