Download MetaTrader 5
To add comments, please log in or register
They are already making profit using the Market. You can join them!
Bryan Horna
Bryan Horna 2016.01.29 03:13 
I'm new to MQL and MetaTrader 4, but I want to read a CSV file and draw the values I've got into the chart of the Expert Advisor I'm working on.
Every file has the form:
Where the EURUSD part is the Symbol which another program generated, the 1 is the period, and all the other things are the data to draw.
Is there any form to do it inside an Expert Advisor, or do I need to use a Custom Indicator? If that's the case, how can I do it in the simplest way?
P.S.: I read the data in a struct:
struct entry
  string date;
  string time;
  double high;
  double low;
  double close;
  double open;
  int volume;
Thanks in advance.
Edi Dimitrovski
Edi Dimitrovski 2016.01.29 05:23  
By my thoughts the simplest way for me would be to copy them in array rates than to use Heiken Ashi as template as indicator, but I do not know method if IndicatorCounted() would work. Manually you would need to update the array by additional code if you have new updates.
To add comments, please log in or register