A new Python project demonstrates how to build a real-time market monitoring and simulated trading system using live intraday stock data. The system downloads recent price, volume, high, and low data for major stocks and ETFs, then engineers technical indicators such as moving averages, RSI, MACD, Bollinger Bands, Average True Range, volatility, and volume ratios.
These features are used to train a Random Forest machine learning model that estimates the probability of short-term price increases based on recent market behavior. The system combines AI-generated probabilities with traditional technical analysis to produce Buy, Hold, and Sell signals for each security.
It also includes a simulated portfolio management engine that executes virtual trades while enforcing risk management rules such as maximum position sizes and minimum cash reserves. An alert system automatically reports meaningful trading opportunities along with the technical and AI-based reasoning behind each recommendation.
Throughout the monitoring process, the program repeatedly refreshes market data at user-defined intervals to mimic a real-time trading dashboard during market hours. Interactive Plotly charts display current prices alongside technical indicators.
This project provides a practical framework for combining machine learning with real-time data processing to make informed trading decisions.