if total_value_end_of_day > total_value_start_of_day then productive else NOT productive
Do that enough days in a row and you'll have little else to worry about.
(I'd say "good" instead of "productive".)