Export Data from Amibroker to ASCII files
Here there is a formula available to export data from Amibroker to ASCII files. With the formula we can export data for a specified period from Amibroker database.
How to export:
Download,unzip and copy this afl formula file to Amibroker\Formulas\Custom folder.
Scan with the formula in Automatic Analyser (AA) in Amibroker.
The formula will create a folder in C drive named 'OHLC' and will collecte the data in separate text files for each symbol.
Periodicity:
WE can export the data for different periodicity 1min, 5min, 10min or daily etc. as we required. To configure that go to AA > settings > General > Periodicity and set periodicity. Thus we can get data for 5min, 10min, 1 Hour, daily etc.
Select Date Range:
To set the date range, we have to edit the formula.
Open AA > pick (the formula file) > edit.
In the second line we can see:
Buy = ( (DateNum() >= 1061225) AND (DateNum() <= 1070110) );
First DateNum is the start date and second DateNum is end date.
The current settings will export data from 20061225 to 20070110.
Just like that, we can select another date range. Instead of 2006, should give 106 and for 2007, give 107 etc. Month and date are same. Save the formula and scan it.
It will export and save the data in C:\OHLC folder.
If you want to export for an another date range, that will also be added to the corresponding files just after the current data.
Hello Traders,
I request you to use this formula and let me know the feedback.
Thanking you,
Regards,
Pramod.
[email protected]
Here there is a formula available to export data from Amibroker to ASCII files. With the formula we can export data for a specified period from Amibroker database.
How to export:
Download,unzip and copy this afl formula file to Amibroker\Formulas\Custom folder.
Scan with the formula in Automatic Analyser (AA) in Amibroker.
The formula will create a folder in C drive named 'OHLC' and will collecte the data in separate text files for each symbol.
Periodicity:
WE can export the data for different periodicity 1min, 5min, 10min or daily etc. as we required. To configure that go to AA > settings > General > Periodicity and set periodicity. Thus we can get data for 5min, 10min, 1 Hour, daily etc.
Select Date Range:
To set the date range, we have to edit the formula.
Open AA > pick (the formula file) > edit.
In the second line we can see:
Buy = ( (DateNum() >= 1061225) AND (DateNum() <= 1070110) );
First DateNum is the start date and second DateNum is end date.
The current settings will export data from 20061225 to 20070110.
Just like that, we can select another date range. Instead of 2006, should give 106 and for 2007, give 107 etc. Month and date are same. Save the formula and scan it.
It will export and save the data in C:\OHLC folder.
If you want to export for an another date range, that will also be added to the corresponding files just after the current data.
Hello Traders,
I request you to use this formula and let me know the feedback.
Thanking you,
Regards,
Pramod.
[email protected]