Skip to content

This is a Telegram bot that provides buy and sell signals for Bitcoin based on various technical indicators and candlestick patterns. πŸ“Š The bot uses CoinGecko API to fetch real-time Bitcoin price data and TA-Lib for technical analysis. πŸ’Ή

License

Notifications You must be signed in to change notification settings

telebotmake/btc_signal_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Bitcoin Signal Bot πŸš€

This is a Telegram bot that provides buy and sell signals for Bitcoin based on various technical indicators and candlestick patterns. πŸ“Š The bot uses CoinGecko API to fetch real-time Bitcoin price data and TA-Lib for technical analysis. πŸ’Ή

Features 🌟

  • Buy and Sell Signals πŸ’°: The bot generates trading signals based on multiple indicators such as:

    • SMA (Simple Moving Average) πŸ“ˆ
    • RSI (Relative Strength Index) πŸ“‰
    • MACD (Moving Average Convergence Divergence) πŸ”„
    • Bollinger Bands πŸ“Š
    • Candlestick Patterns (e.g., Doji, Hammer) πŸ”₯
  • Real-Time Bitcoin Price πŸ’Έ: Displays the current price of Bitcoin along with the trading signal.

  • Telegram Bot Interface πŸ€–: The bot is built on Telegram’s Bot API to allow easy interaction with users.

Prerequisites πŸ› οΈ

  • Python 3.7+: Make sure you have Python 3.7 or later installed.
  • Telegram Bot API Token: You’ll need to create a bot on Telegram and get its API token. πŸ“²

Installation πŸ—οΈ

1. Clone the Repository

Clone this repository to your local machine:

git clone https://github.com/your-username/bitcoin-signal-bot.git
cd bitcoin-signal-bot

2. Create a Virtual Environment (Optional but recommended)

It's best to create a virtual environment to avoid conflicts with other Python packages on your system. πŸ§‘β€πŸ’»

python -m venv venv

Activate the virtual environment:

  • On Windows:

    .\venv\Scripts\activate
  • On macOS/Linux:

    source venv/bin/activate

3. Install the Required Dependencies πŸ“¦

Install the necessary Python packages using pip:

pip install -r requirements.txt

4. Configure the Bot πŸ“

You need to add your Telegram Bot API token. Open bot.py and replace the placeholder your_telegram_bot_token with your bot’s API token.

API_TOKEN = "your_telegram_bot_token"  # Replace with your actual token

5. Run the Bot πŸš€

To run the bot, execute the following command:

python bot.py

The bot will start and listen for incoming commands like /start and /signal. 🎯

Commands πŸ“œ

  • /start πŸŽ‰: Displays a welcome message and an overview of how the bot works.
  • /signal πŸ”₯: Provides the latest buy/sell signal along with the reasoning based on technical indicators and candlestick patterns.

Python Dependencies 🐍

The bot requires the following Python packages:

  • requests: To fetch data from the CoinGecko API. 🌍
  • pandas: For handling data in tabular form. πŸ—ƒοΈ
  • talib: For technical analysis (used for calculating indicators). πŸ“Š
  • telegram: For interacting with the Telegram Bot API. πŸ€–

To install the dependencies, you can use:

pip install requests pandas talib telegram

Alternatively, you can use the requirements.txt file to install all dependencies:

pip install -r requirements.txt

Customization πŸ› οΈ

Feel free to modify the bot to add more indicators, adjust the logic for buy/sell signals, or customize the messages. ✨

License πŸ“

This project is licensed under the MIT License - see the LICENSE file for details. πŸ“œ

Support πŸ’¬

For any issues or questions, feel free to open an issue on the GitHub repository or contact me directly. πŸ’Œ

About

This is a Telegram bot that provides buy and sell signals for Bitcoin based on various technical indicators and candlestick patterns. πŸ“Š The bot uses CoinGecko API to fetch real-time Bitcoin price data and TA-Lib for technical analysis. πŸ’Ή

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages