CopyTicks / CopyTicksRange - function not defined

 

Hi All,

I'm trying to use the functions CopyTicks and CopyTicksRange in my MQL4 code but get the error "function not defined"

CopyTicks: https://www.mql5.com/en/docs/series/copyticks

CopyTicksRange: https://www.mql5.com/en/docs/series/copyticksrange


It seems that these function doesn't available in the MQL4, 

I tried to search for any clue for it on the internet but got nothing.

Do someone know something about it?


Thanks,

Documentation on MQL5: Timeseries and Indicators Access / CopyTicksRange
Documentation on MQL5: Timeseries and Indicators Access / CopyTicksRange
  • www.mql5.com
[out] MqlTick static or dynamic array for receiving ticks. If the static array cannot hold all the ticks from the requested time interval, the maximum possible amount of ticks is received. In this case, the function generates the error ERR_HISTORY_SMALL_BUFFER (4407) . ERR_NOT_ENOUGH_MEMORY – insufficient memory for receiving a history from...
 
Sharon Aharonov:

It seems that these function doesn't available in the MQL4,

The links you provided are to MQL5 documentation. MQL4 doesn't contain everything in MQL5.

When you search (in Google) be sure to preface with MQL4 to get the correct results.

For example, you might come up with this link:

https://www.mql5.com/en/forum/188063

 
Anthony Garot:

The links you provided are to MQL5 documentation. MQL4 doesn't contain everything in MQL5.

When you search (in Google) be sure to preface with MQL4 to get the correct results.

For example, you might come up with this link:

https://www.mql5.com/en/forum/188063

The problem with their documentation is that there isn't any way to know if the document is referred to MQL5 or MQL4, it's not mentioned at the documents at all.

Although when I search in Google, I always search for MQL4, the results you get are not distinguishing between them.

(I must say, that in other languages that I coding, the documentation are more arranged in this respect and always indicate what version it is)


However, I'm still wondering if there is an alternative solution to get the history ticks in MQL4 ?  

Reason: