This repository contains a Python-based analysis tool to download, analyze, and visualize stock data from the Swedish stock exchange (OMX Stockholm). It uses various technical indicators and produces financial visualizations and plots.
- Automatic data download using
yfinance - Calculation of 30+ technical indicators using
TA-Lib - Multiple plotting sets to visualize moving averages, RSI, MACD, Bollinger Bands, Ichimoku Cloud, and more
- Candlestick charting with pattern detection (e.g., Hammer, Doji, Engulfing)
- Automatic saving of plots and CSV exports for further analysis
The following libraries are required:
pandas
numpy
matplotlib
yfinance
talib
mplfinanceInstall them with:
pip install -r requirements.txtStock_Market/
├── data/
│ └── selected/
│ ├── plots_YYYY-MM-DD/
│ │ └── [PNG plots for each stock]
│ └── stock_data_combined_YYYY-MM-DD.csv
├── StockMarket_DataAnalysis.py
├── requirements.txt
└── README.md
Ensure the folder
data/selectedexists or is auto-created when you run the script.
To run this script, you need valid ticker symbols from the stock markets.
-
Use Yahoo Finance
Go to https://finance.yahoo.com/lookup, select country as Sweden, and note down ticker symbols ending with.ST(e.g.,HEM.ST,INDT.ST,VOLV-B.ST). -
OMX Stockholm Indexes
Commonly tracked indices:- OMXS30: Top 30 companies (e.g.,
ABB.ST,ERIC-B.ST,VOLV-B.ST) - Mid & small caps: Available on Nasdaq Nordic Market
- OMXS30: Top 30 companies (e.g.,
Below are example plots generated on 2025-04-08 (from selected/plots_2025-04-08):
1. Price and Moving Averages
2. RSI and MACD
3. Ichimoku Cloud
4. Volume and OBV
- Clone the repository:
git clone https://github.com/sanjiv856/stock-market-technical-analysis.git
cd stock-market-technical-analysis- Install dependencies:
pip install -r requirements.txt- Run the script:
StockMarket_DataAnalysis.pyThe script will:
- Download 180 days (changes as per the requirement in the script) of historical daily data for selected Swedish tickers
- Calculate technical indicators
- Generate and save 6 sets of plots per ticker
- Export a combined CSV dataset
tickers_sweden = ['HEM.ST', 'INDT.ST', 'BERG-B.ST']You can update this list inside the script with your own selection of OMX Stockholm tickers.
- SMA, EMA
- Bollinger Bands
- Ichimoku Cloud
- Parabolic SAR
- RSI, MACD
- Stochastic, CCI, CMO
- ROC, TRIX, ULTOSC, WILLR
- OBV, AD Line
- Chaikin Money Flow (CMF)
- Volume Price Trend (VPT)
- Volume SMA
- ATR, NATR, TRANGE
- Hammer, Doji, Engulfing, Morning/Evening Star, Shooting Star
This project is intended for educational and exploratory purposes only.
It is not investment advice. Stock market trading involves risk.
Please use your own judgment and consult a financial advisor before making investment decisions.
For queries, suggestions, or bug reports, feel free to open an issue or contact [[email protected]].
This project is open-source and available under the MIT License.



