How endugi1/bitcoin-lstm-predictor works
Bitcoin Intraday Forecast is a Streamlit dashboard that fetches 15-minute BTC candles, computes RSI/MACD inputs, and uses a fitted scaler and stacked LSTM to forecast the next close. The app also tracks forecasts for later verification and metrics, supports historical backtesting and an opt-in TradingView chart, and can send Telegram alerts. The sampled source is partial and most runtime behavior resides in app.py, so the graph follows documented capabilities while omitting uncertain internal sequencing.
Main entry points: app.py Dashboard workflow · model_bitcoin_v1_4features.keras LSTM forecast model · config.py Forecast settings · scaler_bitcoin_v1.pkl Feature scaler
Components 18
Live Forecast
- Dashboard workflow
app.py - Forecast settings
config.py - RSI and MACD
app.py - Feature scaler
scaler_bitcoin_v1.pkl - LSTM forecast model
model_bitcoin_v1_4features.keras
Tracking and Analysis
- Historical backtest
app.py - Forecast tracking
app.py - Forecast history
- Accuracy metrics
app.py
External Integrations
- Binance candles
- Yahoo Finance candles
- TradingView chart
- Alert dispatch
app.py
Dashboard Presentation
- Forecast charts
app.py - Quiet Quant styling
styles.py
Other components
- Dashboard user
- Streamlit app
- Telegram Bot API
Connections 20
- Dashboard user → Streamlit app: uses
- Streamlit app → Dashboard workflow: runs
- Dashboard workflow → Forecast settings: reads settings
- Dashboard workflow → Binance candles: fetches candles
- Dashboard workflow → Yahoo Finance candles: fallback fetch
- Dashboard workflow → RSI and MACD: computes features
- Dashboard workflow → Feature scaler: transforms features
- Dashboard workflow → LSTM forecast model: predicts
- Dashboard workflow → Historical backtest: runs backtest
- Historical backtest → LSTM forecast model: batch inference
- Dashboard workflow → Forecast tracking: records forecasts
- Forecast tracking → Forecast history: reads and writes
- Dashboard workflow → Accuracy metrics: calculates metrics
- Accuracy metrics → Forecast history: reads history
- Dashboard workflow → Forecast charts: renders charts
- Dashboard workflow → TradingView chart: embeds chart
- Dashboard workflow → Alert dispatch: checks alert settings
- Alert dispatch → Telegram Bot API: sends alerts
- Dashboard workflow → Quiet Quant styling: uses theme
- Streamlit app → Dashboard user: displays dashboard