Add new Value Source ‘SoldPerDay()’
I’d like to recommend a new value source named Sold PerDay() that uses accounting info to generate a personal SoldPerDay value. Much like SaleRate was added in 4.10 to generate a personal SaleRate instead of relying only on DBRegionSaleRate, SoldPerDay() would allow a user to generate a value based on how many they sold over the last X days. For example, if the user had sold 2 of an item every day for the last month, SoldPerDay(30) would return 60, SoldPerDay(7) would return 14, and SoldPerDay(3) would return 6.
As an example, suppose I like to craft at least 3 days worth of Vial of the Sands at a time, since I don’t have time to craft every day. Currently, finding the sweet spot requires constant trial and error, since demand for this item changes over time. However, my accounting info contains useful data that could instantly be utilized with this value source. For example: I could set the max restock quantity to SoldPerDay(3). Now I have about the amount I have been recently selling over the last 3 days. If I wanted to get a less volatile number but still only restock for 3 days, I could use a max restock quantity of SoldPerDay(30) / 10. Now, I’m restocking based on the average amount I’ve sold every 3 days over the last 30 days.
I think this value source would be very useful in allowing users to craft and restock an up-to-date number of items based on their accounting info.