Trade two quotes difference

Hi,
I need from CVX stock quotes deduct XOM stock quotes (CVX-XOM spread) and trade new chart. How can I do that??