Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
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
2 registered members (Ayumi, AndrewAMD), 770 guests, and 4 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
Data1,Data2 to compare #471523
03/07/18 12:59
03/07/18 12:59
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Hi all,

is it possible to compare more data (data1, data2, etc) for the same instrument?
Is it possible to have the link on manual or the example code?

thanks

Re: Data1,Data2 to compare [Re: tradingest] #471524
03/07/18 13:33
03/07/18 13:33
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
To search the manual:

* Open Zorro.
* Click "Help"
* On the left, click the search tab

I'm not sure what you mean by comparing data from the same asset.

Re: Data1,Data2 to compare [Re: AndrewAMD] #471536
03/07/18 22:38
03/07/18 22:38
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
To compare data1 at 60min with the same data at 240min.

Is it possible to have a link to explain this?

Re: Data1,Data2 to compare [Re: tradingest] #471537
03/07/18 22:55
03/07/18 22:55
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Ciao,
many ways to obtain the same goal. The easiest, but not necessarily the correct one, right from the manual...

BarPeriod end TimeFrame are your friends

Ciao

Code:
#define H24 (1440/BarPeriod)
#define H4 (240/BarPeriod)
#define H1 (60/BarPeriod)
... 
BarPeriod = 60; // 1 hour (60 minutes) bars
...
// create a 4-hour price series ///////////////////////////////////
TimeFrame = H4;
vars PriceH4 = series(price());
 

// create a 24-hour price series /////////////////////////////////
TimeFrame = H24;
vars PriceH24 = series(price());


Re: Data1,Data2 to compare [Re: MatPed] #471538
03/07/18 23:02
03/07/18 23:02
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Indeed. This is covered in the Zorro Workshop, which I recommend.

Workshop, part 6: http://zorro-project.com/manual/en/tutorial_kelly.htm
BarPeriod: http://zorro-trader.com/manual/en/barperiod.htm

Now start reading that manual! laugh


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