The current trading model for stocks and indices was developed using an accuracy-based learning classifier system (XCS), which combines reinforcement learning, genetic algorithms, and other heuristics to form an adaptive system whose purpose is to execute stock trades for profit.