For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Cheat Sheet Existing?
-
Hi,
is there anything like a cheatsheet for the most common Backtrader coding snippets/things to remember?
E.g.:
- Possible values an order can have:
- order.Submitted(1)
- order.Accepted(2)
- order.Completed(4)
- order.Canceled(5)
- order.Expired(6)
- order.Margin(7)
- order.Rejected(8)
- get the present sum of both cash and positions:
- self.broker.getvalue()
-
Relying on numeric values is doomed to fail if the numeric values change. That's why they are always referenced by name and not by value.
A cheatsheet is not known to exist.
-
thanks for your reply