Introduce time-based ledger price sources
Many people use avgBuy(itemString) in order to determine their cost price of some crafted items. The current avgBuy(itemString) is not very useful in long term. Take my only 2 months old data for 1 item as an example: https://i.gyazo.com/cee4242245f1cc154250f72b85949304.png
you can already see even with 2 months of data that using avgBuy will quite inaccurate results for more recent crafts, whereas avgBuy7 or avgBuy30 (or potentially avgBuy(itemString [, days])) would give a much higher control.
Similarly, avgSell7(itemString) and avgSell30(itemString) should be added.
The smart average solution won't work for a situation where you're trying to use this price for a shuffle since you won't have any more of the raw material left in your inventory.
"Smart Average for Purchase Price" is not the same thing, and it does not apply to avgSell. I would really like to know what I have sold e.g. intellect flasks for over the last 7 days, instead of over all time. Or what I've bought Starlight Rose for over the last 7 days, regardless of how much inventory I have left.
This already exists as a 'Smart Average for Purchase Price' in /tsm > Options > Accounting: http://i.imgur.com/XC1vgu3.png