I don't think you'll be able to remove the emotion from the transactions.
Definitly, thats by far the hardest part for newbies in the market. They cost me a good amount of money back in my early trading days. I am still not able to manage my emotions 100%, especially at risky trades.