Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coderixc/trading-simulation
This project is a Trading Simulator built using C# and .NET Framework 6.0, utilizing the WinForms framework for the user interface. The main goal of the application is to simulate trading functionalities within a Winforms form, including generating buy and sell trade events, visualizing stock charts, and executing trades.
https://github.com/coderixc/trading-simulation
algorithmic-trading auto-trading auto-trading-bot csharp csharp-app event finance-application linq net-framework stock-market trading trading-algorithms trading-application trading-applications trading-bot tradingapp winforms
Last synced: 9 days ago
JSON representation
This project is a Trading Simulator built using C# and .NET Framework 6.0, utilizing the WinForms framework for the user interface. The main goal of the application is to simulate trading functionalities within a Winforms form, including generating buy and sell trade events, visualizing stock charts, and executing trades.
- Host: GitHub
- URL: https://github.com/coderixc/trading-simulation
- Owner: Coderixc
- Created: 2024-01-16T10:28:40.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-17T10:03:40.000Z (about 1 year ago)
- Last Synced: 2024-11-28T06:12:12.010Z (2 months ago)
- Topics: algorithmic-trading, auto-trading, auto-trading-bot, csharp, csharp-app, event, finance-application, linq, net-framework, stock-market, trading, trading-algorithms, trading-application, trading-applications, trading-bot, tradingapp, winforms
- Language: C#
- Homepage:
- Size: 1.03 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trading Simulation Project
## IntroductionThis project aims to simulate a trading environment, providing users with a realistic experience of a trading platform.
This README will guide you through the initial setup and explain the first screen of the simulation.### User Authentication
This is the first screen of the trading simulation, where user credentials are validated. The screen contains the following components:- **User ID Field:** Input field for the user's identification.
- **Password Field:** Input field for the user's password.
- **Submit Button:** Event triggered when the user wants to submit the credentials.
- **Exit/Cancel Button:** Event triggered when the user wants to exit or cancel the authentication process.After successfully validating the user credentials, users can proceed to explore the trading simulation.
### 2 Layout
The second screen of the trading simulation opens once the user is successfully validated. It features different layouts for:
- **Charting:** (Note: Charting functionality is not completed due to the removal of Charting Control from .Net 6.0 by Microsoft.)
- **Trades Execution:** Contains columns for various trade-related information.
- **Log Forms:** Display logs of trading activities.### Buttons
The second layout includes the following buttons:
- **Start Trading:** Initiates the trading functionality after validating specific conditions.
- **BUY:** Initiates the buying process for one STOCKS NIFTY 50, generating a random tick price using the Random class.
- **SELL:** Initiates the selling process for one STOCKS NIFTY 50, generating a random tick price using the Random class.### Trading Conditions
Before activating the "Start Trading" functionality, the system checks specific conditions to ensure a safe and controlled trading environment.
### Trades Execution View
The Trades Execution view contains different columns, each performing specific functions:
- **Symbol:** Indicates the trading instrument (e.g., STOCKS NIFTY 50).
- **Quantity:** Represents the quantity of stocks traded.
- **Price:** Displays the trade price.
- **OrderType:** Specifies the trading action (BUY/SELL).
- **EntryTime:** Entry Time of Trades
- **Status:** Open/ Close
- **Ltp:** Ltp Tick of Stocks
- **PnL:** Calculate PNL
- **ExitPrice:** Exit Price
- **ExitTime:** Exit Time of Trades### 3 Layout
## Tick Update and Trade GenerationOnce the user is allowed to start trading, ticks will be updated and visible in a text box. Users can generate new trades using the "Buy" and "Sell" buttons. The tick price will be generated randomly .
## Buttons- **Buy:** Initiates the buying process, generating a random tick price.
- **Sell:** Initiates the selling process, generating a random tick price.### Tick Update
The updated tick price will be displayed in a text box, providing real-time information to the user about the market conditions.
Explore the tick updating, trade generation, and P&L calculation features on the trading screen. Experiment with buying and selling to observe how the P&L is dynamically calculated based on market movements (Random function will simulate Market real time feed)