Traderji.com - Discussion forum for Stocks Commodities & Forex

Export Data from Amibroker to ASCII files

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 ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > AmiBroker

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #1  
Old 31st January 2007, 09:37 AM
Member
 
Join Date: Sep 2006
Location: Palakkad, Kerala
Posts: 53
Thanks: 0
Thanked 3 Times in 3 Posts
pramodvarmag is on a distinguished road
Reputation: 23
Default Export Data from Amibroker to ASCII files

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
Attached Files
File Type: zip Export data from Amibroker.zip (1.4 KB, 184 views)
Reply With Quote
The Following User Says Thank You to pramodvarmag For This Useful Post:
scs_r (11th October 2008)
  #2  
Old 31st January 2007, 07:16 PM
Member
 
Join Date: Dec 2005
Location: Kolkata
Posts: 709
Thanks: 1
Thanked 15 Times in 7 Posts
soumya_b will become famous soon enough
Reputation: 68
Default Re: Export Data from Amibroker to ASCII files

thanx 4 sharing it....it is working fine...
is it possible to export all shares in a single file?

regards,
soumya
Reply With Quote
  #3  
Old 31st January 2007, 07:24 PM
Member
 
Join Date: Sep 2006
Location: Palakkad, Kerala
Posts: 53
Thanks: 0
Thanked 3 Times in 3 Posts
pramodvarmag is on a distinguished road
Reputation: 23
Default Re: Export Data from Amibroker to ASCII files

Saumya,

It may be possible. I have not tried. If I get any solution I will tell here

Regards,

Pramod
Reply With Quote
  #4  
Old 31st January 2007, 11:12 PM
Member
 
Join Date: Jul 2006
Posts: 257
Thanks: 1
Thanked 0 Times in 0 Posts
rkgoyal_98 is on a distinguished road
Reputation: 18
Default Re: Export Data from Amibroker to ASCII files

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.
Reply With Quote
  #5  
Old 1st February 2007, 12:11 AM
Member
 
Join Date: Jul 2006
Posts: 257
Thanks: 1
Thanked 0 Times in 0 Posts
rkgoyal_98 is on a distinguished road
Reputation: 18
Default Re: Export Data from Amibroker to ASCII files

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.
Reply With Quote
  #6  
Old 1st February 2007, 09:03 AM
Member
 
Join Date: Sep 2006
Location: Palakkad, Kerala
Posts: 53
Thanks: 0
Thanked 3 Times in 3 Posts
pramodvarmag is on a distinguished road
Reputation: 23
Default Re: Export Data from Amibroker to ASCII files

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.
Attached Files
File Type: zip export to single file OHLCV.zip (495 Bytes, 99 views)
Reply With Quote
The Following User Says Thank You to pramodvarmag For This Useful Post:
scs_r (11th October 2008)
  #7  
Old 12th March 2007, 10:31 PM
Member
 
Join Date: May 2006
Location: Kolkata
Posts: 1,098
Thanks: 1
Thanked 1 Time in 1 Post
swagat86 is on a distinguished road
Reputation: 25
Default Re: Export Data from Amibroker to ASCII files

Quote:
Originally Posted by pramodvarmag View Post
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
thanks 4 the AFL bro
Reply With Quote
  #8  
Old 17th August 2007, 07:49 PM
Member
 
Join Date: Dec 2006
Posts: 19
Thanks: 3
Thanked 0 Times in 0 Posts
P.SUHAS T&I is on a distinguished road
Reputation: 20
Default Re: Export Data from Amibroker to ASCII files

excellent work, pramod ......many many thanks
p.suhas
trader & investor

Last edited by P.SUHAS T&I; 17th August 2007 at 10:55 PM.
Reply With Quote
  #9  
Old 18th August 2007, 01:13 AM
Member
 
Join Date: Mar 2004
Location: Ahmedabad
Posts: 136
Thanks: 5
Thanked 5 Times in 5 Posts
chheda is on a distinguished road
Reputation: 25
Default Re: Export Data from Amibroker to ASCII files

Quote:
Originally Posted by pramodvarmag View Post
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
Thnx for export data afl

Is it possible to import data in amibroker using AFL ?

Harish Chheda
Reply With Quote
  #10  
Old 18th August 2007, 09:33 AM
Member
 
Join Date: Sep 2006
Location: Palakkad, Kerala
Posts: 53
Thanks: 0
Thanked 3 Times in 3 Posts
pramodvarmag is on a distinguished road
Reputation: 23
Default Re: Export Data from Amibroker to ASCII files

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.
Reply With Quote
Sponsored Links

Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT +5.5. The time now is 03:55 PM.

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.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com