defparam drawonlastbaronly = true
thickness = 1
size = 20
// xy coordinates
x1 = barindex[size]
y1 = high[size]
x2 = barindex
y2 = low
// fill color
r = 255
g = 0
b = 255
a = 0 // 0 = no fill
// border color
br = 255
bg = 0
bb = 255
ba = 255 // 0 = no border
if thickness = 1 then
drawrectangle(x1,y1,x2,y2) style(line,1) coloured(r,g,b,a) borderColor(br,bg,bb,ba)
elsif thickness = 2 then
drawrectangle(x1,y1,x2,y2) style(line,2) coloured(r,g,b,a) borderColor(br,bg,bb,ba)
elsif thickness = 3 then
drawrectangle(x1,y1,x2,y2) style(line,3) coloured(r,g,b,a) borderColor(br,bg,bb,ba)
elsif thickness = 4 then
drawrectangle(x1,y1,x2,y2) style(line,4) coloured(r,g,b,a) borderColor(br,bg,bb,ba)
elsif thickness = 5 then
drawrectangle(x1,y1,x2,y2) style(line,5) coloured(r,g,b,a) borderColor(br,bg,bb,ba)
endif
return high,low