OPEN-SOURCE SCRIPT
Desempenho 4ªs (MA)

This Pine Script v5 indicator calculates the performance from Wednesday to Wednesday at 10:30 AM for the charted instrument. Every Wednesday at that time, it records the closing price and computes the percentage change, assigning a signal: +1 for increases above 1 %, -1 for declines below -1 %, and 0 for intermediate movements. It plots a five-period simple moving average on the main chart, color-coded green, red, or gray based on the weekly signal. Vertical dotted lines mark each weekly separation, and two blue horizontal lines denote the ±1 % thresholds for the current week. A label displays the performance percentage and signal.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
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.