Python

Using SL and PT in backtesting in Python with vectrobt

Author name: QuantNomad

Using SL and PT in backtesting in Python with vectrobt

When you backtest the strategies you most often you use Profit Target and Stop Loss to protect your earnings and limit your loss. All modern backtesting engines should have these essential features. In this article, I will show you how you can use SL and PT in vectorbt library. In vectorbt framework, you can do Using SL and PT in backtesting in Python with vectrobt Read More →

Using SL and PT in backtesting in Python with vectrobt Read More »

Backtesting intraday stock strategies in Python with vectorbt

Creating trading bots these days on intraday data become more and more popular days. For simple backtesting trades usually go to Pine Script. But with libraries like vectorbt backtesting in Python become quite simple. Also, not many people know that you can get intraday data for stocks from Yahoo Finance for free. So in summary

Backtesting intraday stock strategies in Python with vectorbt Read More »

Backtesting Pine Script Strategies on entire history with Deep Backtesting

If you backtest a lot of strategies in TradingView you most likely know that that TradingView is a bit limited in terms of backtesting. If you run backtest in a standard way you get your backtest computed on the last ~ 20k bars only for the most expensive account. And that’s not enought for majority

Backtesting Pine Script Strategies on entire history with Deep Backtesting Read More »

The `when` parameter will be deprecated in future Pine versions. How to fix it?

Just recently you might start to see the following warnings in Tradingview : line 12: The `when` parameter will be deprecated in future Pine versions. We recommend using `if` or `switch` conditional blocks instead This is happening when you’re using “when” parameter in any strategy.* functions. For example, following code will produce 2 warnings for

The `when` parameter will be deprecated in future Pine versions. How to fix it? Read More »