TradingView

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

Author name: QuantNomad

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

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 →

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

The function ‘XXXX’ should be called on each calculation for consistency. It is recommended to extract the call from this scope

Ever come across the following warning message in Pine Script? It happens quite often for some developers. The function ‘XXX’ should be called on each calculation for consistency. It is recommended to extract the call from this scope. This is not an error per se but rather a warning, which means your script will still

The function ‘XXXX’ should be called on each calculation for consistency. It is recommended to extract the call from this scope Read More »

How to Set Price Input Interactively From Chart in Pine Script

Inputs in Pine Script make it possible for traders to change the values that the script uses in its calculation logic. TradingView provided specific widgets for price and other types of input. Recently (late 2021), TradingView introduced a new interactive mode for time and price inputs that allows users to simply modify inputs by clicking

How to Set Price Input Interactively From Chart in Pine Script Read More »