Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 722 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
Simulation does not run till the last bar #471981
03/30/18 23:45
03/30/18 23:45
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
Hi,

I am trying to test a strategy on "AAPL", and "BFB". For BFB I got data till 20180308, for AAPL till 20180330. As per the manual "The first asset in a script is used to create the array of bars".
When I run both assets together the simulation stops on 20180308, even though I've called "AAPL" first.

I've used following parameters:

LookBack = 0;
BarPeriod = 1440;
StartDate = 20180101;
EndDate = 20180330;

while(asset(loop("AAPL","BFB")))
{
printf("nBar %i of %i",Bar,NumBars);
}


The total number of bars (NumBars) is according to AAPL's history (57 bars) but then the simulation stops at the end of BFB's history (44 bars).
That's the last output I got:
Bar 44 of 57


Could anyone shed some light on this and on how to run the simulation till the end of AAPL's history?

Thanks.

Re: Simulation does not run till the last bar [Re: Ger1] #472168
04/12/18 22:28
04/12/18 22:28
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
Anyone got an idea on how to run the simulation until EndDate?

The only way I found so far is checking every single asset history file if it got data till the EndDate and then deleting it, which is a bothersome process if you want to test a few hundred stocks together.


Moderated by  Petra 

Gamestudio download | chip programmers | 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