Text this: Dynamic portfolio selection based on the event tree