We construct an agent-based computer simulated financial market. Trading in this market is not continuous. The market price is formed using a limit-order book. The modelled investors receive biased information and they attempt to maximize their wealth. Different traders, from noise to chartist and informed, coexist in the same market. We show how stylized facts can be formed by the presence of chartists or a simple lag in investor information. Price bubbles can arise when market prices are dominated by technical traders. Interestingly we show that well informed investors can earn more if the adopt, in special situations, a technical strategy. Using our results we propose a new theorem for market dynamics called “sometimes efficient markets”.