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 switch backtrader to live trading on Coinbasepro
-
Hi guys and gals,
I have a backtrader strategy that runs on imported CSV files.
Now that I am comfortable it kinda does what I expect, I want to put it out there in real life.
However, I struggle to code the broker integration to my Coinbase pro account.
I figured ccxt would be a good way, but how do i get backtrader not to run on the live data with the sma/rsi/bolinger indicators i have in the backtrader code? Do I download the code every hour from coinbase, store in a csv file? If so, how does backtrader know not to go in a backtesting mode, but a real live trading mode?
if there is an example you suggest, or tips more than welcome - as I am stuck. thank you