Indicator output in main window

does someone have an example or can someone make me a quick example of an indicator that just outputs a value that’s displayed in the main chart window?
Thanks

This request is a bit confusing to me. If you have source code for the indicator, just add a call to the function comment() for the text and / or value that you wish to display. That will put the text in the upper left hand corner of the chart.

yep, that’s the easiest way. You can get more complicated with arrows and positioning etc but depends…