TradingView
BinarySword
21 de Mar de 2022 02:49

[TEMPLATE] Code Block Comments 

Gold/U.S. DollarFXCM

Descrição

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



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

Notas de Lançamento

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

Notas de Lançamento

->

Notas de Lançamento

->

  • 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 :)
Comentários
script051
I needed something like that
ashergill25
Yeah super handy
BinarySword
@ashergill25 & @script051, Happy you both found it useful :)
UnknownUnicorn36183117
The GOAT.
mtahreemalam
Masterpiece
BinarySword
@mtahreemalam, thanks, glad you liked :)

I will be releasing a currency pair to emoji flag set soon which works wonders when paired with an alert system, especially when sending TradingView Alerts -> Telegram.
Can also work for watermarking your charts with the current pair you are on, although country flag emojis are only fully supported on mobile devices so you will likely only see US / AU (🇺🇸/🇦🇺).

I may also release my extensive alert solution which hooks into PineConnector & tradingview.to while I also supported webhookalerts.com but the website is now offline/discontinued service which is a shame.

p.s. I just updated this script with some very minor improvements. More substantial improvements I'll look into that more next year. (feedback would be appreciated in that regard).
Mais