This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

Help Needed: Hooking an Indicator to a CSV File


Back to topics list
avatar
3
Hamster 2010.06.08 01:13 

Is it possible to write an indicator that obtains data from an external text file?


Suppose we have a text file formatted like this:

--

Date1(Tab)Value1(LF)

Date2(Tab)Value2(LF)

...

DateN(Tab)ValueN(EOF)

--

where (Tab) could be actually Tab, or "," or ";" or something else.


How do you make reference to an external file in the source code of your indicator, and how do you make it read the data structured as shown above to show it as a line or bar chart?


Thank you!

Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets