Gamestudio Links
Zorro Links
Newest Posts
LMT short + MaxShort + LifeTime; is this working as expected
by luisd
39 minutes 13 seconds ago
Inline functions in Lite-C
by Zheka
Today at 21:26
Crack loop
by Tuguldur717
Today at 18:27
Experienced 2D|3D Character artist|Concept Artist@ Indie Prices|
by DeathstalkerArs
Today at 17:04
inkey and Unicode
by Superku
Today at 13:56
Get a csv file into an array of structs, confused about lite-c
by jcl
Today at 09:41
How to count
by Tuguldur717
Today at 03:45
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
17 registered (Hredot, Iglarion, AndrewAMD, Kartoffel, luisd, alibaba, easyX, elninio, DriftWood, jzastrow), 497 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
DASFX, veepsirtt, trulala, elninio, Thwessen23
17891 Registered Users
Topic Options
Rate This Topic
#465243 - 04/13/17 22:43 reproducing the trend test from "financial hacker"
DeusExMachina Offline

Registered: 04/03/17
Posts: 5

I downloaded the Script2015 package and try to reproduce the tests done by jcl. But when I use the bootstrap script after running the batch file for training, the resulting graphics is this:

It does not at all look like the histogram in the blog:

Zorro output is
Best of 1260 systems
TrendHMA_EURUSD_H4_1_1: 1.28
Bootstrap - please wait..
Sample median: 1.27
P-Value of best strategy: 0.43

can anyone explain that and show me where I went wrong?

Edited by DeusExMachina (04/13/17 22:45)

#465259 - 04/14/17 18:39 Re: reproducing the trend test from "financial hacker" [Re: DeusExMachina]
firecrest Offline
Junior Member

Registered: 12/06/16
Posts: 50
I am wondering if you can change this line item and check out the result.

#define BUCKET 0.0005

#465282 - 04/15/17 09:12 Re: reproducing the trend test from "financial hacker" [Re: firecrest]
DeusExMachina Offline

Registered: 04/03/17
Posts: 5
Hi firecrest. I tried that
#define CURVES	1260
#define SAMPLES	1000
#define BUCKET	0.0005

But the result looks the same as above. Seems like BUCKET is not really used in the Histogram, but Bucket instead:

void _plotHistogram(string Name,var Value,var Step,int Color)
  var Bucket = floor(Value/Step);

To be honest, I really have difficulties understanding the bootstrap script.

#465283 - 04/15/17 11:55 Re: reproducing the trend test from "financial hacker" [Re: DeusExMachina]
DeusExMachina Offline

Registered: 04/03/17
Posts: 5
I started again from the beginning to do everything step by step in Trend Indicators .
If I wanna generate

and just copy paste the source code provided by jcl and run it, the resulting graphics is:

Again, I did not code anything, just ran the provided script in zorro 1.54.
This should exactly reproduce the same result. Any ideas?

Edited by DeusExMachina (04/15/17 11:56)

#465393 - 04/24/17 13:56 Re: reproducing the trend test from "financial hacker" [Re: DeusExMachina]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26218
Loc: Frankfurt
Too small histogram: Check if only one of the 10 indicators or only one of the assets was selected. Using data from all indicators and all assets should produce a broad histogram as in the article.

Too small chart: Increase MaxBars.


Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at)