data export afl
DESCRIPTION
amibrokerTRANSCRIPT
// Set the Starting and End Dates// Make sure these dates are not holidays.
StartDate = ParamDate("Starting Date", "31-12-2007");EndDate = ParamDate("Start Date", "31-12-2008");
//Find the corresponding Bar Numbers
StartBar = Max(0, LastValue(ValueWhen(DateNum() == StartDate, BarIndex(),1)));EndBar = Min(BarCount - 1, LastValue(ValueWhen(DateNum() == EndDate, BarIndex(),1)));
Filter = 1; // This allows all required data to be included
// Before running the AFL Make sure that C:\SaveData directory exists
fh = fopen( "c:\\SaveData\\"+Name()+".csv", "w"); if( fh ) { fputs( "Ticker,Date,Open,High,Low,Close,Volume \n", fh ); y = Year(); m = Month(); d = Day(); //r = Hour();//e = Minute();//n = Second();
for( i = StartBar; i click auto analyser >select all symbols & all quotations (may be it done by default...is not then you do this ) >click explore..............>click file-export....name a file and save...