Exxon trading


I'm rather new to both trading and this website. This is my first algorithm and I tried implementing a basic pair trading strategy. The idea is that when the current ratio of two highly correlated stocks like Exxon and Chevron diverts from the 30 day average of the ratio, the algorithm exxon trading the shares for the undervalued stock and exxon trading the shares of the overvalued stock.

The shares go back to an even amount once the current ratio crosses back over the 30 day average. The algorithm seems to have moderate success.

Any input to improve the algorithm would be greatly appreciated. Sorry, something went wrong. Try again or contact us by sending feedback. The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement exxon trading any security or strategy, nor does it constitute an offer to provide investment advisory exxon trading by Quantopian.

In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action exxon trading none of Quantopian exxon trading any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act ofas amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein.

If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website.

The views are subject to change, and may have become unreliable for various reasons, exxon trading changes in market conditions or economic circumstances. There was an error loading this backtest. Backtest from to with initial capital. Returns 1 Month 3 Month 6 Month 12 Month. Alpha 1 Month 3 Month 6 Month 12 Month. Beta 1 Exxon trading 3 Month 6 Month 12 Month.

Sharpe 1 Month 3 Month 6 Month 12 Month. Sortino 1 Month 3 Month 6 Month 12 Month. Volatility 1 Month 3 Month 6 Month 12 Month. This backtest was created using an older version of the backtester. Please re-run this backtest to see results using the latest backtester. Learn more about the recent changes. There was a runtime error.

Sorry for the inconvenience. Try using the built-in debugger to analyze your code. If you would like help, send exxon trading an email. Please sign in or join Quantopian to post a reply.

Exxon trading a Quantopian member? Algorithm Backtest Live Algorithm Notebook. Sorry, research is currently undergoing maintenance.

Please check back shortly. Exxon trading the maintenance period lasts longer than expected, you can find updates on status. Sorry, something went wrong on our end. Please try again exxon trading contact Quantopian support. You've successfully submitted a support ticket. Our support team will be in touch soon. Send Error submitting support request. Join Quantopian to get access to our financial data, platform, and hands-on educational curriculum.