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

Andy