The vanilla station auto pricing works wonderfully on NPC stations with fixed and known storage capacities. However, it absolutely sucks on player made stations with variable storage capacities. Therefore, I have created a formula that adjusts price based on Supply and Demand. However, I cannot figure out how to implement it. I coded MD back during T3, so I understand the basics, but not the intricacies of T4.
Please help me by providing me with an example or direct me to a mod that does something similar. I'm seeking the following information:
1. A method for the player to set the minimum quantity of each ware that they want retained on the station.
2. Setting variables with how many of each ware that the station made in the last hour (Logistics chart data).
3. Setting variables with how many of each ware that the station sold in the last hour (Logistics chart data).
4. A method to adjust the price of each ware.