Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (Martin_HH, TipmyPip, AndrewAMD, Grant), 5,825 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Understanding MaxBars #451660
05/15/15 15:06
05/15/15 15:06
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Hi jcl. Why does this code:

Code:
function run() {
	MaxBars	= 10;
}



give "Error 048: Not enough bars!"? Without MaxBars, it runs.

Thanks.

Re: Understanding MaxBars [Re: DdlV] #451661
05/15/15 15:14
05/15/15 15:14
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline
User
GPEngine  Offline
User
G

Joined: Sep 2013
Posts: 504
California
default LookBack = 80

Re: Understanding MaxBars [Re: GPEngine] #451665
05/15/15 16:28
05/15/15 16:28
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks GPEngine. So you're saying MaxBars includes the LookBack, which appears to be true - changing to MaxBars=90 gives a run to Bar 89.

Maybe someday it'll get through - "the simulation" includes the LookBack.

However, this seems cumbersome to me. Since MaxBars must be >= LookBack, there's no way to end "the simulation" during LookBack. It also means to end n bars into trading, one must code MaxBars=LookBack+n.

Anyway, thanks.

Re: Understanding MaxBars [Re: DdlV] #451675
05/16/15 02:48
05/16/15 02:48
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline
User
GPEngine  Offline
User
G

Joined: Sep 2013
Posts: 504
California
Yes, I said alot in 4 words. laugh


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1