I'm unsure what is meant by "do I need to leave the Avast app open on both?"
The program is always running in the background, that is what an on-access antivirus scanner does.
If by Open you mean does the User Interface (UI) have to remain Open in order to work, that would be No, only when you need to access the UI.