Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (RealSerious3D, AndrewAMD, chsmac85, dr_panther, TedMar), 942 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Different Bar Periods within same script? #432993
11/20/13 21:26
11/20/13 21:26
Joined: Apr 2013
Posts: 107
UK
G
Geek Offline OP
Member
Geek  Offline OP
Member
G

Joined: Apr 2013
Posts: 107
UK
Is it possible for Zorro to run 2 different Bar Periods within the same script?

For instance the script will be trading with Period = 240:

But I also want Zorro to check weekly Bar Period = 7200; conditions before entering a trade.

Thanks..

Re: Different Bar Periods within same script? [Re: Geek] #432997
11/20/13 21:49
11/20/13 21:49
Joined: Jul 2013
Posts: 522
D
dusktrader Offline
User
dusktrader  Offline
User
D

Joined: Jul 2013
Posts: 522
Yes it is possible, although I haven't done it myself yet. It explains more on the manual page here

I believe BarPeriod needs to be set to the smaller unit, and then TimeFrame to the larger unit. So in your example I think you would have BarPeriod=240 and then TimeFrame=30 (30x the BarPeriod).

Re: Different Bar Periods within same script? [Re: dusktrader] #432998
11/20/13 21:59
11/20/13 21:59
Joined: Apr 2013
Posts: 107
UK
G
Geek Offline OP
Member
Geek  Offline OP
Member
G

Joined: Apr 2013
Posts: 107
UK
Great stuff, thanks laugh

Re: Different Bar Periods within same script? [Re: Geek] #433008
11/21/13 08:24
11/21/13 08:24
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
One remark - due to irregular holidays, a week has no fixed number of bars. Therefore you must synchronize the time frame with the start of the week. In the manual there's an example for synchronizing it to a day.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1