Learning behavior in trading