Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by 7th_zorro. 04/16/24 13:19
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
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
6 registered members (7th_zorro, Aku_Aku, VoroneTZ, 11honza11, ricky_k, Nymphodora), 427 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Oanda FIFO issue? #477991
08/22/19 14:23
08/22/19 14:23
Joined: Sep 2017
Posts: 5
Peeyotch Offline OP
Newbie
Peeyotch  Offline OP
Newbie

Joined: Sep 2017
Posts: 5
I just started running the Z12 system this week using the Oanda API DLL under Zorro S and discovered some rejected trades this morning. Unfortunately I was an idiot and neglected to save the Zorro log, but the Oanda transaction history shows what happened. See attached screenshot of my transaction log.

I'm running with NFA off per the Oanda broker plugin docs, Hedging=5, Phantom=1, FXOnly=1 (being an American)

When I logged into Oanda web trading, I got a notification about FIFO rules and changes that went into effect only a few days ago. The gist of it is that all trades on the same instrument that have take-profit or stop-loss orders must be of a unique size to comply with FIFO rules. You can see in my screenshot that Zorro violated that rule. (Oanda's FIFO support page) Did I not configure something properly, or is this an entirely new thing that Oanda has done to make everyone's life more difficult?

Attached Files fifo.png
Re: Oanda FIFO issue? [Re: Peeyotch] #477992
08/22/19 16:44
08/22/19 16:44
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
The unique size is new to me. Since trades have normally no unique size, you must set the stop factor to zero for stepping around this rule.

Re: Oanda FIFO issue? [Re: Peeyotch] #478002
08/24/19 11:14
08/24/19 11:14
Joined: Nov 2016
Posts: 69
USA
J
jrath Offline
Junior Member
jrath  Offline
Junior Member
J

Joined: Nov 2016
Posts: 69
USA
I was curious if Zorro needs updating for this Oanda FIFO change too. I have not seen any errors. I attach a few details.

Attached Files oanda.PNG
Re: Oanda FIFO issue? [Re: Peeyotch] #478003
08/24/19 12:10
08/24/19 12:10
Joined: Feb 2017
Posts: 1,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
Chicago
Just add this to your script:

Code
StopFactor = StopPool = 0;


This will keep your stops and limits on the Zorro-side, thus meeting the FIFO requirements. No changes to Zorro required.

jcl: I see that the StopFactor issue was added to the documentation. I would also suggest StopPool = 0 also be added.

Re: Oanda FIFO issue? [Re: AndrewAMD] #478019
08/26/19 15:22
08/26/19 15:22
Joined: Sep 2017
Posts: 5
Peeyotch Offline OP
Newbie
Peeyotch  Offline OP
Newbie

Joined: Sep 2017
Posts: 5
I would say that this appears to be a U.S. only change (of course). One of the FAQs on the page I linked is who this applies to, and it's only accounts within Oanda's U.S. division.


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