Download MetaTrader 5
To add comments, please log in or register
We have launched Spanish and Portuguese versions of the website. Try them!
pierrez
8
pierrez 2015.06.19 08:21 

When I use the copyrates-function, the last bar has a different time then the time on the chart.

How is this possible? And how can i fix this that I can be sure that I always get the latest candle?

Ilyas
1189
Ilyas 2015.06.19 11:05  
Please show your code and results (e.g. logs).
whroeder1
13941
whroeder1 2015.06.19 14:16  
  1. There are no mind readers here and we can't see your code.
  2. CopyRates copies the data, you have to call it every tick. Did you set your array AsSeries? Did you handle 4066?
  3. ArrayCopyRates(MqlRates) doesn't copy the data, it redirects access to the internal buffer, and will be up to date (after you handle 4066).
/
To add comments, please log in or register