Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, monk12, Quad), 829 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
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,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
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