ClosedBar.UpperShadow

Calculates the Upper Shadow candle pattern.

Returns: Series<Number>

ClosedBar.UpperShadow is a built-in function - you can use it directly. Below is an example implementation:

1
function ClosedBar.UpperShadow(): high - Math.Max(ClosedBar.open, close)