Data1,Data2 to compare

Posted By: tradingest

Data1,Data2 to compare - 03/07/18 12:59

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
Posted By: AndrewAMD

Re: Data1,Data2 to compare - 03/07/18 13:33

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.
Posted By: tradingest

Re: Data1,Data2 to compare - 03/07/18 22:38

To compare data1 at 60min with the same data at 240min.

Is it possible to have a link to explain this?
Posted By: MatPed

Re: Data1,Data2 to compare - 03/07/18 22:55

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());

Posted By: AndrewAMD

Re: Data1,Data2 to compare - 03/07/18 23:02

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
© 2024 lite-C Forums