In this algorithm I use a pairs trading strategy with Chevron and Exxon. Whenever they diverge I short sell the over-performer and go long on the under-performer. Once they converge I sell everything. I'm not getting great results at the moment. Is it that I didn't choose a good pair? Did I mess up my negative signs and accidentally short sell the under-performer? All constructive feedback is welcome.