You are browsing as a guest. Sign up (or log in) to start making projects!

F1re_st0rm

@F1re_st0rm

Joined June 4th, 2026

  • 6Devlogs
  • 1Projects
  • 1Ships
  • 2Votes
Ship Pending review

This is a stock market simulator. I built it in c++ and it aims to simulate a stock market using Agents which can generate orders that are executed. It is a fairly static project, where key resources and constants are determined before compiling by the user, and the main goal is to generate csv files of data which can be processed and analyzed. I encourage you to play around with the figures in config.h in order to see what different values do with the simulator. To use this, due to the lack of other options, you must download and compile the repo locally.

  • 6 devlogs
  • 10h
Try project → See source code →
Open comments for this post

4h 20m 54s logged

Finished DCF model

  • Finally finished making somewhat intelligent agents which use the dcf model in order to make trades
  • Added a world and company class –> They generate interest rates and FCF earnings respectively
  • This info then gets fed into the agent context window (ctx)
  • The agent then uses the DCF formula to make a trade
  • Works (fairly) well
0
0
17
Open comments for this post

3h 1m 51s logged

More Complex Structures
Added a world and a company class:

  • World: Mimics a financial world, which has a business cycle and interest rates which follow a sinusodial pattern
  • Company: Uses the info in the world class to generate mock earnings.

All this info will be needed in order for agents to be able to use the DCF model to trade better.

0
0
3
Open comments for this post

43m logged

What is value?
One of the most common ways to determine the value of a company is to use a discounted cash flow model (DCF). This is what the new agents will be using to trade. Implementing this first requires an extension of the simulator I’ve created. A company and a world class will be created where various items (such as earnings and interest rates) will be set and allowed to flow to the simulator class. After that, agent will use a DCF model to determine if the stock is worth buying or not.
Coming Soon (hopefully in the next 2 weeks)

0
0
8

Followers

Loading…