title: print a value with label.new using pine script
body: <p>I am doing a simple calculation and trying to print the value on screen in trading view using pine script.</p>
  <p>When I do the printed value is wrong explained the issue below with example</p>
  <p>H3 is 11540.49
  L3 is 11491.71
  diff = (11540.49 - 11491.71) = 48.78
  where as i get 115.362</p>
  <p>Let me know where I am doing the mistake, below is the code</p>
  <pre><code>study(title=&quot;printlabel&quot;,overlay=true)
  yhigh=security(syminfo.tickerid, &quot;D&quot;, high[1], barmerge.gaps_off, barmerge.lookahead_on)
  ylow=security(syminfo.tickerid, &quot;D&quot;, low[1], barmerge.gaps_off, barmerge.lookahead_on)
  yclose = security(syminfo.tickerid, &quot;D&quot;, close[1], barmerge.gaps_off, barmerge.lookahead_on)
  yopen = security(syminfo.tickerid, &quot;D&quot;, open[1], barmerge.gaps_off, barmerge.lookahead_on)
  
  H3 = yclose + (yhigh-ylow) * 1.1/4
  L3 = yclose - (yhigh-ylow) * 1.1/4
  
  diff = H3-L3
  
  var label1 = label.new(bar_index,high, text=tostring(diff), style=label.style_circle)
  //label.set_x(label1, bar_index[10])
  label.set_xloc(label1, time, xloc.bar_time)
  
   plot(H3,color = color.red)
   plot(L3,color = color.green)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/UbVgT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UbVgT.png" alt="Screen shot of the indicator" /></a></p>