Pine Script

Loop through a set or all historical bars in Pine Script

Pine Script

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 →

Adding a dynamic filter to Pine Script strategies.

Quite often your strategies in TradingView will be complicated and will have multiple conditions at once. You might want to check if certain conditions work or not for your strategy. It’s a good idea to create a checkbox in your parameter that switch on/off certain filters. In this article, I’ll show you a simple example Adding a dynamic filter to Pine Script strategies. 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 →