Structure of a Trading Robot (Part 1)