title: Pine - labelling the second bar to open above the sma line
body: <p>I'm new to pine and I'm trying to put a label on the second bar that opens above an sma line.</p>
  <p>Here's what I've got so far:</p>
  <pre><code>study(shorttitle = &quot;SMA - ST1&quot;, title=&quot;Simple Moving Average&quot;, overlay=true) 
  
  MAPeriod = input(9, title=&quot;MA Period&quot;)
  MA = sma(close, MAPeriod)
  
  plot(MA, color=color.blue, linewidth=1)
  
  MAcrossover = crossover(close, MA)
  entrypoint = barssince(MAcrossover == 2)
  
  if MAcrossover and entrypoint
      lun1 = label.new(bar_index, na, 'entrypoint', 
        color=color.red, 
        textcolor=color.red,
        style=label.style_xcross, size=size.small)
      label.set_y(lun1, entrypoint) 
  </code></pre>
  <p>Any suggestions as to the best logic to use would be really helpful.</p>