I'm new to pine-script and I thought this would be simple, but I'm struggling for a few hours now without much success. I would appreciate help with figuring out how to plot a horizontal line at the closing price of the last trading day. Here is an example of what I was trying to create.
