A Qt-based trading simulator that allows users to test different trading strategies in a simulated market environment. The simulator features automated trading algorithms, interactive price charts, and real-time performance tracking.
-
Multiple Trading Strategies:
- Buy and Hold
- Mean Reversion
- Trend Following
- Moving Average
- Random Strategy
-
Risk Management:
- Dynamic position sizing
- Volatility adjustments
- Maximum loss limits
- Market event adaptation
-
Real-time Visualization:
- Stock price history charts
- Balance history tracking
- Performance metrics display
- Trading activity logs
-
Market Simulation:
- Dynamic price generation
- Market event simulation
- Transaction fees and slippage
- Volatility adjustments
- Total return calculation
- Maximum drawdown tracking
- Volatility measurement
- Sharpe ratio analysis
- Trade history logging
TradingBot
: Main simulation controllerTradingStrategy
: Base class for trading strategiesMarket
: Market simulation and price generationRiskManagement
: Position sizing and risk controlDirectionalStrategy
: Base class for trend-based strategiesMarketNeutralStrategy
: Base class for market-neutral strategies
The application stores simulation data in the Documents folder under "TradingSimulation":
- Trade history logs
- Performance charts
- Session state data
- Balance history
- MacOS operating system
- Qt Creator 6.7.3 or higher
- Qt Charts module
- QtCharts
- Qt Core libraries
- C++11 or higher
-
Download Qt Creator:
- Visit the Qt Downloads page and download the installer for your operating system.
-
Install Qt Creator:
- Run the installer and follow the on-screen instructions.
- During installation, ensure you select the components you need, including the Qt Charts module.
Qt Charts is typically included with the Qt installation. Ensure you select it during the Qt Creator installation process. If you need to install it separately:
-
Open Qt Maintenance Tool:
- Navigate to the directory where Qt is installed and run the
MaintenanceTool
.
- Navigate to the directory where Qt is installed and run the
-
Add or Update Components:
- Select "Add or remove components."
- Under the "Qt" section, ensure "Qt Charts" is checked.
- Click "Next" and follow the instructions to complete the installation.
-
Open the Project:
- Launch Qt Creator.
- Open the project by selecting
File > Open File or Project
and navigate to your project'sCMakeLists.txt
file.
-
Build the Project:
- Click on the "Build" button or press
Cmd + B
to compile the project.
- Click on the "Build" button or press
-
Run the Project:
- Click on the "Run" button or press
Cmd + R
to execute the project.
- Click on the "Run" button or press