Applying evolutionary ideas to algorithmic trading