Skip to content

visakha/chat-trade

Repository files navigation

Stock Technical Analysis Dash App

Overview

This Dash application provides interactive technical analysis for stocks, featuring multiple technical indicators and interactive charting.

Acknowledgements

To the AI code assistant in the IDE Windsurf Most of the code was generated by the AI, but the layout and some parts were modified by the author.

Setup Instructions

  1. Clone the repository

  2. Create a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
    

    if windows

    cd <to this dir>
    .\venv\Scripts\activate.bat
    
    
  3. Install dependencies:

    pip install -r requirements.txt
    

    if windows

    pip3.12.exe  install -r requirements.txt
    if does not work
    C:\Users\vamsi\AppData\Local\Programs\Python\Python312\python.exe -m pip install -r requirements.txt
    
  4. Run the application:

    python app.py
    
  5. All in one

    cd /Users/konark/CascadeProjects/windsurf-project
    

&& python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && python app.py


6. Kill the app : 8050 is the port

lsof -i :8050 | grep Python | awk '{print $2}' | xargs kill -9



## Features
- Real-time stock price retrieval
- Multiple technical indicators
- Interactive Plotly chart
- Responsive Dash interface

## Technical Indicators
- Moving Averages (SMA, EMA)
- Relative Strength Index (RSI)
- Bollinger Bands
- MACD
- Stochastic Oscillator

## Logging Configuration

The application uses Python's built-in `logging` module for configurable logging. You can control the logging level using environment variables.

### Logging Levels

- `DEBUG`: Most verbose, shows all log messages
- `INFO`: Shows general information
- `WARNING`: Shows only warnings and errors
- `ERROR`: Shows only error messages
- `CRITICAL`: Shows only critical error messages

### Setting Log Level

You can set the log level using the `LOG_LEVEL` environment variable:

```bash
# Set log level to DEBUG
export LOG_LEVEL=DEBUG

# Run the application
python app.py

Log Outputs

Logs are output to:

  • Console (standard output)
  • app.log file in the project directory

About

Dash Python trade starter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published