Trader-Agent is an AI-powered Forex signal dashboard and Telegram bot. It fetches live market data, generates trading signals, and delivers them via a web dashboard and Telegram.
- Live Candlestick Charts: Visualize real-time Forex data from OANDA.
- AI Signal Generation: Get buy/sell signals for major currency pairs.
- Telegram Bot: Receive signals automatically or on demand, with options to stop/resume notifications.
- Auto-Refresh Dashboard: Stay updated with the latest market moves.
- Signal History: Review past predictions and performance.
- Backend: FastAPI (Python)
- Frontend: Streamlit
- Bot: python-telegram-bot
- Broker API: OANDA (via oandapyV20)
- Data: Pandas, Plotly
-
Clone the repository
git clone https://github.com/yourusername/Trader-Agent.git cd Trader-Agent -
Create a virtual environment
python -m venv .venv .venv\Scripts\activate # Windows source .venv/bin/activate # Mac/Linux
-
Install dependencies
pip install -r requirements.txt
-
Set environment variables
- Create a
.envfile in the root directory:OANDA_API_KEY=your_oanda_api_key TELEGRAM_BOT_TOKEN=your_telegram_bot_token FAST_API_URL=http://127.0.0.1:8000
- Create a
-
Run the backend
uvicorn backend.main:app --reload
-
Run the Streamlit dashboard
streamlit run streamlit_app.py
-
Start the Telegram bot
- The bot runs automatically with the backend, or you can run
backend/telegram_bot.pydirectly.
- The bot runs automatically with the backend, or you can run
- Open the Streamlit dashboard in your browser.
- Interact with the Telegram bot using
/startand/predict. - Monitor live signals and charts.
Pull requests are welcome! For major changes, please open an issue first.
MIT License
Note: You need valid OANDA and Telegram credentials to use all features.