Wick Bodies [vnhilton]
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © vnhilton

//@version=4
study("Wick Bodies [vnhilton]", overlay=true)

o = open
c = close

r = color.red
g = color.lime
b = color.black

topWickEnd = o > c ? o : c
bottomWickEnd = o > c ? c : o

//top wick
plotcandle(high, high, topWickEnd, topWickEnd, color=r, bordercolor=b, wickcolor=na, title="Top Wick")

//bottom wick
plotcandle(low, bottomWickEnd, low, bottomWickEnd, color=g, bordercolor=b, wickcolor=na, title="Bottom Wick")
