ClosedBar.AverageBody

Calculates the Average Body of the latest closed bar.

Returns: Series<Number>

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

1
function ClosedBar.AverageBody(): SMA(ClosedBar.Body(), 10)