![]() |
|
| Discuss Export Data from Amibroker to ASCII files at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Export Data from Amibroker to ASCII files Here there is a formula available to export ... |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#1
|
|||
|
|||
|
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. pramodvarmag@*****.com |
| The Following User Says Thank You to pramodvarmag For This Useful Post: | ||
scs_r (11th October 2008) | ||
|
#2
|
|||
|
|||
|
thanx 4 sharing it....it is working fine...
is it possible to export all shares in a single file? regards, soumya |
|
#3
|
|||
|
|||
|
Saumya,
It may be possible. I have not tried. If I get any solution I will tell here Regards, Pramod |
|
#4
|
|||
|
|||
|
Dear Soumya
Hello, Yes it is possible Just change 2 things 1. In the file open instead of Name(), use the file whatever u want ie 31012007.txt 2. Use a instead of w It will read like this fh = fopen( "C:\\IntradayData\\31012007.txt", "a"); it may need that file is opened before the loops and header line also added before the loop starts I will send ou complete file in a day or 2 Rajeev Thanks Last edited by rkgoyal_98; 1st February 2007 at 12:12 AM. |
|
#5
|
|||
|
|||
|
Dear Soumya and Pramod
Hello I have modified the formulla to put all the scrips in one file, however i had to remove the header line as it was being added in the middle of file with each ticker. I could not tackel how to put header line only once in the file as file is closed with each ticker and opened in append mode again. Strangel it has made the AFL i bit faster too Just try Thanks Last edited by rkgoyal_98; 20th January 2008 at 02:59 PM. |
|
#6
|
|||
|
|||
|
Dear Rajeev and Soumya,
the new formula from Rajeev is working well. But Irrespective of the existance of data in the given date range, the formula creates the output file. So, If the given range is empty, an empty file will be created. This can be avoided by placing file opening command under the 'if' condition. Enclosed the modified afl here. try this. If we want to oexport data for a single day, we modify the second line like this Buy = ( (DateNum() == 1070131); Regards, Pramod. |
| The Following User Says Thank You to pramodvarmag For This Useful Post: | ||
scs_r (11th October 2008) | ||
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
excellent work, pramod ......many many thanks
p.suhas trader & investor Last edited by P.SUHAS T&I; 17th August 2007 at 10:55 PM. |
|
#9
|
|||
|
|||
|
Quote:
Is it possible to import data in amibroker using AFL ? Harish Chheda |
|
#10
|
|||
|
|||
|
Hi Harish,
No need of any formula to import data to Amibroker. There is built-in tool in file menu to import ASCII files to Amibroker. |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads for: Export Data from Amibroker to ASCII files
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TradeStation 8.1 : ASCII 3rd Party Data | trader68 | Intraday | 7 | 22nd March 2007 01:06 AM |
| BSE NSE Groups in data files | rrdesai_goa | Data Feeds | 1 | 14th March 2007 01:13 PM |
| Export Intraday Data.afl | rkgoyal_98 | AmiBroker | 1 | 2nd January 2007 11:08 PM |
| Export to Individual files | swagat86 | AmiBroker | 1 | 16th November 2006 05:26 PM |
| Some advice to add records in ASCII Data files. | a_n_i_l | Software | 0 | 15th September 2006 11:30 AM |
Indemnity, Disclaimer & Disclosure
Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum
Rules Disclaimer & Disclosure and indemnify Traderji.com, its
associates and related parties of all claims howsoever resulting from
the usage of the forum.
• Disclaimer: Trading or investing in stocks & commodities
is a high risk activity. Any action you choose to take in the markets
is totally your own responsibility. Traderji.com will not be liable for
any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
• Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein.
The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.