PureBytes Links
Trading Reference Links
|
I can only suggest you add in an extra column and have it add the
letter you want
You could always write an exploration and export the results from AA window
I have assumed this is what you are loking for
Here is sample of altered code to add in a D or X for daily or other
x = "C:\\IDData"+ WriteVal(Now(3),1);
fmkdir( x );
Buy=V>0;
if( Interval()==inDaily ) {dt = "D";}
else{ dt = "X" ;}
fh = fopen( x + "\\" +Name()+".txt", "w");
if( fh )
{
fputs( "Ticker,Timeframe,Date,Time,Open,High,Low,Close,Volume \n", fh );
y = Year();
m = Month();
d = Day();
r = Hour();
e = Minute();
n = Second();
for( i = 0; i < BarCount; i++ )
{
if( Buy[i] )
{
fputs( Name() + "," , fh );
ds = StrFormat("%02.0f-%02.0f-%02.0f,",
y[ i ], m[ i ], d[ i ] );
fputs( ds, fh );
fputs( dt + "," , fh );
ts = StrFormat("%02.0f:%02.0f:%02.0f,",
r[ i ],e[ i ],n[ i ] );
fputs( ts, fh );
qs = StrFormat("%.4f,%.4f,%.4f,%.4f,%.0f\n",
O[ i ],H[ i ],L[ i ],C[ i ],V[ i ] );
fputs( qs, fh );
}
}
fclose( fh );
}
On 4/21/05, Rakesh Sahgal <rakeshsahgal@xxxxxxxxx> wrote:
>
> Hi Graham
>
> I want to use the code you shared with the group to
> export data to MS Format for use in MS.
>
> To be able to convert the data I need to indicate the
> periodicity of the data in each line of data in the
> file. The periodicity will be indicated by the letter
> "D" indicating daily data inserted between the ticker
> and date fields. Can you please guide me through this?
>
> TIA
>
> Regards
>
> Rakesh
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|