Pergunta de entrevista da empresa PlayMeTech

Implement a class about the strategy mentioned in the attached document, use pseudo code to indicate the interface of the strategy (price change, trade occurs).