ClosedBar.MiddlePoint

Calculates the Middle Point of the latest closed bar.

Returns: Series<Number>

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

1
function ClosedBar.MiddlePoint(): 0.5 * (ClosedBar.open + close)