Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
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