9 questions
0
votes
1
answer
60
views
Vectorbt import hangs on Windows unless Numba JIT is disabled
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 ...
0
votes
1
answer
98
views
ohlcstx.run - how does it mark the signals
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 ...
0
votes
1
answer
690
views
How to have the Sharpe Ratio in vectorBt backtest result?
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 = ...
1
vote
1
answer
418
views
Symbols have mismatching columns error which loading data into vectorbt from a pandas dataframe
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
...
1
vote
1
answer
3k
views
How to set a stoploss in vectorbt based on the number of ticks or price per contract
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 ...
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?
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 ...
2
votes
0
answers
500
views
Vectorbt type object 'DOMWidget' has no attribute '_ipython_display_'
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 ...
0
votes
1
answer
61
views
How to fill in NaN when using np.append witb a condition?
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
...
0
votes
2
answers
1k
views
'numpy.ndarray' object has no attribute 'append'
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([]...