Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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