Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 889 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro - Train #461563
08/11/16 10:02
08/11/16 10:02
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

I have question about the optimization with Zorro.

this is a first parameter:
...
Quote:

Loop [1][1] p1 step 1: 60.00 => 4.43 30/ 5
Loop [1][1] p1 step 2: 62.00 => 4.43 30/ 5
Loop [1][1] p1 step 3: 64.00 => 4.43 30/ 5
Loop [1][1] p1 step 4: 66.00 => 4.43 30/ 5
Loop [1][1] p1 step 5: 68.00 => 4.43 30/ 5
Loop [1][1] p1 step 6: 70.00 => 4.30 29/ 5
Loop [1][1] p1 step 7: 72.00 => 3.87 26/ 5
Loop [1][1] p1 step 8: 74.00 => 3.87 26/ 5


after continue train - parameter 4
Quote:

Loop [1][1] p4 step 13: 313.84 => 0.73 23/15
Loop [1][1] p4 step 14: 345.23 => 0.22 12/23
Loop [1][1] p4 step 15: 379.75 => 0.32 12/19
Loop [1][1] p4 step 16: 417.72 => 1.08 25/21
Loop [1][1] p4 step 17: 459.50 => 0.62 25/33
Loop [1][1] p4 step 18: 500.00 => 0.67 20/21
Selected p4[12] = 286 => 1.07


After testing p4 is a worse output like p1

I'm not understand, howto train Zorro parameters.
Each with Each
or One by One?

Thanks

Re: Zorro - Train [Re: Grat] #461585
08/12/16 12:22
08/12/16 12:22
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Zorro does not select the best parameter. It selects the parameter value with the lowest gradient. So it can indeed happen that p4 causes a worse result than p1.

Re: Zorro - Train [Re: jcl] #461602
08/13/16 09:35
08/13/16 09:35
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

i playing with the Workshop5_3.

After default train i have this:

Quote:


EUR/USD: 29.5 0.696 5.74=> 1.447

Parameters stored in Workshop5_3_1_EURUSD.par

Run Workshop5_3_1..
Walk-Forward Test: Workshop5_3_1 EUR/USD 2005..2015
Read Workshop5_3_1_EURUSD_1.par Workshop5_3_1_EURUSD_2.par Workshop5_3_1_EURUSD_3.par Workshop5_3_1_EURUSD_4.par Workshop5_3_1_EURUSD_5.par Workshop5_3_1_EURUSD_6.par Workshop5_3_1_EURUSD_7.par Workshop5_3_1_EURUSD_8.par Workshop5_3_1_EURUSD_9.par
Monte Carlo Analysis... Median AR 62%
Profit 943$ MI 12$ DD 330$ Capital 274$
Trades 210 Win 62.9% Avg +51.5p Bars 62
AR 53% PF 1.53 SR 0.83 UI 10% R2 0.59


but after the move Stop from the row 25 to row 18 ( now is a first optimizing parameter) i get the worse output.

Quote:


EUR/USD: 2.42 29.4 0.906=> 1.642

Parameters stored in Workshop5_3_1_EURUSD.par

Run Workshop5_3_1..
Walk-Forward Test: Workshop5_3_1 EUR/USD 2005..2015
Read Workshop5_3_1_EURUSD_1.par Workshop5_3_1_EURUSD_2.par Workshop5_3_1_EURUSD_3.par Workshop5_3_1_EURUSD_4.par Workshop5_3_1_EURUSD_5.par Workshop5_3_1_EURUSD_6.par Workshop5_3_1_EURUSD_7.par Workshop5_3_1_EURUSD_8.par Workshop5_3_1_EURUSD_9.par
Monte Carlo Analysis... Median AR 66%
Profit 754$ MI 10$ DD 293$ Capital 259$
Trades 209 Win 64.1% Avg +41.4p Bars 66
AR 45% PF 1.42 SR 0.60 UI 17% R2 0.47


I thinking, for the one from new version create matrix optimizing parameters and trying find the better output with mix the parameters.
[P1 - P2 - P3] ... first step
[P2 - P3 - P1] ... next step

.... try all variant.
-----------------------

Next test: change row 24:
var Threshold = optimize(1.1,0.5,1.5,0.1); // from 1 to 1.1
i get the better output:

Quote:

EUR/USD: 2.42 26.9 0.904=> 1.582

Parameters stored in Workshop5_3_1_EURUSD.par

Run Workshop5_3_1..
Walk-Forward Test: Workshop5_3_1 EUR/USD 2005..2015
Read Workshop5_3_1_EURUSD_1.par Workshop5_3_1_EURUSD_2.par Workshop5_3_1_EURUSD_3.par Workshop5_3_1_EURUSD_4.par Workshop5_3_1_EURUSD_5.par Workshop5_3_1_EURUSD_6.par Workshop5_3_1_EURUSD_7.par Workshop5_3_1_EURUSD_8.par Workshop5_3_1_EURUSD_9.par
Monte Carlo Analysis... Median AR 63%
Profit 926$ MI 12$ DD 267$ Capital 241$
Trades 194 Win 58.2% Avg +54.8p Bars 66
AR 59% PF 1.58 SR 0.77 UI 13% R2 0.48


Also idea for the new version. Set in percent how big can be change for the parameters between WFO cycle.

Quote:

1. EUR/USD 8.45 26.7 1.105=> 1.893
2. EUR/USD 8.41 26.6 1.104=> 1.962
3. EUR/USD 4.75 32.5 0.902=> 1.655
4. EUR/USD 4.75 35.3 1.001=> 1.750
5. EUR/USD 5.21 35.4 1.000=> 2.436
6. EUR/USD 4.74 35.3 0.902=> 2.531
7. EUR/USD 4.31 26.7 1.099=> 1.752
8. EUR/USD 4.31 26.8 1.003=> 1.733
9. EUR/USD 8.40 26.7 1.000=> 2.347
10 EUR/USD 2.42 26.9 0.904=> 1.587

In this i see
between WFO 2-3 is is big change. If i set max change can be aprox. 10%?

Zorro is best for the develop AOS. Idea with WFO is excelent, but optimizing and testing with Zorro is need ( in me opinium) improve. For my is still like black box.
P.S: Sorry for my english. I'm learn only from manuals.

Re: Zorro - Train [Re: Grat] #461603
08/13/16 10:12
08/13/16 10:12
Joined: Aug 2016
Posts: 11
C
Calli Offline
Newbie
Calli  Offline
Newbie
C

Joined: Aug 2016
Posts: 11
As I come from Mt4 I compare it with their method.

As far as I remember (that's why I don't have link) during the optimization (here training) in "Genetic-Mode" a table is created ordered acc. to the chosen value that has to be maximized.

At the beginning the parameter setup seems to be quite randomly but later most of variations from the top of that table are chosen. Once and a while a 'lucky punch' is tried from the middle of that table. In general even if the amount of possible setups is very, very high (~trillion) after 10'000 to 15'000 passes (seems to be the stop criterion) you get a quite useful result.

There is only one problem. The 'ini-part' can return a "INIT_PARAMETERS_INCORRECT" but this is taken by their Genetic algorithm as a valid pass (with result 0) in influences therefore the stop criterion which is of course influenced by the amount of passes done.
Without this little problem it seems to be a very simple and conducive solution.

This is quite helpful if you develop you system as you can start with a lot of parameters to optimize to find out which of them matters and which can be set as constants.

Calli

Last edited by Calli; 08/13/16 10:19.

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