about: Added multiple technical indicators, improved UI/UX with theme toggling, and CSV download functionality for enhanced data analysis.
title: Add Technical Indicators, Theme Toggle, and CSV Download Feature
labels: enhancement, feature
assignees: none
Summary
The new code introduces several features aimed at enhancing the functionality and user experience of the existing cryptocurrency price analysis dashboard. Below is a summary of added features and functionalities for this pull request.
Features Added
Additional Indicators
50-Day Moving Average: Introduced alongside the existing 30-day moving average to provide broader trend analysis.
Relative Strength Index (RSI): A momentum oscillator used to identify overbought or oversold conditions.
Bollinger Bands: Includes upper and lower bands based on standard deviation, offering insights into price volatility.
MACD (Moving Average Convergence Divergence): Adds MACD line and signal line for further momentum analysis.
CSV Download Functionality
Allows users to download the cryptocurrency data as a CSV file, useful for external analysis or record-keeping.
Theme Toggle (Light/Dark Mode)
Enables theme switching with a "Switch to Dark Mode/Light Mode" button, modifying the entire page and graph layout.
In dark mode, the page background is black with white text, and in light mode, the page background is white with black text.
The graph's background color also adapts based on the theme: dark mode applies a light background to the graph, while light mode applies a dark background.
Responsive UI and Enhanced Interactivity
A streamlined interface with CSS enhancements for buttons, forms, and theme toggling.
Improved transitions for theme changes to enhance the user experience.
Expected Behavior
Users can view detailed technical indicators on the graph for enhanced trading insights.
Users can switch between light and dark themes, with the UI updating consistently across elements.
Data is downloadable as a CSV file with a single click.
Code Changes Overview
New Functions:
compute_rsi(data, period=14): Calculates RSI for a given period.
compute_bollinger_bands(data, window=20): Calculates Bollinger Bands based on a moving average and standard deviation.
compute_macd(data, short_window=12, long_window=26, signal_window=9): Computes MACD and the MACD signal line for trend analysis.
HTML & JavaScript Enhancements:
Integrated JavaScript functions for theme toggling and CSV download.
New CSS styles for dark and light modes with transitions for smooth theme switching.
Flask API Update:
Updated the send_file function using download_name instead of the deprecated attachment_filename parameter to prevent compatibility issues.
Additional Context
The new features provide expanded analytical capabilities to support deeper technical analysis for traders and users. Future improvements could include adding more indicators (e.g., Fibonacci retracements), predictive model visualizations, and real-time updates for enhanced interactivity.
name: Feature Enhancement in Crypto Price Graph
about: Added multiple technical indicators, improved UI/UX with theme toggling, and CSV download functionality for enhanced data analysis.
title: Add Technical Indicators, Theme Toggle, and CSV Download Feature
labels: enhancement, feature
assignees: none
Summary
The new code introduces several features aimed at enhancing the functionality and user experience of the existing cryptocurrency price analysis dashboard. Below is a summary of added features and functionalities for this pull request.
Features Added
Additional Indicators
CSV Download Functionality
Theme Toggle (Light/Dark Mode)
Responsive UI and Enhanced Interactivity
Expected Behavior
Code Changes Overview
New Functions:
compute_rsi(data, period=14)
: Calculates RSI for a given period.compute_bollinger_bands(data, window=20)
: Calculates Bollinger Bands based on a moving average and standard deviation.compute_macd(data, short_window=12, long_window=26, signal_window=9)
: Computes MACD and the MACD signal line for trend analysis.HTML & JavaScript Enhancements:
Flask API Update:
send_file
function usingdownload_name
instead of the deprecatedattachment_filename
parameter to prevent compatibility issues.Additional Context
The new features provide expanded analytical capabilities to support deeper technical analysis for traders and users. Future improvements could include adding more indicators (e.g., Fibonacci retracements), predictive model visualizations, and real-time updates for enhanced interactivity.