1,000,000 backtest simulations in 20 seconds with vectorbt
Автор: PyQuant News 🐍
Загружено: 2024-08-14
Просмотров: 13500
Описание:
The first time I tried to backtest a pairs trading strategy, I used MATLAB. I was excited when I ran the strategy and saw great results. When I traded the strategy live, I lost money immediately. So I ran backtest simulations to optimize the z-score and ADF test statistic. I ran it again and had amazing results again! And I lost money. Again. And again. And again. It turned out that I was making a big mistake. One that costs countless traders countless money. I was tweaking my parameters based on random fluctuations in the data, instead of real market inefficiencies. I learned my lesson the only way traders do: By losing money. In 2023, there are dozens of backtesting frameworks. But very few efficiently optimize parameters. And fewer still let you efficiently optimize parameters the right way: Using walk-forward optimization. vectorbt is a new Python library that addresses that. Here’s how.
~~~
SUBSCRIBE TO PYQUANT NEWS
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
----------------------------------------------------------------
Free algorithmic trading course
https://www.pyquantnews.com/free-algo...
----------------------------------------------------------------
Follow for more free content:
• Twitter: https://x.com/pyquantnews
• LinkedIn: / pyquant-news
--------------------------------------------------------------------
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: