0% found this document useful (0 votes)
131 views12 pages

Forex-Signal-Telegram-Bot (1)

The document outlines a Python project aimed at automating forex trading signals using Yahoo Finance and the Telegram API. It details the technology stack, data acquisition methods, signal generation rules, and the integration of a Telegram bot for real-time alerts. Additionally, it discusses potential next steps for customization and advanced trading strategies.

Uploaded by

bgmi82123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views12 pages

Forex-Signal-Telegram-Bot (1)

The document outlines a Python project aimed at automating forex trading signals using Yahoo Finance and the Telegram API. It details the technology stack, data acquisition methods, signal generation rules, and the integration of a Telegram bot for real-time alerts. Additionally, it discusses potential next steps for customization and advanced trading strategies.

Uploaded by

bgmi82123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Forex Signal Telegram Bot

Python Project

Automating Trading Signals with Python, Yahoo Finance & Telegram API

Presented by: Kunal Manish Fegade & Aniket Dhumal

SYBCA
The Promise: Automating Forex
Signals for Traders

1 Objective 2 Tech S tack


Automate forex trading Leverage Python, Yahoo
signals. Reduce manual Finance API, Pandas,
analysis. Telegram Bot API.

3 Target Users
Empower forex traders with instant, reliable alerts.
Core Technologies: Python,
Yahoo Finance & Telegram

Python Yahoo Finance Telegram Bot API


API
The backbone of our Delivers signals
bot. Handles logic and Provides real-time directly to your device.
scheduling. forex data. Accurate
and reliable.
Data Acquisition: Pulling Forex Data from Yahoo
Finance
Real-Time Data Historical Analysis Easy Integration

Access up-to-the-minute forex prices. Analyze past trends and patterns. Seamlessly connects to our Python
Stay ahead of market movements. Improve signal accuracy. script. Streamlined data flow.
Signal Generation: Crafting
Trading Rules with Pandas
Define Rules
Set specific criteria for buy/sell signals. Based on technical
indicators.

Pandas Power
Leverage Pandas for data manipulation. Efficient rule
evaluation.

Backtesting
Test rules on historical data. Optimize for profitability.
Telegram Integration: Setting Up Your Automated Bot

Receive Alerts
Configure
Start receiving instant trading signals.
Create Bot
Integrate the token into your Python script. Directly on your Telegram app.
Use Telegram's BotFather to create a new Authorize the bot.
bot. Get your API token.
CODE :
CODE EXPLANATION :

This script monitors several currency pairs using historical data from Yahoo Finance, calculates technical indicators (Bollinger
Bands and a Stochastic oscillator), and sends trading signals via Telegram during a specific time window.

Key Points:
1. Data Fetching and Indicator Calculation:
- The script retrieves 5 days of minute-level data for each currency pair.
- It computes a 20-period Simple Moving Average (SMA) and standard deviation to form Bollinger Bands.
- It calculates the Stochastic oscillator values (%K and a smoothed %D).

2. Signal Conditions:
**Buy Signal: Triggered when the Stochastic %K is at or below 10 and the price is below the lower Bollinger Band.
**Sell Signal: Triggered when the Stochastic %K is at or above 90 and the price is above the upper Bollinger Band.

3. Telegram Notifications:
- When a valid signal is detected, a message is sent via a Telegram bot.
- A cooldown of 5 minutes is enforced between signals for each trading pair to avoid duplicate alerts.

4. Active Trading Session:


- The script only sends signals between 1pm and 3pm UTC.
- Outside this window, it notifies via Telegram that it’s waiting for the session to start.

5. Loop and Error Handling:


- The process repeats every 60 seconds.
- Errors in fetching data or processing are caught and printed.In short, the code automates the process of analyzing market data
for specific technical signals and alerts you through Telegram within a defined trading session.
Live Demo: See the Bot in
Action!
Witness the bot generating real-time forex signals.

Observe its automated data acquisition and rule execution.

Experience the convenience of instant Telegram alerts.


Next Steps: Customization and Advanced Strategies

Advanced Indicators
2
Incorporate more sophisticated
technical indicators.
Customize Rules
Tailor trading rules to your specific 1
preferences.
Machine Learning
Explore machine learning for enhanced
3
signal accuracy.
THANK YOU!!!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy