Automated trading systems using reinforcement learning