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 →