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
2 registered members (AndrewAMD, TedMar), 1,007 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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