Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Script | The example of the work with the CSV file as with a table

The script demonstrates the work with the table in which the only detail is necessity to know the number of columns.

news.txt should be converted to csv file with delimiter";", or any other file but in the same code.

filehandle=FileOpen("News.csv",FILE_READ|FILE_CSV|FILE_ANSI,';');

Instead of ";" set this symbol.

Such approach allows to work with each line separately, and the first column "Code" helps to know where the search value is in the table.

MetaTrader Experts, Indicators, Scripts and Libraries

1380

Best MetaTrader Indicators + Profitable Expert Advisors