Stock Market & Finance

  • All
  • Articles
  • Blog Post
  • General Business Automation
  • Portfolio
  • Stock Market & Finance

November 25, 2023

In one of my first posts, I showed how to pull the options chain using TD Ameritrade. This version will also get the options chain, but this time from Yahoo Finance. This is more of a webscraping solution. A copy of the notebook can be found on my GitHub and the bulk of the code will be shown below. The code below gets the tickers of the S&P...

November 16, 2023

The code below does the following A copy of the jupyter notebook can be found here The code below is the libraries used, the function to get stock data, and the ticker_list Below are the summarizing and plotting functions And the code to run this all Resulting summary will look like this

September 14, 2023

This tool allows Excel to be the main interface for trading through the Alpaca broker Below are two demo videos of the tool This tool allows the following to be done via Excel Some aspects of the tool that can be customized are Known Limitations Please note: this has only been tested on windows based machines Link to tool for purchase

July 31, 2023

This tool is comprised of a few parts. All of the code used in these posts can be purchased in a single spreadsheet if you’d like link to SMA Screener in store We are going add the Simple Moving Average calculation and indicator. Here is a link for the Simple Moving Average https://www.investopedia.com/terms/s/sma.asp. The below code has 2 functions: SMA and pullOHCL_Signals Output

July 31, 2023

This tool is comprised of a few parts. All of the code used in these posts can be purchased in a single spreadsheet if you’d like link to SMA Screener in store We are going to pull OHLC (open, high, low, close) data using Yahoo Finance for a list of tickers. The code below pulls the data for the past 10 days by ticker. This code will leverage...

July 31, 2023

This tool is comprised of a few parts. All of the code used in these posts can be purchased in a single spreadsheet if you’d like link to SMA Screener in store I’ll provide two examples of how to pull ticker data by leveraging Wikipedia. We will pull the tickers in Both of these functions will leverage the IMPORTHTML function. In addition, we will also use the QUERY...

May 29, 2023

I’ll demonstrate the following tasks: Background information on FTDs and the site we will be using can be found below A copy of the notebook can be found here: Github This shows the data/structure of the data and how the website is organized Download FTD Data Open Each Zipped Folder & Extract Add Each Extracted File To A Dataframe Review The Dataframe Note that price in this exploration...

May 26, 2023

This is an example of using Python to read a table. In this instance, the code will read all the symbols on a Wikipedia page for the S&P 500. This code can be part of a larger process. Maybe you need a list of tickers to then run through some filtering program. GitHub Link In addition to using the S&P 500 link you could also use the following...