Vectorbt for beginners - Full Python Course

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 มิ.ย. 2024
  • A full introduction to backtesting with VectorBt in python. VectorBt utilises common data science libraries like Pandas, Numpy, Plotly, etc. to give us blazing fast performance on thousands of simultaneous backtests. We can also define our own indicators and grid-optimize its parameters until we find the optimal values.
    ⭐ You will learn how to:
    ⌨️ Create your own custom indicators with the indicator factory
    ⌨️ Do hyper-parameter optimization and find the best parameters for your strategy
    ⌨️ Optimize your backtests using talib + numpy
    ⌨️ Create dashboards to visualize the performance of your backtests
    ⌨️ Use different order types, stop-loss, take-profit, and shorting.
    ⌨️ Guard against over-fitting by running backtests over many time windows and comparing vs random trading.
    ⏱️ Timestamps:
    (00:00:00) Course Introduction
    (00:06:36) Quickstart
    (00:32:51) Creating Custom Indicators
    (01:14:47) Parameter Optimization
    (01:45:52) Optimization Techniques
    (02:14:59) Graphing / Dashboarding
    (02:55:21) Order types, stop-loss, take-profit, shorting
    (03:18:21) Avoiding Over-fitting
    📋 Blog Posts (with code):
    Creating custom indicators:
    greyhoundanalytics.com/blog/c...
    Using Multiple indicators:
    greyhoundanalytics.com/blog/u...
    Parameter Optimization:
    greyhoundanalytics.com/blog/v...
    Graphing in Vectorbt:
    greyhoundanalytics.com/blog/p...
    ... More blog posts on the way
    Get in touch:
    chad@greyhoundanalytics.com

