- 1-G_B_vCKKegH9ph2uIHqbwQ.jpeg (7.86 KiB) Viewed 850 times
Name indicator is support and resistance pivot points.
The code is
If Year<>Year[1] then
yearlyClose = close[1]
yearlyHigh = Highest[BarIndex - lastYearBarIndex](High)[1]
yearlyLow = Lowest[BarIndex - lastYearBarIndex](Low)[1]
lastYearBarIndex = BarIndex
endif
return yearlyClose, yearlyHigh, yearlyLow
Thank you