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 (Quad, degenerate_762), 642 guests, and 4 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
about series #477150
05/24/19 13:39
05/24/19 13:39
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

Anybody know, where is mistake?
Code:
function run(){
	vars n;
	int i;
	if (is(INITRUN)){
	for (i=10;i<16;i++)
		n=series(i);
	
	for (i=0;i<5;i++)
		printf("n%f .. %d",n[i],i);
  
	}
	
}

and output is:


test compiling................
15.000000 .. 0
15.000000 .. 1
15.000000 .. 2
15.000000 .. 3
15.000000 .. 4
Test: test EUR/USD 2014..2019



I would expect in the variable "n" value from 10 to 15

Thanks Milan

Re: about series [Re: Grat] #477151
05/24/19 13:49
05/24/19 13:49
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
with the dynamic series working:
Code:
function run(){
	//readActual();
	//loadVol();
	//TestActual();
	vars n=series(0,-5);
	int i;
	if (is(INITRUN)){
	for (i=10;i<16;i++)
		shift(n,i,5);
	
	for (i=0;i<5;i++)
		printf("n%f .. %d",n[i],i);
  
	}
}

output is:


test compiling................
15.000000 .. 0
14.000000 .. 1
13.000000 .. 2
12.000000 .. 3
11.000000 .. 4
Test: test EUR/USD 2014..2019



Question is: is a possible init series before start trading int the INITRUN?

Thanks

Re: about series [Re: Grat] #477155
05/25/19 06:08
05/25/19 06:08
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
No because the manual says that series are created after the first run. I think in the initrun they have some dummy pointer.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1