Function to make it easy to display text information on the chart.
Versionshinweise:
fixed the issue of the labels being printed on the wrong order.
Versionshinweise:
added barstate.islast as a conditional inside the function, this should improve page loading times, thx lucf, amol.