Gamestudio Links
Zorro Links
Newest Posts
Instrument Price Zorro Chart
by felixfx. 10/19/19 20:48
Today real live account blown - my experience
by Clifford_B. 10/19/19 17:09
Building Diversified Portfolios - New Paper
by SnoopySniff. 10/18/19 16:23
Indices & metals easier to trade than FX???
by SnoopySniff. 10/18/19 10:08
What are you working on?
by txesmi. 10/17/19 07:00
Ducascopy exporter
by line7. 10/17/19 06:21
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
5 registered members (AndrewAMD, felixfx, Dalla, painkiller, ugofx), 658 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
VillageTalkies, line7, Shutch, Clifford_B, Paulius
18310 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 (16 downloads)
Re: Oanda FIFO issue? [Re: Peeyotch] #477992
08/22/19 16:44
08/22/19 16:44
Joined: Jul 2000
Posts: 27,029
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,029
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 (13 downloads)
Re: Oanda FIFO issue? [Re: Peeyotch] #478003
08/24/19 12:10
08/24/19 12:10
Joined: Feb 2017
Posts: 772
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 772
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.


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