OPEN-SOURCE SCRIPT

Week of the Year indicator

Simple time indicator showing weeks of the year. Acts to help you define the greater perspective of time on your charts. You can overlay it on the entire chart or use it small and consolidated like I prefer it.

Easiest to configure colors in the script itself and then leave transparency values untouched:
q1w1 = the first week of the first quarter of the year (1st week of january, indicating a new year)
q1= 1-13
q2= 14-26
q3= 27-39
q4=40-53

Hope this helps you, like it helps me.
Best regards,

IMPORTANT NOTE:
Because the scripts asks for the week of the year it doesn't exactly indicate the first day of the quarter of the year. Instead it indicates the year like this: 52 / 4 = 13 W p/Q. Or in other words: 13 weeks per quarter of the year (roughly). Every 5.6 years there's a 53rd week, which will not cause any trouble as long as TV allows the use of the 53rd week, which I think it does.
TIMEtimezonetimezonesweekweekoftheyear

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad