How to avoid irrational investment and get returns on the markets