For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
What symbol are orders / trades in?
-
I'd like to write out debugging information when my strategy is running, namely something like
We bought 0.2 BTC, we paid 4 ETH at the price 0.04 ETH/BTC
. I thought I'll be able to do this in the strategy object usingnotify_order
ornotify_trade
, but I only get anorder
ortrade
object, which tell me the price but don't tell me the symbol, e.g.ETH/BTC
.How can I achieve this?
-
Check out this thread
https://community.backtrader.com/topic/895/trade-order-symbol -
This works, thanks!
But I stumbled upon another problem.