Posted By: aaaaaaaaaaaa
problem with newly created bar file - 06/12/17 07:17
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?
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?