There is lots of discovering you need to do in simulation mode. Most impotantly msgs received when an order is paced, positions changed, etc ...
Here is some sample code you can use to debug all messages. You can use this in the acct and stock Process() call.
I tried to comment parts...