This example will give the answer: https://tradingview.github.io/lightweight-charts/tutorials/how_to/series-markers