TradingView Tutorials

The Quant Nomad has over 6 years’ experience in the quantitative trading industry (15+ years in programming).
He has helped more than 200 traders and companies create/optimize their algorithmic trading models.
How to fix ‘expression’ argument of security function should have no side effects
No Comments

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 →