//File: UTIL - Export
data
//Version
1.0
//December 15, 2005
Path = "D:\\Data\\Amibroker\\AB Data\\" +
Name() + ".csv";
fh = fopen(Path,"w");
if( fh )
{
fputs( "Date,Time,Open,High,Low,Close,Volume\n",
fh );
for( i = 0; i < LastValue(BarIndex()); i++ )
{
Date_ = DateNum();
Time_ = TimeNum();
qs = StrFormat("%.0f,%.0f,%.4f, %.4f, %.4f, %.4f,
%.0f\n",
Date_[i],Time_[i],O[ i ], H[ i ], L[ i ], C[ i ], V[ i ] );
fputs( qs, fh );
}
fclose( fh );
}