Hi Sam,
I can only see part of your code from the screen shot, so I can not see what the problem is.
So I'm attaching an sample script for options which works for me. Options are more complex then stocks because you have to find the strike, and you can have many strikes per stock. I tested this with IBM, so use that. This script will also display position information after you buy an option and all your account information. Note: IB has "ISSUES" with the P&L information on the trading page, so use the IB account page to look at P&L and the TWSLink output.
Note: You will have to get the latest DLL from the author to get this to work.
Comment