Hi, I have a script that should buy and sell stocks at specific dates. Broker is IB. The buying works, but the when selling I get an error: Closing prohibited - check NFA flag! Does anybody knows why this error comes up and how I can fix it? Thanks
The IB API is NFA compliant and does not control individual trades. All trades can therefore only controlled by Zorro. The account portfolio only reflects the net sum of all open positions by all connected Zorros. The NFA flag must be set for IB accounts.