Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 945 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: dmac] #474334
10/07/18 15:05
10/07/18 15:05
Joined: Oct 2018
Posts: 70
AZ
C
chsmac85 Offline
Junior Member
chsmac85  Offline
Junior Member
C

Joined: Oct 2018
Posts: 70
AZ
Hi Dmac,
Can you explain how you find the orphan trades in a little more detail? I am using an IB paper account and I can't easily determine what is open and what is orphaned (what is open but shouldn't be).
I have the .html page the zorro produces open and it has 19 trades open. I've only had zorro running for 9 days.
Is there perhaps a way in the logs to identify trade errors?

Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: chsmac85] #474349
10/08/18 12:55
10/08/18 12:55
Joined: Feb 2018
Posts: 27
D
dmac Offline
Newbie
dmac  Offline
Newbie
D

Joined: Feb 2018
Posts: 27
Originally Posted By: chsmac85
Hi Dmac,
Can you explain how you find the orphan trades in a little more detail? I am using an IB paper account and I can't easily determine what is open and what is orphaned (what is open but shouldn't be).
I have the .html page the zorro produces open and it has 19 trades open. I've only had zorro running for 9 days.
Is there perhaps a way in the logs to identify trade errors?


So you've got 19 showing in zorro. Go into IB and count the actual trades there. If it's not 19 you've got an orphan or two.

Then to find the orphan, go to the zorro trade log and examine each symbol. Let's say have 4 positions in USDCAD. Go look at the USDCAD positions in IB and find the one that doesn't belong (using lot size, date, etc). Close it manually. I do this for each symbol until everything matches again.

The MT4 log is also helpful, it'll show errors if you scroll back. I'm not sure you have the same sort of log in IB for rejected orders, probably not.

Are you trading Z12 in IB? What kind of leverage?

Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: dmac] #474351
10/08/18 15:15
10/08/18 15:15
Joined: Oct 2018
Posts: 70
AZ
C
chsmac85 Offline
Junior Member
chsmac85  Offline
Junior Member
C

Joined: Oct 2018
Posts: 70
AZ
First error I found: I don't have 19 open orders. I have 5 open orders with 14 phantom orders.

I'm really struggling to hunt down the orders in the logs. I first tried using "enter" as a keyword search and that failed. I am now using the '[' as the delimiter and I can see trades that have actually been placed as opposed to the "phantom" trades.

However, it looks like on of the phantom trades may have actually executed as I can't find any other trade for that currency pair and price in the IB logs.

The leverage in IB varies by asset type. Anywhere from 33-1 up to 50-1.

Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: chsmac85] #474352
10/08/18 15:27
10/08/18 15:27
Joined: Feb 2018
Posts: 27
D
dmac Offline
Newbie
dmac  Offline
Newbie
D

Joined: Feb 2018
Posts: 27
Ok, wait, there's a difference between the phantom trades and orphans. Phantom trades are in curly braces {}. These are shadow trades that zorro opens for trading the equity curve and virtual hedging. You can ignore these.

Just look at the ones in square brackets and compare them to actual open trades at the broker.

If you've got 5 actual positions in zorro you should have 5 at the broker.

Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: dmac] #474353
10/08/18 17:35
10/08/18 17:35
Joined: Oct 2018
Posts: 70
AZ
C
chsmac85 Offline
Junior Member
chsmac85  Offline
Junior Member
C

Joined: Oct 2018
Posts: 70
AZ
Got it. I have 5 at the brokerage and 5 on zorro.

I had lots of error messages, which is what originally got me looking at the logs. Have you found any way of identifying orphan trades besides manually scanning logs? I don't have any currently, but don't want some to pop up and miss them.

Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: dmac] #474369
10/09/18 20:48
10/09/18 20:48
Joined: Oct 2018
Posts: 3
C
Chrisy Offline
Guest
Chrisy  Offline
Guest
C

Joined: Oct 2018
Posts: 3
Hello,
I just wanted an information how much did you set the capital with the slider?
did you change any parameters on the .ini file?
Hello and thanks

Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: Chrisy] #474371
10/10/18 09:43
10/10/18 09:43
Joined: Feb 2018
Posts: 27
D
dmac Offline
Newbie
dmac  Offline
Newbie
D

Joined: Feb 2018
Posts: 27
Originally Posted By: Chrisy
Hello,
I just wanted an information how much did you set the capital with the slider?
did you change any parameters on the .ini file?
Hello and thanks


Back when I started, the required capital for Z12 was higher than the initial capital. So when I started my account with a $5K deposit, I set the capital slider to about $4K.

After version 1.83, the Z12 backtests began showing a required capital number that was less than the initial capital. I'm not exactly sure how to interpret that, but I've since adjusted the capital upwards to be just a bit under the actual equity in the account.

I changed nothing in the ini file except the max capital setting.

Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: dmac] #474375
10/10/18 15:54
10/10/18 15:54
Joined: Oct 2018
Posts: 79
S
SnoopySniff Offline OP
Junior Member
SnoopySniff  Offline OP
Junior Member
S

Joined: Oct 2018
Posts: 79
Thank you!

Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: dmac] #474394
10/11/18 11:38
10/11/18 11:38
Joined: Oct 2018
Posts: 3
C
Chrisy Offline
Guest
Chrisy  Offline
Guest
C

Joined: Oct 2018
Posts: 3
hello Dmac ,
hanks for the info.
I wanted to ask you do the backtest every time you stop the strategy?
Hello
I started with 3500 with the capital put in 2000 but now I'm in DD, I'm worried

Last edited by Chrisy; 10/11/18 11:42.
Re: Z12 all trades closed by Zorro but there are still a lot opened [Re: Chrisy] #474401
10/12/18 10:09
10/12/18 10:09
Joined: Feb 2018
Posts: 27
D
dmac Offline
Newbie
dmac  Offline
Newbie
D

Joined: Feb 2018
Posts: 27
Originally Posted By: Chrisy
hello Dmac ,
hanks for the info.
I wanted to ask you do the backtest every time you stop the strategy?
Hello
I started with 3500 with the capital put in 2000 but now I'm in DD, I'm worried


No, I've never run any backtests on my live server. I think this means that the CBI is now inaccurate on that server. I think at some point I should copy up a DBL file from a recent backtest to fix that.

Page 2 of 4 1 2 3 4

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