[TEMPLATE] Code Block Comments

BinarySword Updated   
Here I present to the community at large a collection of code comment blocks that I think will be useful, especially for larger script projects bordering on 2,000 lines or above of code.

  • Work with the community to expand this template to be even more useful with the inclusion of useful global colour sets, variables, tooltips, groups, etc.
  • better script thumbnail.
  • full-screen table or label outlining the script's use-cases.
Release Notes:
  • = Code block comments to better adhere to the TradingView Code Style Guidelines. Resulting in an overall reduction of code from 2005 to 1750 lines.
  • = A few spacing issues that were missed in the initial release.
  • = Index numbering under "2. Indicators and Functions" where B1... skipped to B3...
Release Notes:

Release Notes:

  • ADD = ASCII header code comment + comment on how to create your own.
  • CHANGE = Revision History ⮩ to ⇲ as fixes some minor formatting issues.

I took a break from trading but I am back now and exploring all the fantastic new features of PineScript. Expect to see new scripts released in the coming months :)
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.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?