vitvlkv

Pine Example: Holding a state in a variable

2592 views
31
An answer to user's question https://stackoverflow.com/questions/5417...
Release Notes: Same thing in Pine Script v4
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?