Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, Edgar_Herrera), 804 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
problem with newly created bar file #466363
06/12/17 07:17
06/12/17 07:17
Joined: Jun 2017
Posts: 3
A
aaaaaaaaaaaa Offline OP
Guest
aaaaaaaaaaaa  Offline OP
Guest
A

Joined: Jun 2017
Posts: 3
I'm trying to import from "SieraCharts" 1minute bars (DAX-future) into Zorro,
for that I adapted Convert.c and created DAX_2017_06_1m.bar which worked well;

at least it seems so because ZHistoryEditor has no problem to show this file
then I inserted the file in AssetsCur.csv and tried to run this little script:

function run()
{
set(LOGFILE);

BarPeriod = 1;

StartDate = 20170511;
MaxBars = 12000;

vars Open = series( priceOpen( ) );
//vars EMA_30 = series( EMA( Open, 30 ) );
//vars EMA_300 = series( EMA( Open, 300 ) );

printf( "nBar %i of %i", Bar, NumBars );

//TakeProfit = 10;

/*if ( crossOver( EMA_30, EMA_300 ) )
enterLong( );
if ( crossUnder( EMA_30, EMA_300) )
enterShort( );*/
}

I get these error codes:

Bar 0 of 0
V 1.580 on Mon 17-06-12 16:27:54
Error 055: DAX_2017_06_1m 2017 price history missing
Error 055: no DAX_2017_06_1m 2017..2017 prices
Error 055: No DAX_2017_06_1m prices

any ideas?

Re: problem with newly created bar file [Re: aaaaaaaaaaaa] #466364
06/12/17 07:27
06/12/17 07:27
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
By default, Zorro uses AssetsFix, not AssetsCur.
So either insert your asset in AssetsFix, or in your script load AssetsCur using the
assetList function

Re: problem with newly created bar file [Re: Dalla] #466369
06/12/17 08:04
06/12/17 08:04
Joined: Jun 2017
Posts: 3
A
aaaaaaaaaaaa Offline OP
Guest
aaaaaaaaaaaa  Offline OP
Guest
A

Joined: Jun 2017
Posts: 3
did that same result

Re: problem with newly created bar file [Re: aaaaaaaaaaaa] #466370
06/12/17 08:29
06/12/17 08:29
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
Please post line from AssetsFix/AssetsCur for this asset

Re: problem with newly created bar file [Re: Dalla] #466379
06/12/17 10:10
06/12/17 10:10
Joined: Jun 2017
Posts: 3
A
aaaaaaaaaaaa Offline OP
Guest
aaaaaaaaaaaa  Offline OP
Guest
A

Joined: Jun 2017
Posts: 3
this the line from AssetsFix.cvs:

DAX_2017_06_1m,10884,1,-0.1,0,1,0.1,6,0,0.1,0,

Re: problem with newly created bar file [Re: aaaaaaaaaaaa] #466380
06/12/17 10:45
06/12/17 10:45
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
Some things that come to mind:
The asset is named DAX_2017_06_1m, and you mentioned DAX_2017_06_1m.bar
That looks wierd, although I'm not familiar with the .bar format.
Why did you put year (and month?) in the asset name?

Atleast my 1 minute data is in .t6 format, and files are divided per year only.
So for EUR/USD, files are named EUR/USD_2016.t6, EUR/USD_2017.t6 etc.

Perhaps nothing is wrong with using the .bar, but I would at least try changing the asset name to something like just DAX, and the file to DAX_2017.bar

Last edited by Dalla; 06/12/17 10:46. Reason: typo
Re: problem with newly created bar file [Re: Dalla] #466384
06/12/17 13:58
06/12/17 13:58
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Yes, by default Zorro expects a file name like "DAX_2017.t6" for 2017 historical data. You can use exotic file names, but must then declare that in the script.

You can find a description of the format in the manual under "Export".


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1