backtrader
backtrader copied to clipboard
Python Backtesting library for trading strategies
A little bug, Not showing error message in exception string message.
Got the following exception raised when no data could be found in DTN for given symbol: > File "w:\backtrader\backtrader\stores\iqfeedstore.py", line 283, in get_history ascend=True) File "C:\Python36\lib\site-packages\pyiqfeed\conn.py", line 2161, in request_bars_in_period...
Hi, I'm trying to get IQFeed working with multiple US symbols, but got 2 major questions which I'd like to have your input. 1) As I know pyiqfeed requires a...
In China, we have to use shadowsocks as a proxy to access foreign country's websites. In quandl.py there is proxy. Can you add proxy in exchange.py for Chinese users?
class TestStrategy(bt.Strategy): params = (('pfast', 50), ('pslow', 200),) max_days = 24 bar_data = 0 def __init__(self): self.pfast = bt.indicators.MovingAverageSimple(period=self.p.pfast) self.pslow = bt.indicators.MovingAverageSimple(period=self.p.pslow) def next(self): pass if __name__ == '__main__': cerebro...
Hi, Using Bitmex feed and Bitmex broker on BTC/USD production. (same before and after https://github.com/bartosh/backtrader/commit/0ce07e524722f83b6eea7e7379fff5cf622a8f74) I have a strange position object. First self.getposition().size does not exist : ``` File "D:\Dev2\Anaconda3\lib\site-packages\backtrader\strategy.py",...
Has anyone experienced slower performance when using CCXT feed with a broker vs using CCXT feed without a broker? Can anyone explain the difference?
On low-volume assets and short timeframes there can be periods without any trades. Some exchanges will return an empty list of candles for these periods. In feeds.ccxt.CCXT this results in...
Hi, i am running a process that one of its instances appears on netstat command with CLOSE_WAIT status and another instance in ESTABLISHED status [Reading About the status Here](https://blogs.technet.microsoft.com/janelewis/2010/03/09/explaining-close_wait/) it...