SUMMARY: The purpose of this project is to construct an algorithmic trading model and document the end-to-end steps using a template.
INTRODUCTION: This algorithmic trading model uses daily close prices to generate trading signals. If the stock closes lower for the day, we will purchase at the opening of the next trading day if we did not have the stock on-hand. If the stock closes higher for the day, we will sell the stock at the opening of the next day if we have the stock on-hand. We will take no action if we encounter the trading signal to sell but have no stock on-hand or the trading signal to buy if we already have the stock on-hand.
We apply the analysis on a stock for a fixed period and compare its return/loss to a simple long-only model. The long-only model will purchase the stock at the opening of day one and hold the stock through the entire time.
In this Take1 iteration, we will construct and test the trading model for the stock “GOOG” during the year of 2019.
ANALYSIS: During 2019, the “Buy Low Sell High” strategy returned 12.38%. In the meantime, the long-only approach achieved an accumulated return of 15.98%.
CONCLUSION: For this period, the “Buy Low Sell High” strategy did not exceed the more straightforward long-only approach, so we should consider modeling more and different methods for this stock.
Dataset ML Model: Time series analysis with numerical attributes
Dataset Used: Various sources as illustrated below.
Dataset Reference: Various sources as documented below.
The HTML formatted report can be found here on GitHub.