This project is a simple stock market simulation written in C#. It includes classes for managing an account, an exchange, orders, positions, and a trading strategies. The project simulates a stock exchange with random price fluctuations and allows users to create and manage trading positions. (GBM-Model)
- Simulates a stock exchange with random price fluctuations.
- Allows users to create and manage trading positions.
- Supports buying and selling of stocks.
- You can implement your own trading strategy
To use this stock market simulation, follow these steps:
-
Clone or download the repository.
-
Build the project using Visual Studio or your preferred C# IDE.
-
Run the
Program.cs
file to start the simulation. -
Follow the on-screen instructions to create accounts, place orders, and monitor the exchange.
-
The simulation will display account balances, open and closed positions, and trading statistics.
The project is organized into several C# classes:
-
Account
: Represents a user's trading account with a balance, open and closed positions, and the ability to buy and sell stocks. -
Exchange
: Represents the stock exchange with price fluctuations and the ability to open and close the exchange. -
Order
: Represents a trading order with details such as the amount of money to invest, stop loss, and leverage. -
Position
: Represents a trading position with information about the invested money, leverage, shares, stop loss, and profit. -
ExchangePricePublisher
: Handles price interactions and events in the exchange. -
TradingStrategy
: An abstract class that can be extended to implement custom trading strategies.
Contributions to this project are welcome. If you find any issues or have ideas for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.