"Carpet Simulator" is an online trading system simulator. The "Carpet" trading system consists in buying fixed-size stock batches within a price range at set intervals and selling each batch at a fixed profit.
To access the website you'll need an access token. A new token is generated once every 3 days. You can find the newest token on X here. Tokens are made by both letters and numbers. Trying logging in with an expired or non-existing token will trigger an error, as show in the screenshot below:
Once logged into the website, you'll be met with the following screen:
The left panel is where you'll have to type or upload the desired values:
- Lowest buy price. The starting price where the packets will be bought.
- Highest buy price. The final price where the packets will be bought
- Buy step. The price distance between each packet.
- Sell take. The value to add to each packet's buy price to determine its sell price.
- Number of shares per packet. The number of shares contained in each of the packets.
- Available funds. Your starting capital.
- Commissions tax. The value used as commissions tax. Commissions are applied whenever you buy or sell shares.
- CSV file. The file with .csv extension you want to use as price data.
Once ready you can click the "Start" button. If you made any mistake when typing the values, the website will warn you and stop the simulation. Else, everything will work as normally. Once the simulation finishes, you will be met with a message from your browser. The message contains the extended result of the simulation. Some of the included values are the price of the residual packets or the total capital gains tax paid. If you prefer a more compact view, you can click "OK" on the browser pop-up message and every chart will be updated with the results of the simulation. There are three pie chart, representing:
- How many packets you sold, and how many you didn't manage to sell.
- How many taxes you paid. Both commissions and capital gains are listed in the chart.
- How many of the packets you sold were in plus valence and how many in minus valence.
Then, you will be met with the value of rou capital at the end of the simulation. Here you can check if you lost money or had a gain. The line chart displays the equity line. In other words, how your capital changed during the simulation.
CSV files are used to store tabular data. For the program to run properly, the CSV must meet the following requirements:
- At least 3 columns, named "Date", "MaxPrice, "MinPrice" without the quotes. The order of the columns does NOT matter. The "Date" field is self explanatory, "MaxPrice" is the max price registered at the current date, while "MinPrice" is the minimum price registered at the current date.
- Dates sorted in a reverse chronological order. For example, the first row after the header must have the most recent data. This is the default format provided by Finance Data websites such as Yahoo Finance and Borsa italiana.
The following are a couple examples of correct CSV files:
Date | MaxPrice | MinPrice |
---|---|---|
01/01/2025 | 5.00 | 3.70 |
02/01/2025 | 4.80 | 4 |
MinPrice | MaxPrice | Date |
---|---|---|
3.70 | 5.00 | 01/01/2025 |
4 | 4.80 | 02/01/2025 |
(Please note that the CSV file can be of any lenght you desire)
Flaticon icon: Rebranding icons created by Freepik - Flaticon
X/Twitter logo icon: Twitter logo icons created by khulqi Rosyid - Flaticon
Github icon: Github icons created by Alfredo Creates - Flaticon
Website icon: Carpet icons created by Freepik - Flaticon