Analysis of trading systems and models