In this project, we have created a GUI Java (Swing) Application that simulates a trading day of a simplified model of a stock market:
- You can try the application by downloading the Java Jar file from this link: http://perso.sinfronteras.ws/images/0/00/SMSimulator.jar
- Visit our Wiki at http://perso.sinfronteras.ws/index.php/Java_Desktop_App_-_Stock_Market_Simulator to know more about this project.
Trading Day Simulation:
- To be able to perform the simulation, the system first creates a number of companies with random values of «number of shares» and «share price». Then, we create a number of Investors with a random «budget».
- The simulator follows these rules:
- If a company sells 10 shares, the share price doubles up.
- If any 10 shares are sold (from any company), and a company hasn't sold any, the price reduces in half.
- Investors can do as many transactions as they like, but must buy only one share per transaction. Investors must try to buy shares in as many possible companies to guarantee the safety of their investment.
- The simulator stops when all shares have been sold, or all investors have spent all their money.