Hey Rrrix,
I've updated the Constants.cs file with new values from d3maxstats and some stats of my own (I found alot of stats missing or not updated on that site, even gear I had in my own Stash had higher numbers!
I set Trinity to 90,000 for weapons and 30,000 for Armor and Jewelry and most items are now being Sold/Salvaged correctly, with only some items making it into my stash.
I put the new stats into the Constants.cs file at only 85% of true max value, as that's how the algorithm is designed to operate (thus why my first post had maximum in apostrophes), with some values still only a guess and most unchanged.
At any rate it operates properly now, maybe not as effeciently as it could, but it now doesn't just stash everything.
Let me know how I can send you the file, or I can just PM you the exact part of the file I altered and you can try it on your client machine.
Cheers,
Dark