In this article, I will show you how to fix the “‘expression’ argument of security function should have no side effects” error in PineScript. Here is an example of the script that triggers that error: Error message: The issue is that when you call a function inside a “security” function you can’t plot trend line How to fix ‘expression’ argument of security function should have no side effects Read More →
- 1/
- 1