I received an email today from a reader wanting to know if there was an expert advisor available that would export data to a csv file. although I have not myself seen an EA that does this it is a trivial matter to code such an EA shown below:
int handlFile;
handlFile = FileOpen(“symbol.csv”, FILE_CSV | FILE_WRITE | FILE_READ, ‘,’);
FileSeek(handlFile, 0, SEEK_END);
FileWrite(handlFile, Bid, Ask, Close[1], Volume[1]);
FileClose(handlFile);
Note: This code above is intended as a very rough solution. Time permitting I will write a proper EA with error checking and better features. This code however should be sufficient for basic tasks. For more information on EA coding I strongly recommend you download the getting started book:
The Non EA Export Option
Can’t be bothered with that coding garbage? Never fear there is a very simple option. Go to the Tools Menu then History Centre a dialog box similar to the one shown below will appear simply chose the currency you wish to export and select a file name and your done. This process is shown below:

MetaTrader really is an excellent platform for learning the basics of trading and trading systems. I would recommend to anyone starting out in currency trading that they download MetaTrader and start exploring. If you want to learn more about Forex Trading I suggest you visit the Forex section of this website.
About the author
Mark - Is a 28 year old form Australia. He has a Bachelor in Economics and a Major in CS. He is currently working towards his CFP. His interests include algorithmic trading systems, artificial intelligence, game theory and poker.
Popular Posts
-
My New Favourite Poker Game – Limit 2-7 Triple Draw Lowball
October 13, 2009 -
eSignal OnDemand - Trading Software Review – Is it worth the money?
October 28, 2009 -
Moving to Mac: You Can Have it All
February 22, 2010
Related Posts
-
Forex From Scratch FREE eBook
August 13, 2010
-
Building an Automated FOREX System: Writing the Pseudo Code
April 12, 2010
-
Building an Automated FOREX System: Expert Advisors & Indicators
February 18, 2010
Do you have something to say?
Trade to Win
Trading Wisdom
They say there are two sides to everything. But there is only one side to the stock market; and it is not the bull side or the bear side, but the right side.
— Jesse Livermore
Recent News
Archives
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- April 2009
- February 2009
- January 2009
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007

