Questions tagged [bt]

bt - Flexible Backtesting for Python. The tag pertains specifically to questions regarding pmorissette/bt

  • bt is a flexible backtesting framework for Python used to test quantitative trading strategies. Backtesting is the process of testing a strategy over a given data set.
  • Read the Docs
  • GitHub: pmorissette/bt
  • Issues
8 questions
4
votes
1 answer

bt - Flexible Backtesting for Python - how to get total portfolio value/result for each given date?

I have recently started using bt for backtesting, and after looking into the documentation, https://pmorissette.github.io/bt/bt.html, there does not seem to be a way to get the total portfolio value at each date, even though it can be easily plotted…
OGARCH
  • 97
  • 1
  • 4
0
votes
1 answer

python backtest (bt) error - TypeError: unhashable type: 'Series'

I am trying to backtest some trading data using the bt module. When I run the script, it says "unhashable type: Series". This is my data: Trading Data This is my code: data5 = pd.read_csv("export.csv", index_col="Date", …
0
votes
0 answers

how can guest aosp vm communicate with host BT aosp stack?

I am running vm cutellfish arm64 on top of another aosp HOST via crosvm . I would like to enable the feature of bleuttoh as mention in the official google android source like the device trout. does anyone succeed to make the guest aosp vm perform bt…
Beda
  • 1
0
votes
1 answer

How to fix TypeError in bt backtesting framework for Python

I am trying to load data from the bt backtesting framework for Python. I was trying to load the data for the ticker "tlt" using the bt backtesting framework. I am getting a TypeError: while retrieve the data I did tried fixing even by ensuring I…
0
votes
0 answers

bt mouse connected, but cursor not moving/ bt mouse connection failed

my bt 3.0 mouse stopped to work after i had changed battery to the charged one. When i press the right button, the PC is find it, and advice to press tap message to add mouse 3.0 to PC. After few time, there are 2 kinds of action - it has connected…
ant
  • 29
  • 7
0
votes
1 answer

Backtesting method bt.get() in python not working

I have been running the same code always, but suddenly this morning it stopped working %matplotlib inline import bt data = bt.get("TLT", start="2022-06-01", end="2022-06-30") After running this code, this is the error message I receive: enter…
FFFAR
  • 141
  • 5
0
votes
1 answer

bt backtesting -- > AttributeError: 'Series' object has no attribute 'columns'

Im extract a tickers from binance and made a dataframe Then I used talib to add different indicators to my df. But when I try to do a backtesting it gave me this error. enter code here klines = client.get_historical_klines("BNBUSDT",…
0
votes
1 answer

RuntimeWarning on a financial backtesting program

I'm trying to backtest a trading strategy using the bt library by using one of the examples presented on their web page (I'm not retrieving the data as presented due to the bt.get() function not working. But here is the code that I'm using (I know…