ความคิดเห็น • 163

  • @ChadThackray
    @ChadThackray  2 ปีที่แล้ว +9

    Consulting available at:
    greyhoundanalytics.com/contact/

  • @martijnkerkhof601
    @martijnkerkhof601 ปีที่แล้ว +8

    If you are reading this in may 2023, there is currently a new version of pandas (2.0.1) that is incompatible with vectorBT. You will get errors as soon as you pass a df to vbt (look at me learning the lingo!) the series are fine (meaning you'll get this error as soon as you add the extra symbol). '
    If you are using a virtual enviroment, try to roll back pandas and install pandas 1.5.3 and it should work. Good luck!

  • @fxsurgeon1
    @fxsurgeon1 2 ปีที่แล้ว +36

    This is the best intro to vbt I found, thank you! Please make an advanced part of this course!!

    • @elon4843
      @elon4843 ปีที่แล้ว +6

      Yes, like combine multiple indicators for signal confirmation, determine trend - again as confirmation, using divergence, using non standard stop losses and take profits (like using ATR to calculate stop loss or exit from order after X bars passed and other non-standart approaches, which is really hard to code and there is no good tutorials for that advanced stuff)

  • @MK-zx6bl
    @MK-zx6bl 2 ปีที่แล้ว +4

    The other video tutorials that I came across on YT didn’t go deep enough and left me wanting more. This is exactly what I was looking for. Thanks so much!

  • @ugurpotaker8903
    @ugurpotaker8903 2 ปีที่แล้ว +4

    one of the best tutorials in technical analysis. keep it up, thank you chad!

  • @corynieznajko8158
    @corynieznajko8158 2 ปีที่แล้ว +6

    You are a god send to so many people for making this, no doubt a like and subscribe earned.
    I have watched this 6 times now and it really does bring everything together. Your efforts are definitely helping people a ton!

  • @amitsingh-ox4uo
    @amitsingh-ox4uo 2 ปีที่แล้ว +12

    Hey Bro..Amazing work. Very few TH-cam videos on Algo trading and backtesting using Vector Bt. Please keep up the good work.

  • @jontycraine4903
    @jontycraine4903 2 ปีที่แล้ว +3

    4 hours of pure gold! Keep it up

  • @paultenzer1361
    @paultenzer1361 ปีที่แล้ว +2

    Such a great video thanks for taking the time to put this together. I cant even say how much this has helped

  • @bhagyanaresh
    @bhagyanaresh ปีที่แล้ว

    This is very comprehensive explanation of vectorbt. Thank you very much. Excellent work

  • @shauryamahajan6844
    @shauryamahajan6844 ปีที่แล้ว

    Thanks a lot for making this detailed and beginner friendly. Wouldn't have been able to get started with this without your help 🙂

  • @readpan
    @readpan ปีที่แล้ว

    Thanks for your tutorial, I am from a non-native English speaking country. The speed of your speech is so friendly to me! Thanks again!

  • @eervin123
    @eervin123 2 ปีที่แล้ว +2

    Great work. This video will be a hit for so many.

  • @quarkinjapan
    @quarkinjapan ปีที่แล้ว

    Absolutely awesome. Thanks a lot for sharing !

  • @djibou3274
    @djibou3274 ปีที่แล้ว

    great job 4h of excellence ! we can see and we can hear your competence in coding, ty very much for this video.

  • @quarkinjapan
    @quarkinjapan 5 หลายเดือนก่อน

    Hi Chad. Lots of thanks for this incredible tutorial. Just in time for me as I'm just starting using vectorbt. Examples are seldom for the non-pro version so this is a real gold mine. Keep up the good work!

  • @coderpython-zw9qv
    @coderpython-zw9qv 12 วันที่ผ่านมา

    Appreciate your efforts Chad! Very well covered.

  • @bogan9265
    @bogan9265 ปีที่แล้ว +1

    Great video! Very simple and on point! Keep up the good work

  • @richardk111
    @richardk111 ปีที่แล้ว

    Thank you, for the best possible tutorial on VectorBT.

  • @mr.gk5
    @mr.gk5 2 ปีที่แล้ว +1

    Super helpful video. Thank you very much!

  • @jamirpradojunior5287
    @jamirpradojunior5287 ปีที่แล้ว

    Great great job!! Amazing class

  • @thiagofsilveira
    @thiagofsilveira 2 ปีที่แล้ว

    Very nice. Thanks for sharing it.

  • @SuperRalphinator
    @SuperRalphinator ปีที่แล้ว

    Great content. Really thorough.

  • @prof969chaos
    @prof969chaos ปีที่แล้ว +1

    Great course, just wanted to mention the docker image[full] for VectorBT works great and tends to work much faster than working in virtual enviroment. It's also a lot easier to load up since all the packages are already installed. Just an alternative for those having difficulty installing or running with complex strategy.
    It works about 50 times faster on my computer but that might depend a lot on how it's installed. I found that anaconda can be used as a work around if you really want to install it, but are having problems or want to keep working with python 3.10 on the reg while have your anaconda based sub-system on the side.

  • @theafricanquant501
    @theafricanquant501 ปีที่แล้ว

    Great course. Took my time to go thru it over the weekend with my notebook up and running.
    Issue started when I wanted to implement my own strategy using the Turtle strategy in the IndicatorFactory...

  • @ll00000000ll
    @ll00000000ll 2 ปีที่แล้ว +1

    helps a lot, best tutorial ever ,thank you.

  • @timmydotlife
    @timmydotlife 2 ปีที่แล้ว

    Amazing Chad. Thank you very much.

  • @sChaikovsky
    @sChaikovsky 2 ปีที่แล้ว

    You are the best. What a great content.

  • @dunghell
    @dunghell 2 ปีที่แล้ว +1

    Amazing tutorial on vectorbt. This helps me a lot of using this lib. Thank you very much! P/s: never comment on any TH-cam videos before.

  • @rickybrenay6249
    @rickybrenay6249 ปีที่แล้ว

    Thank you. Great video!!

  • @aman4434
    @aman4434 2 ปีที่แล้ว +2

    Hi Chad! Was just gonna ask you plans for DS course but you've come up with some nice stuff here!

  • @emilebelot5939
    @emilebelot5939 5 หลายเดือนก่อน

    awsome tutorial, thanks a lot for this hardwork

  • @dimayasnohurskyi2805
    @dimayasnohurskyi2805 ปีที่แล้ว

    Thanks for your knowledge.

  • @SkyRiderJavelin
    @SkyRiderJavelin 2 หลายเดือนก่อน

    Excellent Tutorial !!!!!!!!!

  • @JoelBerman
    @JoelBerman ปีที่แล้ว

    Great course!

  • @maverick456-33
    @maverick456-33 2 ปีที่แล้ว

    Amazing 🤩

  • @raffaelegirodoangelin6649
    @raffaelegirodoangelin6649 10 หลายเดือนก่อน

    Best video, thanks !

  • @audrique5762
    @audrique5762 2 ปีที่แล้ว +1

    Great video! I was wondering if it is also possible to backtest for a universe of assets together instead of just the return on each of them individually.

  • @merakshitrading9216
    @merakshitrading9216 9 หลายเดือนก่อน

    just awesome

  • @misaghesh4963
    @misaghesh4963 ปีที่แล้ว

    very good

  • @softplayboy999
    @softplayboy999 ปีที่แล้ว

    Thank you for that excellent introduction Chad.
    Nicely paced and with great content.
    However I experience some problems while experimenting with arrays of params for sl_stop and tp_stop ... ?
    Broadcasting doesn't seem to work as it does with other params ( tried passing a np.arange array )
    Any idea how to solve that?

  • @unailopez1282
    @unailopez1282 ปีที่แล้ว

    Hi Chad,
    Thanks for your tutorial! That was really helpful but I have one question I hope you can help me with that. I am trying to do hyperparameter optimization with stop loss and take profit, is there a way to perform this hyperparameter optimization in an efficient way?
    Thank you for your time!

  • @pwwsley9011
    @pwwsley9011 2 ปีที่แล้ว

    Gracias!

  • @xiandongqi7997
    @xiandongqi7997 3 หลายเดือนก่อน

    Please make an advanced part about. "portfolio" of this course!!

  • @ParthaNagREC
    @ParthaNagREC ปีที่แล้ว

    hi Chad, thanks for the amazing tutorial. I entered into this domain, recently (1 month back) and thank you for explaining the code that you have been writing and sharing with the audience...
    I have a question
    Around the 54 minute mark, you integrated MA with RSI...while you did it for the buy side, I did not see you modify the code like this for the sell side:
    trend = np.where((rsi > 70) & (close > ma), -1, 0)
    can I request you to comment on this.
    Many thanks in advance

  • @pedromartinezbarron4720
    @pedromartinezbarron4720 ปีที่แล้ว

    Wtf this is great:0

  • @hwtang217
    @hwtang217 ปีที่แล้ว

    Thanks Chad. How to backtest with buy the next day open price?

  • @fadior3270
    @fadior3270 10 หลายเดือนก่อน +1

    Hi Chad, isn't the custom indicator you've ceated a signal ? I'm asking because there is a signal factory in vectorbt

  • @boogiman007
    @boogiman007 ปีที่แล้ว +1

    Thank god for the playback speed option!

  • @aniruddhvasishta8334
    @aniruddhvasishta8334 2 หลายเดือนก่อน

    If you run a strategy on multiple symbols, how do you get the metrics in a way that doesn't just return a series with the averages? I'd like to get the metrics for each symbol as a dataframe and store them so I can do more tests afterward but I can't figure out how to do it.

  • @BOSprodz
    @BOSprodz ปีที่แล้ว +1

    I have coded along everything until 1:04:30 but after resampling, when I run the res = ind.run() I get this error:
    AssertionError: (1, 1) and (9618, 1) do not match
    Before resampling it worked, but after deleting the resample line it still does not work
    I would really appreciate any help thank you

  • @Askhat08
    @Askhat08 2 ปีที่แล้ว

    Absolute Chad!

  • @daniellewis6228
    @daniellewis6228 ปีที่แล้ว

    Left a like because I saw linux mint! OG

  • @frederickkiaie8527
    @frederickkiaie8527 2 ปีที่แล้ว +2

    Chad, if you could respond, you would be immensely helpful. Remember around the 42 minute mark where you're returning a "trend" object that's based on entry and exit parameters: did you formulate this structure on your own or was this structure recommended from the VectorBT docs? I'm asking this because my strategy is complicated, and I don't want to necessarily quantify my entries and exits PURELY on indicator signals; essentially, I want it to use the indicators in combination with some candlestick information. Should I be focusing on the "entries" and "exits" objects outside of the custom_indicator class for this? Thanks!

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว +2

      Yeah the trend structure is just something I use to make life easier for myself. The actual important series are the entries and exits which are passed into Portfolio.from_signals

  • @hkn990
    @hkn990 ปีที่แล้ว

    thanks a lot man, was very helpful, what text editor are you using in the video?

  • @jmoz
    @jmoz 2 ปีที่แล้ว

    Interested if anyone has used this realistically-backtested and found something useful and deployed and traded it profitably. How did you do live trading?
    I already run my own systems and strategies that have worked well over the past year and a half (up 300%). It looks like it's almost really useful, issues I see are the level of overfitting if not careful, can it operate on a universe of assets, long and short, and how to deal with live?

  • @sarfrajansari1758
    @sarfrajansari1758 ปีที่แล้ว

    how to add trade duration in the portfolio. I can add logic in the numpy but hoping if there is any attribute for that

  • @ahmedbenh7921
    @ahmedbenh7921 ปีที่แล้ว

    a question about data in Vector bt:
    how do you input your own data in Vbt ? a CSV file or you're own DF

  • @christendsouza5845
    @christendsouza5845 2 ปีที่แล้ว

    When you switch entries for exit and exit for entries for the first RSI code you get phenomenal returns.

  • @eto895
    @eto895 ปีที่แล้ว

    Good video. Where is the advance videos? Apology but i couldn't find it

  • @chrisveitch5178
    @chrisveitch5178 ปีที่แล้ว

    At 1:21:30 it looks like there's an error. The RSI 21 + MA 100 values are different for ETH between runs. Then again when you run the product of the series. What's going on? Shouldn't they be the same?

  • @miguelangeldiazoviedo9523
    @miguelangeldiazoviedo9523 2 ปีที่แล้ว

    how to develop and strategy based on hour, entry at datetime.hour= 8:00, exit at 12:00?

  • @amanchaure5584
    @amanchaure5584 ปีที่แล้ว

    Hello Sir, can we place trailing stop loss using Vector Bt?

  • @miguelangeldiazoviedo9523
    @miguelangeldiazoviedo9523 2 ปีที่แล้ว

    I Cant install vectorbt in visual studio ni spider ni jupiterlab how to fix it?

  • @sornponwichaidit4172
    @sornponwichaidit4172 ปีที่แล้ว

    hi chad great work quick question. don't we have to lag buy/sell signal by .shift() data series like other backtest?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว +1

      Depends on a lot of factors. You'll have to judge for your situation whether it causes look ahead bias or not

    • @sornponwichaidit4172
      @sornponwichaidit4172 ปีที่แล้ว

      @@ChadThackray from my understanding. when we code fast ma cross above slow we will have will got exactly singnal when they did crossover eg crossover at day 300 if we use regular simulation we have to shift sinal series due to lookahead bias due to assumption we got signal at end of day 300 we can start buy at day 301. but i seem to not in the case of vectorbt(you send exactly signal to backtest). my guess is they will handle this buy their assumption like when have a signal buy at bar 300 a. they may calculate first return by used close of day 300 to close of day 301 or open to close of day 301 for the first return. so we do't really have to lagged signal is that right?

  • @mattportnoyTLV
    @mattportnoyTLV ปีที่แล้ว +1

    Thanks so much for putting this together! It's extremely helpful.
    I notice that everyone seems to test based on standard indicators or moving averages.
    I'm trying to determine whether or not I can build an indicator inside VectorBT that lets me test based on specific price action? In other words, when price of a certain instrument reaches X, within time window Y. Except the value of X would be variable based on certain factors.
    Maybe it's impossible?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      Would recommend looking into the indicator factory. You can build any arbitrary indicator using it

    • @mattportnoyTLV
      @mattportnoyTLV ปีที่แล้ว

      @@ChadThackray Thanks for the reply. Based on the documentation, I assume it's possible, but I wanted to make sure.

  • @davidberry8511
    @davidberry8511 ปีที่แล้ว

    Great tutorial, I am learning so much from your TH-cam content.
    Just 1 question, when I compare the RSI value from vectorBT, the value is quite different to the values calculated using ta_lib, pandas.ta and in fact the chart with all 3 being the same.
    I have used the code in you video, so is this something you have seen also?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      Yeah, different implementations of the RSI use different smoothing functions, so you'll want to make sure you're using the version that you want

    • @davidberry8511
      @davidberry8511 ปีที่แล้ว

      @@ChadThackray Thanks for your quick reply, i will look further into the smoothing functions.

  • @alessandrosisto552
    @alessandrosisto552 11 หลายเดือนก่อน

    If my strategy use 15 m candles mainly Can I use an indicator that use 5m candles?

  • @andrewieong6881
    @andrewieong6881 2 ปีที่แล้ว

    Hi all does anyone know how to set specific entry and exit dates?

  • @krishnasonu6909
    @krishnasonu6909 ปีที่แล้ว

    In time 9.28 installing vectorbt takes how much data ?

  • @viper7882
    @viper7882 ปีที่แล้ว

    Thank you Chad over the fantastic tutorial session for VectorBT. I've learned a lot from the session. In case someone is looking for a better way to dump the pf.orders together with the header without referring to the API documentation, here's the magical one liner: print(pf.orders.records_readable) will do

  • @nilsonoliveira3674
    @nilsonoliveira3674 ปีที่แล้ว

    how do I find the methods of this API? Is there a method for WMA?

  • @XekoN10
    @XekoN10 2 ปีที่แล้ว +1

    Hey man, thanks for the tutorial. Could you please do tutorial on Portfolio.from_order_func() since there is very little of documentation? :)

    • @ChadThackray
      @ChadThackray  2 ปีที่แล้ว +2

      I likely will in the future. If you look on the documentation for the pro version you can often reverse engineer it for the free version

  • @andrewlovesbry
    @andrewlovesbry ปีที่แล้ว

    Rather than treating each symbol/asset as its own portfolio, are you able to combine? For example, pull 10 cryptos but only allocate 50/50 to the first two that met your indicator criteria?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      Yep! It's called "grouping" in the documentation

  • @user-tv5ur1qr4t
    @user-tv5ur1qr4t ปีที่แล้ว

    Dear author! Thank you for your videos. What is your favorite backtesting library?

  • @autarko
    @autarko 2 ปีที่แล้ว +1

    Hi this is really good. I'm just going through it now. The pf.plot().show() command at 27m10s didn't show a plot for me when I ran the program from Spyder, but when I copied the code into a Jupyter notebook cell it showed the plots inline (not opening a web server tab).
    Do you have any ideas for how I can fix the issue?

    • @autarko
      @autarko 2 ปีที่แล้ว +1

      Update: I managed to fix it by adding a code snippet from the bottom of the page plotly.com/python/figure-structure/
      TH-cam doesn't seem to allow me posting code.

    • @fringsbot9052
      @fringsbot9052 ปีที่แล้ว

      same issue here, ploty link didn't seem to work. Anyone got another fix without coming out of Spyder? cheers in advance

  • @k2icc
    @k2icc ปีที่แล้ว

    Got: ValueError: cannot join with no overlapping index names, but great so far. With so far, I dont mean you, I mean myself. I am doing better than before, when it comes to technical indicators and optimization, Python and backtesting. Thanks.

    • @k2icc
      @k2icc ปีที่แล้ว

      By troubleshooting, as I was using not BTC but my own ticker such AMZN, the error comes as I was only using only one ticker, so by adding AAPL as ["AMZN", "AAPL"] that solved the error.

  • @gkr7078
    @gkr7078 ปีที่แล้ว

    Thank you for this amazing intro video. I tried running the code and at 44:42, when I run res = ind.run(); I get a value error saying “ number of returned outputs other than expected “ .. tried looking into this error but didn’t find a solution, any advice pls

    • @gkr7078
      @gkr7078 ปีที่แล้ว

      Fixed it 😊. Again great work man 👍🏼

  • @shirishardak2284
    @shirishardak2284 ปีที่แล้ว

    How add custom data in Vbt

  • @user-lk1vm4ui7w
    @user-lk1vm4ui7w ปีที่แล้ว

    Thanks for your work, it is really helpful. Is there any way to integrate VectorBT with crypto exchange API? (Binance, for example).
    I mean it is double work to make lot management, Take Profits, Stop Loss management, etc., which VectorBT can do.
    Also, I have some logic so integrated with VectorBT, so it must be rewrite if we will use pure binance API, without any connector/bridge/integration between VectorBT and Binance.

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      Live trading is on the roadmap for the PRO version, but is a while away yet. You would need to write your own adaptor between the two for now

  • @jaylonnichols5504
    @jaylonnichols5504 2 ปีที่แล้ว

    2:08:35 Memory optimization

  • @ergun_kocak
    @ergun_kocak 4 หลายเดือนก่อน

    Thank you very much for detailed training ❤. Unfortunately, i keep my eyes open really hard, because of the way you speak :( I am about to sleep man :) Also it may be good to update the video to the latest version of VectorBT Pro ;)

    • @ergun_kocak
      @ergun_kocak 4 หลายเดือนก่อน

      Watching 1.25 x faster makes it better :)

  • @k2icc
    @k2icc ปีที่แล้ว

    I got a gaming computer which I use for programming. I know in cases such as Machine Learning, some Python libraries are meant to use GPU too. Do you know if by default gaming computers use GPU's for tasks as those here? I believe when using the Windows tasks it show CPU and GPU wit some kind of use or help from GPU to CPU. Thanks.

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว +1

      Generally varies from program to program. Usually you have to do some messing around with configurations to get it to work properly

    • @incremental_failure
      @incremental_failure 2 หลายเดือนก่อน +1

      Numpy is CPU only.

  • @ucduong4402
    @ucduong4402 7 หลายเดือนก่อน

    how can I fix the error:
    ERROR: Could not build wheels for TA-lib, which is required to install pyproject.toml-based projects
    Thank you for your video!

    • @ChadThackray
      @ChadThackray  7 หลายเดือนก่อน

      Hey! You need to install TA-lib if you want to use the indicators from it. There are some good tutorials for it here on youtube

  • @BOSprodz
    @BOSprodz ปีที่แล้ว

    Do you think the pro version is worth getting? How different is it to the free one? Thanks

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      There's a pretty considerable difference. The paid version is the only one getting new features at the moment. I think it's the best backtesting tool out there right now. At least for python and open source.

  • @thomas2004ch
    @thomas2004ch ปีที่แล้ว

    does vbt have the function or ability to do the parameter optimazation as by Backtrader?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      Yep! I'd say that's the strong point of this library

  • @petephills4626
    @petephills4626 ปีที่แล้ว

    Hi Chad, thanks for the great work. I'm closely working through your tutorial however at 1.08.17 I'm getting errors after writing the align code: rsi, _ = rsi.align(close,
    broadcast_axis=0)
    The error I'm getting is
    "F:\Vectorbt\Scripts\python.exe F:/Vectorbt/test1.py
    Traceback (most recent call last):
    File "F:\Vectorbt\test1.py", line 40, in
    res = ind.run(
    File "F:\Vectorbt\lib\site-packages\vectorbt\indicators\factory.py", line 13, in run

    File "F:\Vectorbt\lib\site-packages\vectorbt\indicators\factory.py", line 2860, in _run
    results = run_pipeline(
    File "F:\Vectorbt\lib\site-packages\vectorbt\indicators\factory.py", line 1881, in run_pipeline
    output = _call_custom_func(
    File "F:\Vectorbt\lib\site-packages\vectorbt\indicators\factory.py", line 1821, in _call_custom_func
    return custom_func(
    File "F:\Vectorbt\lib\site-packages\vectorbt\indicators\factory.py", line 3364, in custom_func
    return apply_and_concat_func(
    File "F:\Vectorbt\lib\site-packages\vectorbt\base\combine_fns.py", line 62, in apply_and_concat_one
    outputs.append(reshape_fns.to_2d(apply_func(i, *args, **kwargs)))
    File "F:\Vectorbt\lib\site-packages\vectorbt\indicators\factory.py", line 2, in select_params_func
    # This code is licensed under Apache 2.0 with Commons Clause license (see LICENSE.md for details)
    File "F:\Vectorbt\test1.py", line 16, in custom_indicator
    rsi, _ = rsi.align(close,
    File "F:\Vectorbt\lib\site-packages\pandas\core\frame.py", line 4709, in align
    return super().align(
    File "F:\Vectorbt\lib\site-packages\pandas\core\generic.py", line 8862, in align
    return self._align_frame(
    File "F:\Vectorbt\lib\site-packages\pandas\core\generic.py", line 8918, in _align_frame
    join_columns, clidx, cridx = self.columns.join(
    File "F:\Vectorbt\lib\site-packages\pandas\core\indexes\base.py", line 216, in join
    join_index, lidx, ridx = meth(self, other, how=how, level=level, sort=sort)
    File "F:\Vectorbt\lib\site-packages\pandas\core\indexes\base.py", line 4368, in join
    return self._join_multi(other, how=how)
    File "F:\Vectorbt\lib\site-packages\pandas\core\indexes\base.py", line 4479, in _join_multi
    raise ValueError("cannot join with no overlapping index names")
    ValueError: cannot join with no overlapping index names
    Process finished with exit code 1"
    Thanks in advance for your assistance 😀
    Pete

    • @garyfritz4709
      @garyfritz4709 ปีที่แล้ว

      Search for "cannot join" in a response by Ignacio Cáceres Ballesteros, 4 months ago. Devin Lee responded with a solution that should solve your problem?

  • @DevEdy
    @DevEdy ปีที่แล้ว

    I tried installing vectorbt without luck. I created a venv with python 3.7 to 3.9 and didn’t work in any. Not sure how to fix the issue. I have watched a few of your videos and I enjoyed them. Good content.

    • @rickybrenay6249
      @rickybrenay6249 ปีที่แล้ว

      th-cam.com/video/28eLP22SMTA/w-d-xo.html

  • @inspecteurbane5666
    @inspecteurbane5666 ปีที่แล้ว

    Hello, thanks for the very interesting video, if i understand well, it si not possible in vectorbt to pass 2 orders in the same candle?
    for example
    - candle N : there is a bullish engulfing.
    - so i buy at the candle N+1 @ the open price and I set a takeprofit limit.
    - candle N+2 : if my limit has not been hit then i sell @ open
    i manage to create the buy signal and the exit signal but i have the feeling the limit will always be considered as a conflict with the exit order @ candle[N+2]

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว +1

      The kind of functionality you're after here is possible, at least in vectorbt PRO, but would take bit of elbow grease to implement

    • @inspecteurbane5666
      @inspecteurbane5666 ปีที่แล้ว

      @@ChadThackray thanks a lot, will look into this 👌

    • @incremental_failure
      @incremental_failure 2 หลายเดือนก่อน

      This isn't possible with vectorisation. With "serial" mode or looping, it's of course possible. I don't use VectorBT but it does use Numba, so it can be fast.

  • @garyfritz4709
    @garyfritz4709 ปีที่แล้ว

    Vectorbt looks great, but: is it just a bait-and-switch for Vectorbt PRO ? It sounds like all the "you really want it" features are PRO only, all of the maintenance/bugfix work is in PRO, and all the available docs are for PRO. Is Vectorbt non-PRO really a stable and usable platform?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      I guess Oleg only has a limited amount of time and right now he's spending most of that on the pro version.
      Hopefully one day he'll be able to hire some people to maintain/build on the community version.
      The free version is fairly robust, but there's a real lack of documentation, which I guess this video tries to address.
      The pro version is very cheap right now, so there's that.

  • @barisistanbul
    @barisistanbul ปีที่แล้ว

    I am getting "AttributeError: 'numpy.ndarray' object has no attribute 'resample'. Did you mean: 'reshape'?" around 1:04:05?.. Is there any easy solution?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      It seems like you've got a numpy array where you should have a pandas series. I believe there's an option somewhere to pass inputs as a series rather than an array, you'll want to use that

    • @honzajanda5174
      @honzajanda5174 ปีที่แล้ว +1

      You find solution already? I have same problem.

    • @tiger_-_chen
      @tiger_-_chen 10 หลายเดือนก่อน +1

      @@ChadThackray we all have the same problem. it is your code producing the error, we just typed it from the screen. please advice, thank you!!

  • @franky12
    @franky12 2 ปีที่แล้ว

    Unfortunately the free open source version of Vectorbt seems to be no longer actively maintained by the developer. Only bug fixes will be made. Everything goes into the commercial version *VectorbtPro* now, which is imho quite expensive for hobbyist users. Do you use the PRO version and think, it is worth the money? Do you know of any promising fork of the open source version, that is further developed?

    • @ChadThackray
      @ChadThackray  2 ปีที่แล้ว +2

      FWIW, the pro version is still open source, you just have to pay for it. Depends if $25/month is a lot for you, it's certainly a lot better than the free version.
      Right now I think vectorbt is the most promising library out there

  • @deeppatel2727
    @deeppatel2727 ปีที่แล้ว

    Can it be used for options ?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      Yep! basically any tradeable asset

  • @aryankulshreshtha5236
    @aryankulshreshtha5236 ปีที่แล้ว

    For the RSI indicator, many of the values it was giving out were wrong..
    Is anyone else facing the same issue?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      Might depend on which version of the RSI that you're using. There are quite a few different ones.

    • @aryankulshreshtha5236
      @aryankulshreshtha5236 ปีที่แล้ว

      ​@@ChadThackray I checked with other libraries as well..
      It's wrong.
      I tested for "^NSEI", (Nifty 50 Indian Benchmark Index)
      Time frame = 1D

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      @@aryankulshreshtha5236 You can report an issue with VectorBT on its github, along with a full code sample

    • @aryankulshreshtha5236
      @aryankulshreshtha5236 ปีที่แล้ว

      @@ChadThackray Reported

  • @aarondelarosa3146
    @aarondelarosa3146 7 หลายเดือนก่อน

    How do you install VektorBT on terminal?

    • @ChadThackray
      @ChadThackray  7 หลายเดือนก่อน

      Use pip

    • @aarondelarosa3146
      @aarondelarosa3146 7 หลายเดือนก่อน

      It doesn't work. I have to install Ta-Lib first, I think. @@ChadThackray

  • @cyberpunk2978
    @cyberpunk2978 2 ปีที่แล้ว

    Do you have to pay $25 per month to use Vectorbt pro?

    • @ChadThackray
      @ChadThackray  2 ปีที่แล้ว

      You can just get it for one month, but then you won't get any updates.

  • @jeenalsuthar877
    @jeenalsuthar877 ปีที่แล้ว

    Is vectorbt event driven?

    • @ChadThackray
      @ChadThackray  ปีที่แล้ว

      As far as I know it's basically 100% vectorized for speed purposes

  • @taiwo_the_illusive
    @taiwo_the_illusive 2 ปีที่แล้ว

    Can you show how to use your own python code as an indicator/ to generate buy and sell signals. Also how you use backtest data from other sources not yfinance data. That would be really helpful thanks

  • @travisweedon1234
    @travisweedon1234 ปีที่แล้ว

    Thanks for this! Also, please dont call it numpee. numpie!

  • @gokhanfidan4636
    @gokhanfidan4636 2 ปีที่แล้ว

    you really look like "Tolga Sarıtaş" dude :))