Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 552 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: Training Z strategy with different AssetsFix.csv [Re: jcl] #469432
11/15/17 19:01
11/15/17 19:01
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.

To be sure we're on the same page:

- The Z systems have been coded such that Train (when not Trading) and reTrain (when Trading) do the same thing - produce only the final Z<n>.par.

- For our own strategies, in the absence of similar specific code to do differently, Train will produce the individual .par files whereas reTrain will produce only the final .par file.

Correct?

Thanks.

Re: Training Z strategy with different AssetsFix.csv [Re: DdlV] #469436
11/15/17 21:27
11/15/17 21:27
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
No, train and retrain always do the same thing if not explicitely coded otherwise.

Re: Training Z strategy with different AssetsFix.csv [Re: jcl] #469437
11/15/17 22:01
11/15/17 22:01
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Then *sigh* I'm confused again. frown Why when I Train or reTrain Z3 do I only get the Z3.par file and not the Z3_n.par files?

I suppose it's because Z3 has the PARAMETERS flag OFF?

Thanks.

Re: Training Z strategy with different AssetsFix.csv [Re: DdlV] #469438
11/15/17 22:12
11/15/17 22:12
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Z3 is simply programmed to train the z3.par file by clicking the Train button. It is not programmed to do different things in training and retraining.

Re: Training Z strategy with different AssetsFix.csv [Re: jcl] #469439
11/16/17 06:08
11/16/17 06: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
Thanks for confirming, jcl!

Moving on...

The published ~85% AR is produced using the included AssetsFix.csv. For Z3, the pertinent lines are:

Code:
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol
NAS100,4185,2,-0.1,0,1,0.0871,2,0,0.1,0,
SPX500,2032.4,0.5,-0.5,0,0.1,0.0871,8,0,1,0,
US30,17520,2,-0.5,0,1,0.0871,6,0,0.1,0,
XAG/USD,17.235,0.046,-0.0009,0,0.01,0.43547,5,0,50,0,
XAU/USD,1260.82,0.47,-0.0124,0,0.01,0.00871,11,0,1,0,



My AssetsFix.csv unchanged from the Download script Tests to ~30% AR (& other metrics reduced as well):

Code:
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol
NAS100,6295.60,1.00000,0.1700,-.3400,1.0000,0.100000,3.5000,179.874,1.0,0.000,NAS100
SPX500,2578.17,0.50000,0.1200,-.6300,0.1000,0.100000,14.0000,184.155,1.0,0.000,SPX500
US30,23388.50,2.0000,-.0700,-.3300,1.0000,0.100000,13.0000,179.912,1.0,0.000,US30
XAG/USD,17.0470,0.04300,-.0100,-.0020,0.0100,0.500000,9.0000,94.706,50.0,0.000,XAG/USD
XAU/USD,1279.15,0.39000,-.0100,0.0000,0.0100,0.010000,7.0000,182.736,1.0,0.000,XAU/USD



I don't see values that differ by an order of magnitude. From the Test log, the trades start out the same, but the trade volumes are different. Thereafter, the trades taken differ somewhat, but the different trade volumes continue...

Does anything leap out at you explaining the drastic reduction in AR (& other metrics)?

If not, what would the procedure be to determine what's going on?

Thanks.

Re: Training Z strategy with different AssetsFix.csv [Re: DdlV] #469441
11/16/17 07:48
11/16/17 07:48
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Well, the obvious procedure is looking at what's different in the performance reports.

Your downloaded AssetsFix appears at first glance even a bit better than the included FXCM version. But maybe one of the assets got much worse trading cost - just check the report.

30% AR per se is not bad. It's perfectly normal when you trade with less leverage, as with IB. But you should definitely look for the reason.

Re: Training Z strategy with different AssetsFix.csv [Re: jcl] #469450
11/16/17 18:33
11/16/17 18:33
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, 30% AR is not bad. laugh But I think it's important to understand what's going on and why simply changing the Assets parameters seemingly for the better gives a worse backtest...

Comparing the base Transaction costs -1007$ spr, -507$ slp, -655$ rol

to my AssetsFix.csv's Transaction costs -1569$ spr, -935$ slp, -2028$ rol

shows Spread ~50% worse, Slippage almost doubled, & Roll more than tripled. I don't see that the differences in Assets parameters directly accounts for this...

The base Portfolio analysis

Code:
Portfolio analysis  OptF  ProF  Win/Loss  Wgt%  Cycles

NAS100 avg          .068  2.32   22/19    37.9  \///////
SPX500 avg          .000  0.60    7/11   -13.8  ///....
US30 avg            .056  2.23   22/16    37.2  //////./
XAG/USD avg         .020  1.74   17/17    51.1  ////X/X..
XAU/USD avg         .000  0.61   12/24   -12.5  .X/X..//



becomes

Code:
Portfolio analysis  OptF  ProF  Win/Loss  Wgt%  Cycles

NAS100 avg          .149  4.32   16/10    73.7  ///.//////
SPX500 avg          .025  1.28   10/14    11.5  ///../..
US30 avg            .105  2.22   22/15    41.8  //////./
XAG/USD avg         .004  1.10   18/24    15.5  /X/XXX..
XAU/USD avg         .000  0.67    9/23   -42.6  .XX/..//



and again I don't see a direct cause.

There is an indirect cause in that my AssetsFix.csv causes larger trades, which causes different trades to be taken. Could the optimization for one trading pattern not work for another? Since I cannot, could you Train Z3 using my AssetsFix.csv and see what results?

Thanks.

Re: Training Z strategy with different AssetsFix.csv [Re: DdlV] #469460
11/17/17 07:43
11/17/17 07:43
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
The difference between the 2 OptF columns was the one that really disoriented me. There is a huge difference...

Re: Training Z strategy with different AssetsFix.csv [Re: MatPed] #469465
11/17/17 09:32
11/17/17 09:32
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
You can see the reason: The losing XAU now reduces the end result by 40%, compared to originally 12%. The higher weight of XAU is due to its leverage 200 in your account, compared with 100 in the original account parameters.

Higher leverage is good for winning, but bad for losing components.

Re: Training Z strategy with different AssetsFix.csv [Re: jcl] #469469
11/17/17 10:05
11/17/17 10:05
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 both!

@MatPed: There's so much about this I don't fully understand yet... I hadn't even really gotten to the OptF's on the belief that they're driven by the backtest results...

@jcl:
a) Isn't it more complicated than that? I.e., the trades taken aren't exactly the same, so while more leverage is involved that doesn't a priori mean bad (-12.5) must become worse (-42.6). F.i., SPX500 changed from losing (-13.8) to winning (11.5). Wouldn't optimizing using the different AssetsFix.csv therefore produce different results than using the leverage 100 values on a leverage 200 account?

b) Finally getting to OptF's laugh , would the 0 OptF for XAU prevent it being Traded and therefore Trade would give better results than the Tested 30% AR (which includes the XAU loss)?

Thanks.

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