Duality in optimal consumption--investment problems with alternative data