title: Pinescript strategy not plotting
body: <p>I'm trying to create a plot to the chart based on the following conditions:</p>
  <ol>
  <li>It's the second consecutive green bar to open above the 9 day MA line</li>
  <li>It's oversold on the RSI</li>
  </ol>
  <p>However, it doesn't seem to be plotting, I have a feeling the greenbc variable is returning false for some reason - any ideas?</p>
  <pre><code>strategy(title=&quot;Swing Strat&quot;, pyramiding=1, overlay=true, default_qty_value=2, default_qty_type=strategy.fixed, initial_capital=100, currency=currency.GBP)
  
  //Plotting SMA lines
  MAPeriod9 = input(9, title=&quot;9 MA Period&quot;)
  MA9 = sma(close, MAPeriod9)
  MAPeriod180 = input(180, title=&quot;180 MA Period&quot;)
  MA180 = sma(close, MAPeriod180)
  
  plot(MA9, color=color.blue, linewidth=1)
  plot(MA180, color=color.red, linewidth=1)
  
  // Creating the RSI
  rsiSource = input(title=&quot;RSI Source&quot;, type=input.source, defval=close)
  rsiLength = input(title=&quot;RSI Length&quot;, type=input.integer, defval=14)
  
  rsiOverbought = input(title=&quot;RSI Overbought Level&quot;, type=input.integer, defval=70)
  rsiOversold = input(title=&quot;RSI Oversold Level&quot;, type=input.integer, defval=30)
  
  //get rsi value
  rsiValue = rsi(rsiSource, rsiLength)
  isOverbought = rsiValue &gt;= rsiOverbought
  isOversold = rsiValue &lt;= rsiOversold
  
  //identifying green confirmation bar
  MAcrossover = crossover(close, MA9)
  entrypoint = barssince(MAcrossover)
  greenbc = entrypoint==1 and MA9&lt;open and open&lt;close and open[1]&lt;close[1]
  
  //combining the green bar confirmation and oversold variable
  tradingsignal = ((isOversold or isOversold[1]) and greenbc)
  
  //plotting the entry point to the chart
  plotshape(tradingsignal and greenbc, title=&quot;Entry Trigger&quot;, location=location.abovebar, color=color.red, transp=0, style=label.style_xcross, text=&quot;Entry Point&quot;)
  </code></pre>