Hi,
The exception was generated on line 138, but the source you have attached contains only 131 line. If you attach the proper source, it will be easier to see what is going on.
Also, it is better if you post question like this (related to automated trading) in the following topic:
viewforum.php?f=65