Hi Karel,
In your description you accidentally switched 'buy' and 'sell.' Also, one needs to know how many stocks exist at each price level, not just the prices at which he bought. This is so that when selling, he will know how many to remove at each level.
Your friend,
Matt