{"id":21746805,"url":"https://github.com/alishbz/trader_bot","last_synced_at":"2026-02-05T15:33:28.250Z","repository":{"id":264450462,"uuid":"893412351","full_name":"Alishbz/Trader_Bot","owner":"Alishbz","description":"A high-performance trade bot built with C++ designed for cryptocurrency markets. This bot leverages efficient algorithms and multithreading to execute trades based on user-defined strategies. Includes features like real-time market data analysis, customizable trading parameters, and risk management tools. ","archived":false,"fork":false,"pushed_at":"2024-11-24T12:07:39.000Z","size":5452,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T05:37:33.975Z","etag":null,"topics":["algorithmic-trading","algorithms","binance-api","cpp","finance","hft-trading","qt6","quant"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alishbz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-24T11:38:38.000Z","updated_at":"2025-01-12T18:32:29.000Z","dependencies_parsed_at":"2024-11-24T12:37:52.187Z","dependency_job_id":null,"html_url":"https://github.com/Alishbz/Trader_Bot","commit_stats":null,"previous_names":["alishbz/trader_bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Alishbz/Trader_Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alishbz%2FTrader_Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alishbz%2FTrader_Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alishbz%2FTrader_Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alishbz%2FTrader_Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alishbz","download_url":"https://codeload.github.com/Alishbz/Trader_Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alishbz%2FTrader_Bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263645556,"owners_count":23494005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithmic-trading","algorithms","binance-api","cpp","finance","hft-trading","qt6","quant"],"created_at":"2024-11-26T08:07:00.737Z","updated_at":"2026-02-05T15:33:28.210Z","avatar_url":"https://github.com/Alishbz.png","language":"Makefile","readme":"# Trader_Bot\n\n### **Author:**  \n**Ali Şahbaz**  \n📧 **Email:** ali_sahbaz@outlook.com  \n\n---\n\n## **Description**  \n**Trader_Bot** is a high-performance trade bot built with **C++ and Qt Framework 6.7.1**, specifically designed for cryptocurrency markets.  \nThis bot leverages advanced algorithms, multithreading, and real-time data analysis to execute trades based on user-defined strategies. With its customizable parameters and robust risk management tools, it serves as a powerful tool for both backtesting and live trading.\n\n---\n\n## **Required Expertise \u0026 Keywords**  \nThis project requires expertise in the following areas:  \n- **Quant Developer**: Building high-performance algorithms for financial markets.  \n- **HFT Algorithms**: High-frequency trading strategies and systems.  \n- **C++**: Proficiency in C++ for developing performance-critical applications.  \n- **Mathematics**: Advanced mathematical models for financial data analysis and algorithmic trading.  \n- **Finance**: Understanding of financial markets, trading strategies, and risk management.  \n- **Cryptocurrency Markets**: Knowledge of cryptocurrency trading platforms and APIs.  \n- **Multithreading**: Efficient execution of concurrent tasks in high-performance applications.  \n- **Technical Analysis**: Use of indicators like Moving Averages, MACD, Bollinger Bands, etc.  \n- **Backtesting**: Designing and running tests for trading strategies using historical data.\n\n**Keywords:**  \nQuantitative Finance, Algorithmic Trading, High-Frequency Trading (HFT), C++, Mathematical Models, Cryptocurrency, Real-Time Data, Trading Strategies, Backtesting, Risk Management, Trading Bots, Finance, Technical Analysis.\n\n\n---\n\n## **Features**\n### **Core Functionalities**\n- **Custom Graphics Processing:** High-performance visualization tools for monitoring and analysis.  \n- **Trade / HFT Algorithm Integration:** Implements cutting-edge algorithms for high-frequency trading.  \n- **Modern Software Patterns:** Employs advanced design patterns for maintainable and scalable development.  \n- **Simplified Strategy Management:** Easily add and test new trading strategies with minimal effort.  \n- **Custom Binance WebSocket Library:** Built for efficient real-time data retrieval and communication.  \n- **Custom Binance REST API Implementation:** Provides seamless interaction with Binance endpoints.  \n- **Real-Time Testing:** Direct testing of strategies with live market data.  \n- **Backtesting Support:** Analyze historical data to optimize and validate strategies.  \n- **Fake Account Testing:** Test strategies without risking actual funds.  \n- **Custom OHLC Structures \u0026 Math Models:** Supports complex calculations and high-precision operations.  \n- **20+ Pre-Built Strategies:** Includes templates (`template_strategy.h`) for creating your own strategies.  \n- **Comprehensive Logging Support:** Provides detailed logs for debugging, analysis, and auditing.  \n- **User-Friendly GUI:** Offers an intuitive interface for traders to easily manage and monitor their trading activities.\n\n---\n\n## **Screenshots**  \n\n### **1. Binance Fake Account \u0026 Realtime Monitoring**  \n![Fake Account Monitoring](photos/p1.png)  \nThis page emulates a Binance account. It supports:  \n- Monitoring real-time coin data  \n- Placing buy/sell orders  \n- Integrating strategies  \n- Viewing open orders, wallet balance, and logs  \n\n### **2. History Testing Page**  \n![History Testing](photos/p2.png)  \nProvides an interface to visualize and analyze **RSI** and real-time data graphics. Features include:  \n- Configurable visibility of data elements  \n- Adjustable display settings  \n\n### **3. Strategy Testing \u0026 Backtesting**  \n![Backtesting](photos/p3.png)  \nAllows users to:  \n- Select a strategy and a time range for backtesting  \n- Start testing and monitor data flow  \n- Control data flow speed via the GUI  \n- Log activities and set custom parameters for strategies  \n- Select coins and specify candle types, supporting up to second-level granularity  \n\n### **4. Visual Trade Analysis**  \n![Trade Analysis](photos/p4.png)  \nDisplays **LONG** and **SHORT** orders directly on the graph. Features include:  \n- Analyzing past wallet performance  \n- Evaluating the strength of strategies through logs and graphical representations  \n\n---\n\n\n## **Core Concepts \u0026 Indicators**\n\n### **1. Moving Average (MA)**  \nThe **Moving Average (MA)** calculates the average price movement of an asset over time. It helps traders smooth out price data and identify trends.  \n\n#### **Types of Moving Averages:**\n\n- **Simple Moving Average (SMA):**  \n  The arithmetic average of prices over a specific time period.  \n  Example: A 50-day SMA would average the closing prices of an asset over the past 50 days.\n\n- **Exponential Moving Average (EMA):**  \n  EMA gives more weight to recent prices, making it more sensitive and faster to respond to price changes.  \n  Example: The 12-period EMA gives more importance to the last 12 price points than to the earlier ones.\n\n**Application in Trading:**  \nMoving Averages can act as support and resistance levels. When the price is above a moving average, it may be seen as a support level, while if the price is below, it can be seen as a resistance level.  \n\n#### **Crossover Strategies:**\n- **Golden Cross:** When a short-term moving average crosses above a long-term moving average, it's a potential **buy signal**.  \n  Example: A 50-day SMA crossing above a 200-day SMA.\n  \n- **Death Cross:** When a short-term moving average crosses below a long-term moving average, it’s a potential **sell signal**.  \n  Example: A 50-day SMA crossing below a 200-day SMA.\n\n---\n\n### **2. MACD (Moving Average Convergence Divergence)**  \nMACD is a momentum and trend-following indicator that shows the relationship between two moving averages of an asset's price.  \n- The MACD line is calculated by subtracting the 26-period EMA from the 12-period EMA.  \n- The signal line is the 9-period EMA of the MACD line.\n\n**Trading Signals:**  \n- **Bullish signal:** When the MACD crosses above the signal line.  \n- **Bearish signal:** When the MACD crosses below the signal line.\n\n---\n\n### **3. Bollinger Bands**  \nBollinger Bands are volatility indicators that consist of a middle band (SMA) and two outer bands that are standard deviations away from the middle band.  \n- **Upper Band:** Represents overbought conditions.  \n- **Lower Band:** Represents oversold conditions.\n\n**Usage in Trading:**  \n- Price bouncing off the lower band may indicate a **buy** signal, and bouncing off the upper band may indicate a **sell** signal.\n\n---\n\n### **4. Fibonacci Retracement**  \nFibonacci retracement is a tool used to identify potential levels of support and resistance. The key Fibonacci levels are **23.6%, 38.2%, 50%, 61.8%**, and **100%**.\n\n**Example:**  \n- If the price rises from 100 to 200, traders may expect the price to retrace to levels such as 161.8% of the rise (161.8% of 100-200 move) before continuing the uptrend.\n\n---\n\n### **5. Stochastic Oscillator**  \nThe Stochastic Oscillator measures the level of the closing price relative to the high-low range over a specific period.  \n- **Overbought zone:** Values above 80 indicate overbought conditions.  \n- **Oversold zone:** Values below 20 indicate oversold conditions.\n\n**Usage in Trading:**  \n- A **buy signal** occurs when the oscillator crosses from below 20 to above 20.  \n- A **sell signal** occurs when it crosses from above 80 to below 80.\n\n---\n\n### **6. Divergence**  \nDivergence occurs when the price of an asset moves in the opposite direction of an indicator (such as MACD or RSI), potentially signaling a reversal.  \n\n**Example:**  \n- **Bullish Divergence:** When prices form lower lows, but the indicator forms higher lows, suggesting potential upward momentum.  \n- **Bearish Divergence:** When prices form higher highs, but the indicator forms lower highs, suggesting potential downward momentum.\n\n---\n\n### **7. Parabolic SAR (Stop and Reverse)**  \nThe Parabolic SAR is a trend-following indicator that helps determine the potential reversal points in the market.  \n- When the SAR is below the price, the trend is bullish, and when it is above the price, the trend is bearish.\n\n---\n\n### **8. Ichimoku Kinko Hyo**  \nThis is a Japanese technical analysis indicator that provides insights into the market’s trend, support and resistance levels, and potential future price movements. It consists of five lines:  \n- **Tenkan-sen:** A fast-moving average.  \n- **Kijun-sen:** A slower-moving average.  \n- **Senkou Span A and B:** Leading lines forming the cloud, which indicates support or resistance.  \n- **Chikou Span:** The lagging line, showing the current price in relation to the past.\n\n---\n\n### **9. ATR (Average True Range)**  \nThe ATR measures volatility by calculating the average of true ranges (the difference between the high and low of an asset for a period). A higher ATR indicates higher volatility.\n\n---\n\n### **10. Chaikin Money Flow (CMF)**  \nCMF is a volume-weighted average of accumulation and distribution over a specified period. It measures the money flow of an asset.  \n\n**Interpretation:**  \n- **Positive CMF:** Indicates accumulation (buying pressure).  \n- **Negative CMF:** Indicates distribution (selling pressure).\n\n---\n\n### **11. On-Balance Volume (OBV)**  \nOBV is a cumulative indicator that adds volume on up days and subtracts volume on down days, helping to gauge the direction of the trend.\n\n---\n\n### **12. Williams %R**  \nWilliams %R is a momentum indicator that measures overbought and oversold conditions.  \n- **Overbought:** Values above -20.  \n- **Oversold:** Values below -80.\n\n---\n\n### **13. Economic Indicators**  \n\n- **CPI (Consumer Price Index):** Measures the average change over time in the prices paid by consumers for goods and services.  \n- **PPI (Producer Price Index):** Measures the average change in selling prices received by domestic producers for their output.  \n- **GDP (Gross Domestic Product):** Represents the total value of goods and services produced by a country in a specific time period.  \n\n---\n\n### **14. Option Greeks**\n\n- **BETA:** Measures an asset’s sensitivity to market movements.  \n- **Delta:** Measures the rate of change of an option’s price relative to the underlying asset’s price.  \n- **Gamma:** Measures the rate of change in delta.  \n- **Vega:** Measures an option's sensitivity to volatility.  \n- **Theta:** Measures the time decay of options.  \n- **Rho:** Measures an option's sensitivity to interest rate changes.\n\n---\n\n### **15. Trading Concepts**  \n- **Spread:** The difference between an asset’s buying price and selling price.  \n- **Margin:** The amount of capital required to open a position.  \n- **Leverage:** Allows you to control a larger position with a smaller amount of capital.  \n- **Drawdown:** The decline from the highest value to the lowest during a particular period.  \n\n---\n\n## **How to Use**  \n\n1. Clone the repository:  \n   ```bash\n   git clone https://github.com/Alishbz/Trader_Bot.git\n   cd Trader_Bot\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falishbz%2Ftrader_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falishbz%2Ftrader_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falishbz%2Ftrader_bot/lists"}