A technical stock analysis application featuring candlestick charts, peak/valley detection, wave analysis, and Fibonacci retracement levels.
- CSV Data Import: Load stock data from CSV files in OHLCV format
- Candlestick Charts: Beautiful candlestick visualization with customizable date ranges
- Peak & Valley Detection: Automatic detection of local price extremes
- Wave Analysis: Identifies upward and downward price waves between detected extremes
- Fibonacci Retracement: Displays key Fibonacci levels (0%, 23.6%, 38.2%, 50%, 61.8%, 100%)
- Interactive Selection: Click and drag to manually define wave regions
This repository contains two versions of the application:
Located in the root directory. Requires Windows and .NET Framework 4.7.2.
Located in StockAnalyzer.Avalonia/. Runs on macOS, Windows, and Linux.
| Feature | WinForms | Avalonia |
|---|---|---|
| Platform | Windows only | macOS, Windows, Linux |
| Framework | .NET Framework 4.7.2 | .NET 8.0 |
| Charting | System.Windows.Forms.DataVisualization | ScottPlot 5 |
| Architecture | Forms-based | MVVM |
cd StockAnalyzer.Avalonia
dotnet run- Open
StockAnalyzer.slnin Visual Studio - Build and run (F5)
Date,Open,High,Low,Close,Volume
2024-01-02,185.53,186.88,183.62,185.24,28987123- Click Load CSV to select a stock data file
- Adjust date range and click Apply Filter
- Select a wave from the Up Waves or Down Waves list
- View Fibonacci levels and price confirmations
A sample CSV file is included at sample-data/SAMPLE-Day.csv.
| File | Description |
|---|---|
Candlestick.cs |
OHLCV data model |
StockReader.cs |
CSV file parser |
PeakValley.cs |
Peak/valley detection algorithm |
Wave.cs |
Wave model (valley→peak or peak→valley) |
StockAnalyzer.Avalonia/
├── Core/Models/ # Pure C# data models
├── Core/Services/ # StockAnalysisService (testable)
├── ViewModels/ # MVVM ViewModels
└── Views/ # Avalonia XAML UI
MIT License - See LICENSE for details.
