A few notes: You might see the stocks available tab going into the negatives, this is completely harmless as far as my testing has shown! Also, your X3 may hang for a second when selling massive amounts of a stock (1million+), but it will snap out of it! This hang increases in time based on how much stock you are selling, so sell in smaller bursts! My tests have shown that selling over 3million can hang for about 10 seconds... I have yet to determine the cause. It might be an issue with the sell script calculating each stock individually.
WARNING: Some people may consider this a bit of a cheat, because if you use this right you could end up with a majority share in the universe...

Installation: simply extract the .rar to your scripts directory in your Albion Prelude folder! The .rar only contains one script! Remember to delete the old one (if you get no overwrite warning) as this xml file is not compressed as a pck!
[ external image ] via Mediafire
or
[ external image ] via dropbox!