Pine Example: Holding a state in a variable

253 1
An answer to user's question
Jun 26
Release Notes: Same thing in Pine Script v4
Remove from Favorite Scripts Add to Favorite Scripts
This will be much easier in Pine v4 with the new `var` keyword.
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out