title: Using conditional if statement for plotshape
body: <p>I have problem with following code, and would appreciate help:</p>
  
  <pre><code>//@version=4
  study(title="Example", shorttitle="Ex", overlay=true)
  
  //Average volume, 45 periods
  sum = volume[1]
  for i = 1 to 45
      sum := sum + volume[i]
  volumeMA = sum / 45
  VolumeRatio = volume/volumeMA
  
  //Calculate Scores - Volume
  VolumeScore = 0
  if VolumeRatio &gt; 1 and VolumeRatio &lt; 1.5 
      VolumeScore := 1
  if VolumeRatio &gt;= 1.5 and VolumeRatio &lt; 2 
      VolumeScore := 2
  if VolumeRatio &gt;= 2 
      VolumeScore := 3
  
  //Calculate Scores - HH
  HH_Bull = 0
  if high &gt;= highest(high, 5)
      HH_Bull := 1    
  if high &gt;= highest(high, 8)
      HH_Bull := 2    
  if high &gt;= highest(high, 14)
      HH_Bull := 3
  
  HH_Bear = 0
  if low &gt;= lowest(low, 3)
      HH_Bear := 1    
  if low &gt;= lowest(low, 6)
      HH_Bear := 2    
  if low &gt;= lowest(low, 10)
      HH_Bear := 3
  
  //Caclulate Total Score
  Candle_Bull_Score = VolumeScore + HH_Bull
  Candle_Bear_Score = VolumeScore + HH_Bear
  
  BullCandle = close &gt; close[1] and open-low &gt;= 10
  BearCandle = close &lt; close[1] and high-open &gt;= 10
  
  plotshape(BullCandle, title= "Bull", location=location.belowbar, color=color.green, transp=0, style=shape.triangleup, text="BUY-" &amp; Candle_Bull_Score)
  plotshape(BearCandle, title= "Bear", location=location.belowbar, color=color.red, transp=0, style=shape.triangledown, text="SELL-" &amp; Candle_Bear_Score)
  </code></pre>
  
  <p>Please note that I have deliberately combined <code>text="Buy" &amp; Candle_Bull_Score</code>, aware that it won't work just to explain what I'm trying to do.
  I want to plot the "BullCandle" variable but give the indication of the signal strength by using Candle_Bull_Score and Candle_Bear_Score.</p>