Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,672 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Unknown order # came from where? [Re: DdlV] #445330
09/04/14 07:44
09/04/14 07:44
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
It is an API bug, but I got no clear information about its reason. I think that it will be gone with the next FXCM API update.

Re: Unknown order # came from where? [Re: jcl] #445337
09/04/14 11:59
09/04/14 11:59
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks. Has FXCM said when that next API update will happen?

Re: Unknown order # came from where? [Re: DdlV] #445353
09/05/14 09:48
09/05/14 09:48
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
No. The FXCM information policy about anyting related to the API is a little opaque, to say the least.

Re: Unknown order # came from where? [Re: jcl] #445357
09/05/14 11:43
09/05/14 11:43
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
frown If only there were a better broker... laugh

Thanks.

Re: Unknown order # came from where? [Re: DdlV] #445395
09/08/14 02:23
09/08/14 02:23
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Hi jcl. I now have a reverse-orphan trade that I need to know how to handle. Reverse-orphan means it's closed but Zorro still thinks it's active. Here is what happened, and the questions I have:

a) On Friday, Z12 opened this last trade before Weekend:
Code:
[GBP/USD:CY:L1732] Long 2@1.6312 Risk 15$  at 16:11
Weekend at 05.09. 20:00................



b) Today (Sunday), Z12 began to try to close the trade while trading was still closed (per Trading Station) and while Zorro was still in Weekend (at default 2). These messages began to repeat:
Code:
Broker: Error - Market is closed. Any trading functionality is not available.

Broker: Close order failed 58631732
BrokerSell GBP/USD: 20026 ms
[GBP/USD:CY:L1732] Can't close 2@1.6224 at 19:00
Broker: Error - Market is closed. Any trading functionality is not available.

Broker: Close order failed 58631732
BrokerSell GBP/USD: 20022 ms
[GBP/USD:CY:L1732] Can't close 2@1.6205 at 19:00
Broker: Close order incomplete 58631732
Broker: Error 072 - Timeout 58631732
BrokerSell GBP/USD: 40918 ms
[GBP/USD:CY:L1732] Can't close 2@1.6205 at 19:00



c) Question 1: Since FXCM Trading was still closed (per Trading Station), how valid/bogus were the prices Z12 was receiving and on which it based the close decision? Is Weekend=2 the correct value to use for FXCM?

d) Since all Trading was still closed, this trade could not be closed, but Z12 kept trying & logging messages like the above every minute or so. This seems to be normal functioning for Weekend=2 from what's in the manual, except that at each attempt Z12 went "Not responding" during most of this time - Question 2: Is Zorro being hung up by the API?

e) Immediately when Trading opened at 21:00, Trading Station reported the trade as closed. 2 problems:

f) Question 3: The close price recorded in Trading station is 1.61551. The price in Zorro's log at 20:00 is 1.6199. Why the difference?

g) Zorro did not recognize that the trade had been closed. The messages changed and the bogus trade # makes its 1st appearance:
Code:
Broker: Error - Cannot find a trade for order : 124059651@xxxxxxxx

Broker: Close order incomplete 58631732
Broker: Error 072 - Timeout 58631732
BrokerSell GBP/USD: 40939 ms
[GBP/USD:CY:L1732] Can't close 2@1.6173 at 21:00
Broker: Close order incomplete 58631732
Broker: Error 072 - Timeout 58631732
BrokerSell GBP/USD: 40913 ms
[GBP/USD:CY:L1732] Can't close 2@1.6173 at 21:00



h) At 23:00 Z12 went off Weekend and the logged messages became:
Code:
Weekend ends at 07.09. 23:00
[GBP/USD:CY:L1732] TMF stop after 0 bars
Broker: Error - Cannot find a trade for order : 124061545@xxxxxxxx

Broker: Close order failed 58631732
BrokerSell GBP/USD: 20023 ms
[GBP/USD:CY:L1732] Can't close 2@1.6221 at 22:58
Broker: Close order incomplete 58631732
Broker: Error 072 - Timeout 58631732
BrokerSell GBP/USD: 40966 ms
[GBP/USD:CY:L1732] Can't close 2@1.6221 at 22:58
Broker: Error - Cannot find a trade for order : 124061549@xxxxxxxx

Broker: Error - Cannot find a trade for order : 124061551@xxxxxxxx

Broker: Close order failed 58631732
BrokerSell GBP/USD: 20014 ms
[GBP/USD:CY:L1732] Can't close 2@1.6220 at 23:00



i) The last 4 messages have repeated continuously since then, and Z12 still thinks the trade is open. The bogus order number appears to be time-stamp related, as the 6th digit seems to increment every hour.

j) Now, whenever Z12 tries to close that trade it goes "Not responding" for about 20 seconds. The VPS is also running 2 other Zorro instances, and those 2 also go unresponsive (as judged by their clocks not incrementing) for the same 20 seconds. Question 4: Is this because they're all running through the same API? Is ticks processing for all also suspended & ticks dropped?! Is this a reason to not run multiple instances on the same machine/VPS?

k) And, of course, the final Question 5: How do I get Z12 to recognize that the trade is closed?!

Thanks.

Re: Unknown order # came from where? [Re: DdlV] #445397
09/08/14 10:04
09/08/14 10:04
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
This is a good question: Zorro detects if a trade was closed from its appearance in the Broker's close list. But if the closing was several days ago, it's not anymore in the list and thus not detected as closed.

We had never observed such a case, so none of the Z systems has a script function for discarding a trade. You must ignore that problem for the next days, until the upcoming Zorro update. We'll provide a solution for removing a trade from Zorro's list.

Re: Unknown order # came from where? [Re: jcl] #445399
09/08/14 11:49
09/08/14 11:49
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
jcl, the closing was yesterday evening less than 24 hours ago, and as of a few seconds ago the trade is still in the Closed Positions tab of TS - is that the closed list? Perhaps there's another bug? Or the trade # API bug is returning the wrong (or empty) closed list to Zorro?

Zorro continues to produce the same error messages - not harmful but certainly messing up the window & log file...

Thanks.

Re: Unknown order # came from where? [Re: DdlV] #445401
09/08/14 13:25
09/08/14 13:25
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Is 58631732 also the ID in the TS closed trades list?

Re: Unknown order # came from where? [Re: jcl] #445402
09/08/14 13:36
09/08/14 13:36
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Yes.

Re: Unknown order # came from where? [Re: jcl] #445403
09/08/14 13:37
09/08/14 13:37
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I was just informed by my colleague that Zorro does in fact remove such a trade, after 50 failed attempts to close it. Please check if this really happens with your Zorro - we never had 50 failed attempts so far, so this was only tested by simulation.

The problem is obviously caused by the wrong ID.

Page 2 of 3 1 2 3

Moderated by  Petra 

Gamestudio download | 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