Quantitative Investment Strategies: A Deterministic, Rule-Based Framework