# rashedalamoush/trading-signals-app architecture

> Architecture diagram of the GitHub repository rashedalamoush/trading-signals-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rashedalamoush/trading-signals-app
- Repository: https://github.com/rashedalamoush/trading-signals-app

## Overview

This is a Streamlit stock-market analysis and portfolio application, targeting the UAE and US markets. Its visible workflow scans assets, calculates technical indicators, combines technical and news signals, and displays results. The app also includes portfolio tracking and an Anthropic-powered assistant. The only source file contains these responsibilities together. Excerpts show the signal and external-news/API calls, but omit the market-price fetch implementation and portfolio persistence details, so those connections are not inferred.

Main entry points: [`streamlit_app.py`](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py) (Asset scanner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Market analysis"]
  node_universe["Market universe<br/>[streamlit_app.py]"]
  node_scanner["Asset scanner<br/>[streamlit_app.py]"]
  node_indicators["Technical indicators<br/>[streamlit_app.py]"]
  node_technical["Technical signals<br/>[streamlit_app.py]"]
  node_news["News sentiment<br/>[streamlit_app.py]"]
  node_fusion["Signal fusion<br/>[streamlit_app.py]"]
end

subgraph group_experience["App experience"]
  node_app["Streamlit app<br/>[streamlit_app.py]"]
  node_results["Signal dashboard<br/>[streamlit_app.py]"]
  node_portfolio["Portfolio tracking<br/>[streamlit_app.py]"]
  node_assistant["AI assistant<br/>[streamlit_app.py]"]
end

subgraph group_integrations["External services"]
  node_yahoo["Yahoo Finance RSS"]
  node_anthropic["Anthropic API"]
end

node_user(("Investor"))

node_user -->|"uses"| node_app
node_app -->|"starts scan"| node_scanner
node_scanner -->|"calculates"| node_indicators
node_scanner -->|"fetches news"| node_news
node_scanner -->|"gets signal"| node_technical
node_scanner -->|"merges signals"| node_fusion
node_app -->|"renders"| node_results
node_news -->|"reads headlines"| node_yahoo
node_assistant -->|"sends request"| node_anthropic

click node_app "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"
click node_universe "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"
click node_scanner "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"
click node_indicators "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"
click node_technical "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"
click node_news "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"
click node_fusion "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"
click node_results "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"
click node_portfolio "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"
click node_assistant "https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_universe,node_scanner,node_indicators,node_technical,node_news,node_fusion toneBlue
class node_app,node_results,node_portfolio,node_assistant toneAmber
class node_yahoo,node_anthropic toneMint
class node_user toneIndigo
```

## Components

### Market analysis

- [Market universe](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`
- [Asset scanner](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`
- [Technical indicators](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`
- [Technical signals](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`
- [News sentiment](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`
- [Signal fusion](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`

### App experience

- [Streamlit app](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`
- [Signal dashboard](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`
- [Portfolio tracking](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`
- [AI assistant](https://github.com/rashedalamoush/trading-signals-app/blob/main/streamlit_app.py): `streamlit_app.py`

### External services

- **Yahoo Finance RSS**
- **Anthropic API**

### Other components

- **Investor**

## Connections

- Investor → Streamlit app: uses (evidence: `streamlit_app.py`)
- Streamlit app → Asset scanner: starts scan (evidence: `streamlit_app.py`)
- Asset scanner → Technical indicators: calculates (evidence: `streamlit_app.py`)
- Asset scanner → News sentiment: fetches news (evidence: `streamlit_app.py`)
- Asset scanner → Technical signals: gets signal (evidence: `streamlit_app.py`)
- Asset scanner → Signal fusion: merges signals (evidence: `streamlit_app.py`)
- Streamlit app → Signal dashboard: renders (evidence: `streamlit_app.py`)
- News sentiment → Yahoo Finance RSS: reads headlines (evidence: `streamlit_app.py`)
- AI assistant → Anthropic API: sends request (evidence: `streamlit_app.py`)
