Gamestudio Links
Zorro Links
Newest Posts
Trouble getting data with IB Gateway
by richs. 07/16/20 03:12
Futures with IB
by jbhunter. 07/16/20 01:08
A9
by 3run. 07/15/20 19:07
Maximum Value
by AndrewAMD. 07/15/20 12:50
What are you working on?
by NeoDumont. 07/14/20 23:06
Engine window and DPI scaling
by Dooley. 07/14/20 20:27
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
9 registered members (AndrewAMD, Quad, 20BN, onoff, richs, kvm, JeyKey II, FLD, Nymphodora), 384 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Estripa, nowater, dasanc, DavidFdez, TraderKevin
18478 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
iB - NFA Flag error #480675
06/26/20 20:25
06/26/20 20:25
Joined: Apr 2020
Posts: 2
Hessen
A
AndyF1982 Offline OP
Guest
AndyF1982  Offline OP
Guest
A

Joined: Apr 2020
Posts: 2
Hessen
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

Re: iB - NFA Flag error [Re: AndyF1982] #480676
06/26/20 20:33
06/26/20 20:33
Joined: Feb 2017
Posts: 1,030
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,030
Chicago
When using IB, you must set the NFA flag before you trade. You didn't set the NFA flag.
https://zorro-project.com/manual/en/ib.htm
https://zorro-project.com/manual/en/mode.htm#nfa
Quote
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.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1