bta-lib icon indicating copy to clipboard operation
bta-lib copied to clipboard

Technical Analysis library in pandas for backtesting algotrading and quantitative analysis

Results 22 bta-lib issues
Sort by recently updated
recently updated
newest added

SMMA Function is working good when calling in not threading modus however when code is running in muli thread we get the following error: File "/home/engine.traderbot/src/indicators/smma.py", line 192, in __calculate_smma...

btalib.macd(df.close,pfast=12,pslow=26,psignal=9) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) ~/anaconda3/lib/python3.7/site-packages/pandas/core/series.py in __setitem__(self, key, value) 1013 try: -> 1014 self._set_with_engine(key, value) 1015 except com.SettingWithCopyError: ~/anaconda3/lib/python3.7/site-packages/pandas/core/series.py in _set_with_engine(self, key, value) 1053 try: ->...

Attributes on the thread local `metadata` variable were being initialized at import time by the calling thread. All access from other threads were result in errors like `AttributeError: '_thread._local' object...

Added Pivot Points High Low study

I am running a MultiplexSocket on Binance API to get 5 minute klines of around 200 symbols. On every new completed candle I call a "run_technical_analysis" function. Inside that function...

https://www.backtrader.com/home/helloalgotrading/ ``` Exception has occurred: FileNotFoundError (note: full exception trace is shown but execution is paused at: _run_module_as_main) [Errno 2] No such file or directory: 'MSFT' File "D:\anaconda3\Lib\site-packages\backtrader\feed.py", line 674,...

https://en.wikipedia.org/wiki/Donchian_channel

#18 Donchian Channel

Im trying to use bta-lib to calculate rsi indicator although it was fine with the sma function but through an error on rsi function ''' df=pd.read_csv('prices.csv') sma=btalib.sma(df,period=9)#works fine rsi=btalib.rsi(df,period=14)#through an...