Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,549 guests, and 14 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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