Month: June 2020

How to fix “cannot use a mutable variable as an argument of the security function” error

Here is an example of pivot points calculation in PineScript: This works fine in PineScript: But If you’ll try to compute the same pivots on Higher Time Frame with security function, daily in this case: That won’t work and you will see the following error in console: ” line 12: Cannot use a mutable variable …

How to fix “cannot use a mutable variable as an argument of the security function” error Read More »

Example of fancy complex strategy alerts in TradingView

Alerts on strategies were introduced just recently in TradingView.  These alerts have an alert_message placeholder which allows you to compose in PineScript very complex alerts and insert quite a lot of information in them. Here is just a very simple example of how they can look like.  As you can see I added some information about the …

Example of fancy complex strategy alerts in TradingView Read More »