I am a program newbie and am currently developing a test code for the automated trading using NT7 and IB TWS. But when I tested it with my active account in IB, it does not read my account info (cash balance). More details are following.
The Problem
1. When I run the code (the whole code below) in backtesting, it works well with the "DefaultAccountSize".
2. However, in the live trading with IB TWS, the code does not read my account balance and the strategy still works with the DefaultAccountSize.
I appreciate any comments for this problem.
Thank you very much.
Best regards,
CUK.
--------------------------------------------------
Comment