Hello!
Simple script here!
(BE SURE TO TRY WITH BAR REPLAY)
This indicator measures the current quarterly gain/loss (Q1, Q2, Q3, Q4) and the average quarterly gain/loss.
The average percentage gain/loss for Q1, Q2, Q3, and Q4 are calculated and displayed on the chart; colors are adjustable.
By default, Q1 is measured as blue, Q2 as green, Q3 as red and Q4 as yellow.
Also measured is the average annual percentage gain/loss and the current year's running gain/loss.
Years are split by a dashed line, beneath which a label displays that year's percentage gain or loss, in addition to the average annual gain or loss.
Labels and lines update per bar!
A constantly updating line connects the high price of the first session for a quarter to the current high price. The line will delete and restart when a new quarter occurs.
Labels, lines, and line fills are color coded. So, any change to the quarterly/annual color scheme will change the color for all labels, lines, and line fills for that particular quarter!
Thanks for reading!