hi.
With draw (rectangle,triangle,ellipse,candle) you can add the ‘BORDERCOLOR(r,g,b,a) statement in the line.
Adding this, changes object from a border to fill’ed object.
Coloured(r,g,b,a) controls the fill’ed part when bordercolor used.
When BORDERCOLOR(r,g,b,0) used, object is fill’ed only, no border if transparency is zero.
Using these allows combinations of border/fill’ed as well as colour combinations.
druby
// run as independant indicator
// add as new 'Panel'
defparam drawonlastbaronly = true
drawrectangle(barindex+2,high,barindex+10,low)coloured(0,0,255,255)bordercolor(0,0,0,0)
drawtriangle(barindex+10,high,barindex+10,low,barindex+20,close)coloured(0,255,0,255)bordercolor(0,0,0,0)
drawellipse(barindex+20,high,barindex+30,low)coloured(225,255,0,255)bordercolor(0,0,0,0)
if open = max(open,close) then
r =255
g=0
else
r = 0
g = 255
endif
drawcandle(open,high,low,close)coloured(r,g,0,255)bordercolor(r,g,0,255)
return