Month: August 2022

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 »