I have been working on an algorithm for pinescript and I am stuck with some logic relating to hypothetically entering the position.
First of all bullPlot and bearPlot are either true or false which is where the long and short signals are painted on the chart. Relating to my strategy, once a long/short signal is plotted you then wait for price to go beyond the close for long/short depending on red/green candle
How can I create a statement which checks if there is a signal on the previous candle, if true, plot a circle based on last close. This is merely to help with the manual trading side of the algorithm.