Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 472 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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 Online
Serious User
AndrewAMD  Online
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