AlanaRm-rf-me / Ai-forecast

Several various versions Of a variety of types and ways to predict price using tensor flow and pytorch
0 stars 0 forks source link
ai cryptocurrency-tool

AI Cryptocurrency Price Forecaster

An advanced deep learning-based cryptocurrency price forecasting tool that uses LSTM neural networks to predict future price movements with confidence intervals.

Features

Requirements

Installation

  1. Clone this repository:
git clone <repository-url>
cd <repository-name>
  1. Install the required packages:
pip install tensorflow numpy pandas matplotlib requests scikit-learn

Usage

The main functionality is provided through the ai_price_forecast function in ai_forecast.py:

from ai_forecast import ai_price_forecast

# Example usage
forecast_dates, prices, upper_bound, lower_bound = ai_price_forecast(
    api_url="https://api.coingecko.com/api/v3",
    crypto_id="bitcoin",
    historical_days=180,
    forecast_days=30
)

Parameters

Currently you are only prompted for forecast length

Features in Detail

Technical Indicators

The model uses several technical indicators for improved forecasting:

Hardware Optimization

Visualization

Output

The function returns four lists:

  1. Forecast dates
  2. Forecasted prices
  3. Upper confidence bounds
  4. Lower confidence bounds

Plots are automatically saved in the forecast_plots directory.

Error Handling

The system includes comprehensive error handling for:

All errors are logged with detailed messages for debugging.

License

[Your chosen license]

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.