Indexes. The template is inside, the template is configured for a folder, put the indicators along with the folder.
In the previous indicators, there is incomplete protection against division by 0. Perhaps they will not always be drawn. I do not know which is better, draw and lie or show nothing.
I have corrected and supplemented the protection against division by 0.