title: How to plot last Open or Close on current candle as a Circle by checking candle[1] for signal
body: <p>I have been working on an algorithm for pinescript and I am stuck with some logic relating to hypothetically entering the position.</p>
  
  <p>First of all <strong>bullPlot and bearPlot</strong> are either <strong>true or false</strong> which is where the <strong>long and short</strong> 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 <strong>the close for long/short depending on red/green candle</strong></p>
  
  <p>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. </p>
  
  <p><a href="https://i.stack.imgur.com/rdFQ4.png" rel="nofollow noreferrer">example of the chart/algo</a></p>
  
  <p><a href="https://i.stack.imgur.com/7Cuyt.png" rel="nofollow noreferrer">example of entry dot</a></p>