Filtering a composite collection

I need to filter a composite collection. For example, I have the entity CtaCte and its collection is CtaCteDetail. I need to filter CtaCteDetail by the attribute Fecha and by the attribute TipoMovimiento. Could you help me with this as I am new to this framework. Thank you.

You have to create a separate collection container for that and apply filters.