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
2 registered members (rki, Ayumi), 475 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
Z12 NET trade mismatch #462967
11/08/16 17:12
11/08/16 17:12
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 (& others),

On a morning bar today, my Z12 entered a virtual ES EUR/USD short 2. However, the real NET was a short 14. There was no prior ES trade active. How could this be?

I initially thought it might have to do with Equity Curve Trading since for the last few days there were other virtual EUR/USD trades active for other algos and no NET trades active (the last NET was closed Thursday), but the manual says Equity Curve Trading is by asset AND algo.

So, I don't understand how 2 virtual ES became 14 real NET?

Thanks.

Re: Z12 NET trade mismatch [Re: DdlV] #462978
11/09/16 14:15
11/09/16 14:15
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
No, it has nothing to do with equity curve trading. But check all other open virtual trades. When NET trades were either externally closed, or could not be opened due to some market issue, there can be a discrepancy between virtual and real trades. This discrepancy is equalized when the next trade is opened or closed.

Re: Z12 NET trade mismatch [Re: jcl] #463025
11/10/16 22:45
11/10/16 22:45
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 jcl.

Unrelated, while looking closer, I came across this:

Code:
{EUR/USD:ES:S1876} TMF exit after 6 bars
{EUR/USD:ES:s1876} Exit ...



Since the TMF message refers to the virtual trade, shouldn't the "S" be lower case? I couldn't quickly find a TMF exit of a Long to see if it was also upper case...

To the subject at hand, going into 11-03 virtual and real trades were in agreement at 2 Long. Then came these:

Code:
Thursday 03.11.16  ...
{EUR/USD:VO:l0205} Sell 4 ...
{EUR/USD:VO:l1106} Sell 4 ...
Buy 1S EUR/USD Stop 0.0173 at 16:11
{EUR/USD:VO:s2312} Short 6 ...
!Error 072 - Timeout 67026538
BrokerSell EUR/USD: 42178 ms
[EUR/USD:NET:L6538] Can't close 2 ...
BrokerSell EUR/USD: 603 ms
[EUR/USD:NET:L6538] Sell 2 ...



Another aside: There appears to be a bug in the virtual trade Buy messages since they seem to always say 1...

At this point virtual & real are out of sync - virtual is at 12 Short; real is at 0.

Then comes:

Code:
Friday 04.11.16  ...

Weekend at 04.11. 20:00................

Weekend ends at 06.11. 23:00

Monday 07.11.16  ...

Tuesday 08.11.16  ...
Buy 1S EUR/USD Stop 0.0046 at 08:11
{EUR/USD:ES:s3819} Short 2 ...
Buy 14S EUR/USD Stop 0.0005 at 08:11
BrokerBuy EUR/USD: 290 ms
[EUR/USD:NET:S0483] Short 14 ...



So, with Tuesday's NET trade virtual & real are back in sync at Short 14.

But why 3 (trading) days later? Did the timeout error on Thursday prevent the other NET trades that would have normally occurred on that day?

And why doesn't re-synchronization occur earlier (f.i. at the next bar)? Why does it (apparently) wait until a new virtual trade is triggered?

Thanks.

Re: Z12 NET trade mismatch [Re: DdlV] #463029
11/11/16 08:21
11/11/16 08:21
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Because you normally want a system to trade only when it expects profit. You don't want an unprofitable entry just for synchronizing.

The messages are different because some are from Zorro and some from the script.

Re: Z12 NET trade mismatch [Re: jcl] #463037
11/11/16 16:48
11/11/16 16:48
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 jcl.

Please bear with me as I try to understand better.

I normally want a system to trade when it expects profit AND to minimize loss - is this not correct?

Shouldn't on Thursday a real Short 12 been entered? This would have been consistent with other days when multiple NET trades happen so real is in sync with virtual. It seems to me the error on the NET closing of the Long prevented this Short being entered...

Put another way, if virtual decided to go Short (6 on Thursday), how is it that real overrides and doesn't Short? I don't see anything like that in description of Virtual Hedging...

Thanks.

P.S. - Since both Z12 script and Zorro messages come from the Zorro team, shouldn't they be consistent? laugh


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