interactively add data feed?
soujiro0725 last edited by
Hi. I am very new to backtrader.
I am trying to develop a backtrader system that takes realtime data feed.
using backtrader for historical data, I can test my strategy, yes.
Can I add only a single tick to (maybe) cerebro to get an immediate result of strategy?
I have been searching for sample codes for that, without success.
I appreciate any help.
thanks in advance.
spyamine last edited by
You want to look at how brokers are made. here are some examples https://github.com/mementum/backtrader/tree/master/backtrader/brokers
then feeds in here : https://github.com/mementum/backtrader/tree/master/backtrader/feeds
In all of these links there are examples of how to use live trading for Oanda or other providers. you can inspire your work based on the implementation of the latters.
I hope it helps.