Building an AI financial market model - Lesson IV