Does anyone know(or know where I can look up) the operational time for built in MQL4 functions. I would like to assume that MQL4 uses the the most efficient algorithm for most of their built in functions...but after programming with it for a little while, it doesn't seem like much thought was put into the language. Most specifically I am interest in array functions such as ArrayCopy, Array searching, things of that sort. Also when you use the iCustom feature, does it keep a buffer for the indicator and is there a limit to the number of buffers?
Some specific examples:
Is the Operational time for ArrayCopy O(n^d) where d is the number of dimensions of the array...I am guessing this is the case.
Does it use binary search when you call an array search on a sorted array, I am pretty sure it does, I am just checking with anyone else who might know.
For the iCustom function, if I have say 15 Lags that I am keeping track of, does it re-calculate the lags each time I call for a value from that function? Or does it keep a built in running buffer. I can always make my own buffer, I was just curious how iCustom worked. (Please note that Lags are recursive)
If anyone can answer any of these questions, it would save me a ton of testing in MQL4, and I would be incredibly grateful.
Some specific examples:
Is the Operational time for ArrayCopy O(n^d) where d is the number of dimensions of the array...I am guessing this is the case.
Does it use binary search when you call an array search on a sorted array, I am pretty sure it does, I am just checking with anyone else who might know.
For the iCustom function, if I have say 15 Lags that I am keeping track of, does it re-calculate the lags each time I call for a value from that function? Or does it keep a built in running buffer. I can always make my own buffer, I was just curious how iCustom worked. (Please note that Lags are recursive)
If anyone can answer any of these questions, it would save me a ton of testing in MQL4, and I would be incredibly grateful.
Kiss'n all the way to the top!