Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
60 views

I’m trying to use vectorbt in Python on Windows, but the import hangs indefinitely: import vectorbt as vbt # hangs here Environment / Versions I’ve tested: Python: 3.9, 3.10, 3.11, 3.12, 3.13 (all ...
Peyman Salehifard's user avatar
0 votes
1 answer
98 views

I am trying to understand how does ohlcstx.run generate the signals. Out of the given prices in Open, High, Low and Close array, which one does is consider to generate the signal? e.g. In the below ...
anshumn's user avatar
  • 33
0 votes
1 answer
690 views

I am backtesting using vectorBT, a python backtest library, to get the backtest result with Sharpe Ratio. Here is the sample code import vectorbt as vbt import yfinance as yf symbol = 'AAPL' ohlcv = ...
Rex's user avatar
  • 167
1 vote
1 answer
418 views

I have downloaded historical data and stored in a csv file on disk. I am loading this csv file in a pandas dataframe. From there on, I am trying to load this dataframe into vectorbt. Here is my code ...
Suhas's user avatar
  • 8,518
1 vote
1 answer
3k views

There's an options to add tp_stop or sl_stop on vbt.Portfolio.from_signals which is percent based. sl_stop : array_like of float Stop loss. Will broadcast. A percentage below/above the acquisition ...
ralphinator80's user avatar
1 vote
0 answers
52 views

May I ask how to present the backtest result by by vertorbt (From_Signal) or backtesting.py with abosulte point but not in percentage? Say, I am trading index futures, so I have a fixed gain for each ...
Likey Fung's user avatar
2 votes
0 answers
500 views

So I'm trying to plot a simple RSI indicator in Python using the Vectorbt library. The RSI plots correctly but there's an error that comes with it. As can be seen here ` #nilagyan ng r para raw file ...
zcodec's user avatar
  • 21
0 votes
1 answer
61 views

Sorry for another noob question! I have a function which is taking the opening price of a bar, and increasing it by 100%, to return my target entry price: def prices(open, index): gap_amount = 100 ...
a7dc's user avatar
  • 3,436
0 votes
2 answers
1k views

Sorry for the noob question but I am very new to Python. I have a function which takes creates a numpy array and adds to it: def prices(open, index): gap_amount = 100 prices_array = np.array([]...
a7dc's user avatar
  • 3,436