Giter Site home page Giter Site logo

mobidian / trading-simulation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coderixc/trading-simulation

0.0 0.0 0.0 1.06 MB

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.

C# 100.00%

trading-simulation's Introduction

Trading Simulation Project

Introduction

This 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.
login Panel

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
Welcome Screen

3 Layout

Tick Update and Trade Generation

Once 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)

Trading screen 3

trading-simulation's People

Contributors

coderixc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.