Gamestudio Links
Zorro Links
Newest Posts
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (EternallyCurious, Quad, vicknick), 700 guests, and 7 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
Trend test producing different result for same asset #465422
04/26/17 13:31
04/26/17 13:31
Joined: Feb 2017
Posts: 369
D
Dalla Offline OP
Senior Member
Dalla  Offline OP
Senior Member
D

Joined: Feb 2017
Posts: 369
Hi,

I'm currently running some tests with the trend tests scripts from financial hacker.
One thing that bothers me is that I'm getting slightly different results for the same asset, only by removing other assets from the test.

What I mean is that all I changed is
while(asset(loop("EUR/USD","SPX500","XAG/USD")))
to
while(asset(loop("SPX500")))

This difference is small, but it is there, which makes me wonder if there is something about the script that I do not understand. I would expect the results to be exactly the same here.

See attached images for an example

Attached Files Screen Shot 2017-04-26 at 15.28.26.pngScreen Shot 2017-04-26 at 15.28.58.png
Last edited by Dalla; 04/26/17 13:31.
Re: Trend test producing different result for same asset [Re: Dalla] #465423
04/26/17 15:12
04/26/17 15:12
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
http://manual.zorro-project.com/asset.htm

There's a reason why the loop starts with EUR/USD.

Re: Trend test producing different result for same asset [Re: jcl] #465425
04/26/17 16:36
04/26/17 16:36
Joined: Feb 2017
Posts: 369
D
Dalla Offline OP
Senior Member
Dalla  Offline OP
Senior Member
D

Joined: Feb 2017
Posts: 369
"The order of asset() calls does matter....... Therefore set first the asset with the most complete price history (for instance, a currency pair that is traded 24 hours)."

Ok, got it. Thanks!


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