I think the best you can do is to aggregate the amount with a SUM metric and then group by date.
If you’re filtering by a date range, Looker Studio won’t be able to see any data before that date range. So there’s no way to compute an Opening Balance.
Closing Balance would just be the sum of all of the amounts in that timeframe, I’m assuming.