pseudo date

#1
Wanted to check if u could help with AFL ....trying to add pseudo date in each row say 1/1/1900 next 2/1/1900 .....to intra data of 5, 15 and 60 mins.
Have made an AFL but it gives date as 1/1/1900 in all the rows.
// ------------------------------------------------------------------------------
// AFL for AA window, exports to CSV file for each ticker.
//-------------------------------------------------------------------------
One file for each stock

fh = fopen( "c:\\DataExport15\\" +FULLNAME()+".csv", "a");
if( fh )
{
fputs( "Date,Open,High,Low,Close,Volume \n", fh );
y = 1900;
m = 1;
d = 1;

for( i = 0; i < BarCount; i++ )
{
//fputs( FULLNAME() + "," , fh );
ds = StrFormat("%02.0f-%02.0f-%02.0f,",
y[ i ], m[ i ], d[ i ] );
fputs( ds, fh );

qs = StrFormat("%.4f,%.4f,%.4f,%.4f,%.0f\n",
O[ i ],H[ i ],L[ i ],C[ i ],V[ i ] );
fputs( qs, fh );
}

fclose( fh );
}

Buy = 0;


Look forward to your kind help.
 

Similar threads