title: Is it possible to fill without producing angles?
body: <p>I want to fill between two steplines, but the fills produce angles as though I was filling between two regular lines. Is this possible?</p>
  <p><a href="https://i.stack.imgur.com/QGyNv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QGyNv.png" alt="enter image description here" /></a></p>
  <pre><code>// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
  // © bajaco
  
  //@version=4
  study(&quot;renko test again&quot;, overlay=true)
  renko_tickerid = renko(syminfo.tickerid, &quot;ATR&quot;, 14)
  renko_close = security(renko_tickerid, timeframe.period, close)
  renko_open = security(renko_tickerid, timeframe.period, open)
  var float brick_size = abs(renko_close - renko_open)
  var float previous_close = renko_open
  var float real_renko = renko_close
  
  green = real_renko &gt; previous_close
  if green and close - real_renko &gt;= brick_size
      previous_close := real_renko
      real_renko := real_renko + floor((close- real_renko)/brick_size) * brick_size
  else if not green and close - real_renko &gt;= brick_size*2
      real_renko := real_renko + floor((close- real_renko)/brick_size) * brick_size
  else if not green and real_renko - close &gt;= brick_size
      previous_close := real_renko
      real_renko := real_renko - floor((real_renko - close)/brick_size) * brick_size
  else if green and real_renko - close &gt;= brick_size*2
      real_renko := real_renko - floor((real_renko - close)/brick_size) * brick_size
  
  renko_color = color.new(color.black, 100)
  rc = plot(real_renko, linewidth=1, color=color.black, style=plot.style_stepline)
  ro = plot(previous_close, linewidth=1, color=color.black, style=plot.style_stepline)
  
  rfill = real_renko &gt; previous_close ? color.green : color.red
  fill(rc,ro,rfill, transp=50, fillgaps=true)
  
  </code></pre>