DEV Community

Lucas Gragg
Lucas Gragg

Posted on

Technical indicator library in pure Python

I've been working on stock market screener for a while and wanted to share what I learned.

The problem

Scan the entire stock market with custom technical and fundamental filters to find your next trade. Includes pre-built screens for momentum, value, and breakout setups with real-time data.

What I built

Here are the main features I ended up shipping:

  • Custom screening with 50+ technical indicators
  • Fundamental filters (P/E, market cap, revenue)
  • Pre-built screens for popular strategies
  • Real-time data from free market APIs
  • Export results and set recurring scan alerts

Code sample

# Basic structure
class Bot:
    def __init__(self, config):
        self.config = config

    def run(self):
        while True:
            self.scan()
            self.execute()
Enter fullscreen mode Exit fullscreen mode

If you want the full working version with all the battle-tested edge cases
handled, I packaged it here: Stock Market Screener

Happy to answer questions about the architecture in the comments.

Top comments (0)