How timrivoli/stock-price-trade-analyzer works
Stock Price Trade Analyzer is a Python toolkit for historical market analysis, stock selection, strategy backtesting, and optional neural forecasting, with CSV and optional SQL Server persistence. The core workflow loads ticker history, derives indicators, applies analysis or trading logic, then produces performance records and charts. A separate updater maintains SQL-backed market data and derived trading analytics. The README documents additional database and selection capabilities beyond the sampled excerpts; their exact wiring is therefore shown conservatively.
Main entry points: Prices.py Price History · EvaluatePrices.py Price Analysis · PriceDatabaseUpdate.py Database Updater · DataIO.py Download & SQL I/O
Components 20
Market Data
- Price History
_classes/Prices.py - Download & SQL I/O
_classes/DataIO.py
Analysis & Selection
- Price Indicators
_classes/Prices.py - Stock Selection
_classes/Selection.py - Ticker Universes
_classes/TickerLists.py - Market Events
_classes/MarketEvents.py - Price Analysis
EvaluatePrices.py - Charts
_classes/Graphing.py
Strategy Backtesting
- Backtest Examples
EvaluateTradeModels.py - Seasonal Strategy
Seasonal_Trading.py - Portfolio Simulation
_classes/Trading.py - Trade Results
_classes/Trading.py
Price Prediction
- Forecast Training
TrainPrices.py - Neural Forecasting
_classes/SeriesPrediction.py
Persistence & Updates
- CSV Cache
- Database Updater
database/PriceDatabaseUpdate.py - SQL Server Store
database/PTA_Generate.sql - Seed Tickers
database/tickerlist.csv
Other components
- Analyst
- Yahoo Finance
Connections 26
- Analyst → Price Analysis: runs analysis
- Analyst → Backtest Examples: runs backtest
- Price Analysis → Price History: loads history
- Price History → Download & SQL I/O: downloads data
- Download & SQL I/O → Yahoo Finance: requests prices
- Price History → CSV Cache: caches history
- Price Analysis → Price Indicators: calculates indicators
- Price Analysis → Stock Selection: analyzes universe
- Ticker Universes → Stock Selection: supplies tickers
- Price Analysis → Market Events: analyzes events
- Price Analysis → Charts: plots analysis
- Backtest Examples → Portfolio Simulation: runs strategy
- Seasonal Strategy → Portfolio Simulation: runs strategy
- Portfolio Simulation → Price History: uses price history
- Portfolio Simulation → Trade Results: records trades
- Backtest Examples → Charts: plots comparison
- Analyst → Forecast Training: trains forecast
- Forecast Training → Price History: loads history
- Forecast Training → Neural Forecasting: trains model
- Price History → Neural Forecasting: delegates forecasts
- Analyst → Database Updater: starts refresh
- Database Updater → Price History: downloads history
- Database Updater → Download & SQL I/O: queries and writes
- Download & SQL I/O → SQL Server Store: reads and writes
- Database Updater → Seed Tickers: seeds universe
- Database Updater → Stock Selection: refreshes picks