• Products
  • Community
  • Markets
  • Brokers
  • More
Get started
  • Community
  • /
  • /Collapse

Collapse

test - wave collapseexperimental: translates a gaussian wave to collapse from high/low peaks, slice of a pun intended to the cat in the box :)
Pine Script® indicator
by RicardoSantos
Jan 18, 2022
66
How to Collapse, hide, fold blocks of your codeThis script contains no trading value. This is no indicator. It is only showing how to use a powerful editor feature: To collapse (hide, fold) and expand (unhide, unfold) some blocks of your code. Don't tell me you never wished it was there ;) Well - it is! How to enable it? Look at line 4 of this script. It starts with //, but then there is this "opening curly bracket" - it marks where block of code starts. It produces that small arrow near number "4" of the code line, which you can click. You close the block with "closing curly bracket" in line 18. Thanks @ricardosantos for showing me this! Next breakthrough editor feature like that will be Search&Replace. Stay tuned! ********* Forex / Indices / Commodities traders who want to start AUTO-TRADING might want to take a look at http://www.tradingconnector.com, which allows no-latency trades execution from TradingView to MT4.
Pine Script® indicator
by Peter_O
Sep 5, 2019
2121

Select market data provided by ICE Data services. Select reference data provided by FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

More than a product
  • Supercharts
Screeners
  • Stocks
  • ETFs
  • Bonds
  • Crypto coins
  • Crypto pairs
  • CEX pairs
  • DEX pairs
  • Pine
Heatmaps
  • Stocks
  • ETFs
  • Crypto
Calendars
  • Economic
  • Earnings
  • Dividends
More products
  • Yield curves
  • Options
  • News Flow
  • Pine Script®
Apps
  • Mobile
  • Desktop
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Tools & subscriptions
  • Features
  • Pricing
  • Market data
Special offers
  • CME Group futures
  • Eurex futures
  • US stocks bundle
About company
  • Who we are
  • Manifesto
  • Athletes
  • Blog
  • Careers
  • Media kit
Merch
  • TradingView store
  • Tarot cards for traders
  • The C63 TradeTime
Policies & security
  • Terms of Use
  • Disclaimer
  • Privacy Policy
  • Cookies Policy
  • Accessibility Statement
  • Security vulnerability
  • Status page
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Look FirstLook First