Thanks bro . i dont know how to extract IEOD from amibroker ( if you know pls share) . This data i extracted directly from nest using RTD But i dont know why data available from 28 july .
Here is the code:
fmkdir( "C:\\SaveData" );
Buy = Status( "barinrange" );
//if we want to export data for a single Day, we modify the Second line like this
//Buy = ( (DateNum() == 1070129));
for( i = 0; i < BarCount; i++ )
if( Buy )
{
fh = fopen( "C:\\SaveData\\EOD.csv", "a");//if we want to export all data in a single file//
// fh = fopen( "C:\\SaveData\\"+Name()+".txt", "a");// if we want to export data in an individual file//
if( fh )
{
y = Year();
m = Month();
d = Day();
// r = Hour();
// e = Minute();
for( i = 0; i < BarCount; i++ )
if( Buy )
{
fputs( Name() + "," , fh );
ds = StrFormat("%02.0f/%02.0f/%02.0f%02,",
y[ i ], m[ i ], d[ i ] );
fputs( ds, fh );
// ts = StrFormat("%02.0f:%02.0f,",
// r[ i ],e[ i ]);
// fputs( ts, fh );
qs = StrFormat("%g,%g,%g,%g,%1.0f\n",
O[ i ],H[ i ],L[ i ],C[ i ],V[ i ] );
fputs( qs, fh );
}
fclose( fh );
}
}
Buy = Status( "barinrange" );
//if we want to export data for a single Day, we modify the Second line like this
//Buy = ( (DateNum() == 1070129));
for( i = 0; i < BarCount; i++ )
if( Buy )
{
fh = fopen( "C:\\SaveData\\EOD.csv", "a");//if we want to export all data in a single file//
// fh = fopen( "C:\\SaveData\\"+Name()+".txt", "a");// if we want to export data in an individual file//
if( fh )
{
y = Year();
m = Month();
d = Day();
// r = Hour();
// e = Minute();
for( i = 0; i < BarCount; i++ )
if( Buy )
{
fputs( Name() + "," , fh );
ds = StrFormat("%02.0f/%02.0f/%02.0f%02,",
y[ i ], m[ i ], d[ i ] );
fputs( ds, fh );
// ts = StrFormat("%02.0f:%02.0f,",
// r[ i ],e[ i ]);
// fputs( ts, fh );
qs = StrFormat("%g,%g,%g,%g,%1.0f\n",
O[ i ],H[ i ],L[ i ],C[ i ],V[ i ] );
fputs( qs, fh );
}
fclose( fh );
}
}
Just use this AFL through the New Analysis & Scan the Tickers the data for which you have to export. Also choose the From Dates to End Date , the time period for which you want to get data. Through settings choose the Time Frame like 1 min., 5 min. etc , in which you want the data.