Foundations of Trading: Developing Profitable Trading Systems using Scientific Techniques