Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,369 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Unknown order # came from where? #442106
06/11/14 14:07
06/11/14 14:07
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. My Z5 just closed a trade, but at the same time printed this message:

Code:
Broker: Error - Cannot find a trade for order : 38452857@...



I understand this is a broker (FXCM) message, but the problem is there has never been a trade with that order #! (The closed trade was a a different order #.)

Where did Zorro get that # to send to the broker? Or did FXCM make it up and this is a(nother) problem with the FXCM API?

Thanks.

Re: Unknown order # came from where? [Re: DdlV] #442126
06/12/14 10:12
06/12/14 10:12
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I'd normally say that this is the closed trade and the close command just executed faster than a trade status update command. But I don't know why the trade number is different - the number changes only when a trade is not fully but partially closed. Maybe you can post the log?

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

Joined: Jun 2013
Posts: 1,609
Log snippet:

Code:
[Tue 10.06. 23:00]  639 +15 -44 /\\\

Tuesday 10.06.14  Loss -13.30 ----
[EUR/CHF::L6420] -15$ s1.1224 c1.2182 e1.2224
[EUR/CHF::L6200] -26$ s1.1237 c1.2182 e1.2237
[EUR/CHF::L3281] -6$ s1.1199 c1.2182 e1.2199
[EUR/CHF::S3633] +3$ s1.3198 c1.2182 e1.2198

[Wed 11.06. 00:00]  640 +15 -43 /\\\
[Wed 11.06. 01:00]  641 +15 -43 /\\\
[Wed 11.06. 02:00]  638 +15 -44 /\\\
[Wed 11.06. 03:00]  641 +15 -43 /\\\
[Wed 11.06. 04:00]  638 +15 -44 /\\\
[Wed 11.06. 05:00]  644 +15 -42 /\\\
[Wed 11.06. 06:00]  644 +15 -42 /\\\
[Wed 11.06. 07:00]  653 +15 -40 /\\\
[Wed 11.06. 08:00]  657 +15 -39 /\\\
[Wed 11.06. 09:00]  656 +15 -40 /\\\
[Wed 11.06. 10:00]  652 +15 -40 /\\\
[Wed 11.06. 11:00]  627 +15 -45 /\\\
[Wed 11.06. 12:00]  620 +15 -47 /\\\
[Wed 11.06. 13:00]  622 +15 -46 /\\\
[EUR/CHF::S3633] Trail 2@1.2198 Stop 1.2174 at 13:31
Broker: Error - Cannot find a trade for order : 38452857@xxxxxx

Broker: Close order skipped 19093633
BrokerSell EUR/CHF: 20100 ms
[EUR/CHF::S3633] Stop 2@1.2174: +4.92 at 13:31



Thanks.

Re: Unknown order # came from where? [Re: DdlV] #442144
06/13/14 07:21
06/13/14 07:21
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Hmm, this looks indeed as if the API had changed the trade number. I'll forward an inquire to the API developers if and under which circumstances this can happen.

But it should not be dangerous. If a trade can't be closed at some point, Zorro will repeat the command until it is closed.

Re: Unknown order # came from where? [Re: jcl] #442146
06/13/14 08:10
06/13/14 08:10
Joined: May 2014
Posts: 7
J
James_Bolton Offline
Newbie
James_Bolton  Offline
Newbie
J

Joined: May 2014
Posts: 7
It seems that my problem is similar to DdlV's when running Z5 but my log shows a little more information. Here's part of the trading log:
...
[Wed 04.06. 11:00] 3483 +0 -17 /\
[Wed 04.06. 12:00] 3482 +0 -17 /\
[Wed 04.06. 13:00] 3483 +0 -17 /\
[Wed 04.06. 14:00] 3481 +0 -19 /\
[Wed 04.06. 15:00] 3478 +0 -21 /\

[EUR/CHF::S8635] Trail 8@1.2224 Stop 1.2199 at 15:04
Broker: Error - Cannot find a trade for order : 38260125@306546
Broker: Close order skipped 19028635
[EUR/CHF::S8635] Stop 8@1.2200: +19.29 at 15:05

[Wed 04.06. 16:00] 3475 +19 -44 \
[Wed 04.06. 17:00] 3476 +19 -43 \
[Wed 04.06. 18:00] 3477 +19 -41 \
[Wed 04.06. 19:00] 3480 +19 -39 \
[Wed 04.06. 20:00] 3481 +19 -38 \
...
[Wed 11.06. 09:00] 3444 +19 -75 /\\
[Wed 11.06. 10:00] 3442 +19 -77 /\\
[Wed 11.06. 11:00] 3430 +19 -90 /\\
[Wed 11.06. 12:00] 3427 +19 -93 /\\
[Wed 11.06. 13:00] 3428 +19 -92 /\\

[EUR/CHF::S3634] Trail 6@1.2198 Stop 1.2174 at 13:31
Broker: Error - Cannot place more than one order of this type for each trade: 38452856@306546
Broker: Close order skipped 19093634
Broker: Error 072 - Timeout 19093634
[EUR/CHF::S3634] Can't close 6@1.2174 at 13:31
[EUR/CHF::S3634] Closed 6@1.2173: +14.76 at 13:32

[Wed 11.06. 14:00] 3417 +34 -117 \\
[Wed 11.06. 15:00] 3413 +34 -121 \\
[Wed 11.06. 16:00] 3429 +34 -106 \\
[Wed 11.06. 17:00] 3424 +34 -110 \\
[Wed 11.06. 18:00] 3426 +34 -108 \\
[Wed 11.06. 19:00] 3428 +34 -107 \\
...

Re: Unknown order # came from where? [Re: James_Bolton] #442147
06/13/14 09:13
06/13/14 09:13
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
My Z5 bevahes the same, but only once:

Quote:

[Wed 11.06. 13:00] 4420 +0 -124 /\\\
[EUR/CHF::S9388] Trail 6@1.2198 Stop 1.2174 at 13:31
Broker: Error - Cannot find a trade for order : 67027169@102654

Broker: Close order skipped 15499388
[EUR/CHF::S9388] Stop 6@1.2174: +11.09 at 13:31


I guess something happened at least at 11.06. 13:00, all logs in here show the identical error at this time.

Re: Unknown order # came from where? [Re: Sphin] #442152
06/13/14 11:15
06/13/14 11:15
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
It did not happen here, but it's indeed interesting that it happened at the same time, as if caused by a server glitch.

Re: Unknown order # came from where? [Re: jcl] #442163
06/13/14 14:49
06/13/14 14: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
I went back and looked - I do not have a cannot find trade message at 04.06 15:00 as does James_Bolton, but I do have one at 05.06 11:00. So that's at least 3 different points in time during the last 2 weeks...

Re: Unknown order # came from where? [Re: DdlV] #444352
08/07/14 01:43
08/07/14 01: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
Hi jcl. I have continued to see this occur intermittently, and just had it happen again, but on Z12, AUD/USD, different FXCM account. The trade did subsequently close (but at a worse price). Was there any response from FXCM?

Thanks.

Re: Unknown order # came from where? [Re: DdlV] #445320
09/03/14 15:40
09/03/14 15:40
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. This has happened again on Z5 a few minutes ago. As before, the trade did close on what appears to be the 2nd attempt, at a slightly different price. Was it ever determined if this is an API bug?

Thanks.

Page 1 of 3 1 2 3

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