ClosedBar.Body

Calculates the Body of the latest closed bar.

Returns: Series<Number>

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

1
function ClosedBar.Body(): Math.Abs(ClosedBar.open - close)