OPEN-SOURCE SCRIPT

[TEMPLATE] Code Block Comments

Updated
█ OVERVIEW
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.

snapshot

█ PLANNED FUTURE UPDATES
  • [IMPROVEMENT] 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.
  • [ADD] better script thumbnail.
  • [ADD] full-screen table or label outlining the script's use-cases.
Release Notes
█ CHANGELOG
  • [CHANGE] = Code block comments to better adhere to the TradingView Code Style Guidelines. Resulting in an overall reduction of code from 2005 to 1750 lines.
  • [FIX] = A few spacing issues that were missed in the initial release.
  • [FIX] = 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.


Comments:
*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 :)
cleancodecode-commenteducationalFREEPine utilitiestemplatetoolkitusefulutilitiesutility

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Looking for an ECN broker which is reputable, still offers 1:500 leverage, supports TradingView, & offers commissions from $6/lot down to $3/lot, well you're in luck :)

Follow my IB link today
blackbull.com/en/live-account/?ib=420187
Also on:

Disclaimer