Python

Implementing UT Bot Strategy in Python with vectorbt

QuantNomad

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 →

A clever way of exporting data with alerts from TradingView

TradingView is not very friendly when it’s coming to exporting/importing custom data. But still, there are ways you can use to do that to some extent. In this article, I’ll show you an export method that will allow you to export custom-calculated data with email alerts. In this article, I’ll work with a simple SMA A clever way of exporting data with alerts from TradingView 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 →