Welcome to the TradingView Bot repository! This project is a comprehensive trading bot developed in C# as a Windows Service, utilizing SQL Server for data storage. The bot leverages the TradingView API to fetch EMA and MACD crossover signals for all NSE stocks across multiple time frames. It includes features such as volume checks, analyst ratings, and the latest news for specific tickers. The bot can execute trades based on buy signals, manage stop-loss and trailing stop-loss, and send notifications to a Telegram channel.
Note: This project is for educational purposes only.
- EMA and MACD Crossover Signals: Detects EMA and MACD crossovers for all NSE stocks across multiple time frames.
- Volume and Analyst Ratings: Checks trading volume and analyst ratings for each stock.
- Latest News: Fetches the latest news for specific tickers.
- Trade Execution: Executes trades based on buy signals and manages stop-loss and trailing stop-loss.
- Signal Tracking: Saves all signals to a SQL Server database for tracking trades and buy signals.
- Telegram Notifications: Sends notifications to a Telegram channel for new buy signals, trade executions, and daily/monthly reports.
- Daily and Monthly Reports: Sends reports at 9 AM and 4 PM every day, detailing executed trades, profit/loss, running trades, and closed trades.
-
Clone the repository:
git clone https://github.com/shashilpu/TVBOT.git
-
Navigate to the project directory:
cd TVBOT
-
Build the project using your preferred IDE (e.g., Visual Studio).
-
Configure the SQL Server database:
- Update the connection string in the
appsettings.json
file. - Run Entity Framework DATABASE Migration Command to set up the necessary database tables.
- Update the connection string in the
-
**Configure the TradingView BOT **:
- Update schedular Timing and command as per your convenience.
-
Set up the Windows Service:
- Install the service using the
InstallUtil.exe
tool or through the Visual Studio Installer.
- Install the service using the
-
Start the Windows Service:
- Ensure the service is running to begin monitoring and executing trades.
-
Monitor Telegram Notifications:
- Join the configured Telegram channel to receive real-time notifications for buy signals, trade executions, and reports.
For any questions or support, please open an issue or contact If you need any more help, just let me know.@shashilpu@gmail.com 😊