Sorry, First time using this forum.
The indicator i was hoping creating was variable depending on the starting date of the graphic, not the historic.
I try your code (thanks for that) but the value is constant because is always the value of the first date of the historic of the company, not the graphic.
For example, in the capture, I used the varaible of the year you used in the code, but the starting date of the graphic is 2012-2013, so i was hoping the variable to get that value.
thank you very much for the asnwer.