Daily Python Projects

Daily Python Projects

Build a Stock Market Analysis & Alert System: Day 2 - Technical Analysis & Price Alerts

Level: Intermediate

Ardit Sulce's avatar
Ardit Sulce
Feb 25, 2026
∙ Paid

Projects in this week’s series:

This week, we progressively build a stock market analysis and alert system with Python.

  • Day 1: Stock Price Tracker

  • Day 2: Technical Analysis & Price Alerts (Today)

  • Day 3: Automated Email Reports

View All Projects This Week


Today’s Project

Yesterday we built a stock price tracker that fetches real-time data. Today we’re adding technical analysis and intelligent alerts — calculate indicators like RSI and Moving Averages, set price targets, and get notifications when stocks hit your desired levels.

We’re transforming your tracker into a smart monitoring system that watches the market for you and alerts you when opportunities arise!


Project Task

Create a technical analysis and alert system that:

  • Calculates technical indicators (RSI, SMA, EMA, MACD)

  • Detects buy/sell signals based on indicators

  • Allows users to set price alert targets

  • Sends email notifications when alerts trigger

  • Shows overbought/oversold conditions (RSI)

  • Displays trend analysis (moving averages)

  • Provides actionable trading signals

This project gives you hands-on practice with technical analysis, mathematical indicators, alert systems, email automation, and building intelligent monitoring tools — essential skills for algorithmic trading and market analysis!


Expected Output

When the program runs, it will ask the user to enter the ticker stock symbol they want to get email notifications for. Here the user enters “AAPL” for Apple stock:

The program displays the current price and also asks the user to enter the target price (e.g., 273.35):

When that price is reached, the program will trigger a price alert and send an email to the user. Here is the actual email I received for this particular example of Apple stock:

This is highly customizable and you can create a free PythonAnywhere account and add the script to be executed as a task - it just takes 5 minutes to set up.


Coming Tomorrow

Tomorrow we’re building automated email reports — get daily market summaries, portfolio updates, and top movers delivered straight to your inbox with professional HTML formatting and embedded charts!


View Code Evolution

Compare today’s solution with earlier versions and see how we’re building a complete stock analysis system.

Keep reading with a 7-day free trial

Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Ardit Sulce · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture