Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/23/26 20:38
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (EW_bytes, Martin_HH, TipmyPip), 15,484 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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 | 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