Can AB and AFL do what I need?

Since your account isn't marked with License verified badge I assume you are on trial and I have moved your question to "Presale/Trial"

If you purchased license make sure you verify your license as explained here.

As to your question: yes AmiBroker can do rebalancing easily, see Knowledge Base: