View Full Version : Synching NTMarketPosition and positions
In my testing I had orders filled in IB's paper trading account via the ATI. NTMarketPosition gave me back the correct number of shares in each position. I then used the flatteneveryting menu option in the NT Control Center to close all the positions so I could continue my testing. All the positions closed, but NTMarketPosition still returns the old values, not zero. Is there a way to refresh the values for NTMarketPosition so they once again reflect actual positions held? I can also see this as an issue if I need to close a position manually rather then with the ATI and then want the ATI to take back over for that stock.
03-23-2006, 02:09 AM
Can you reproduce this each time?
No, I added positions and then flattened them and thepositions are showing up correctly now. However, this morning thepositions I heldovernight (they could be seen in IB and NT) were showing up as zero despite placing orders in that account this morning. To remedy this I flattened all positions to start fresh (this is in an IB paper account). That obviously will not be an attractive option for real trading.
This is the case again this morning. I held positions overnight and they show as flat with NTMarketPosition() even after placing and cancelling and order in that account.