Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (PeroPero, 1 invisible), 854 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Way to get series of different bar periods in one script? #465493
04/30/17 19:51
04/30/17 19:51
Joined: Aug 2016
Posts: 27
M
MaskOfZorro Offline OP
Newbie
MaskOfZorro  Offline OP
Newbie
M

Joined: Aug 2016
Posts: 27
Say I wanted to calculate Bollinger bands on bars of different periods, e.g. 10 seconds, 1 minute, 5 minute, in the same script and have a trade condition using all of these, e.g. a tick above all three upper bands for a short entry point - is there a way to do this?

I've tried multiple run() functions of different bar periods to populate static variables but only the last run() function in the script appears to do anything, so I guess this isn't a way.

Thanks.

Re: Way to get series of different bar periods in one script? [Re: MaskOfZorro] #465503
05/01/17 10:14
05/01/17 10:14
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
BarPeriod can only be set once, different periods can be handled with TimeFrame.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1