MetaTrader 4 Build 529 beta released with new compiler - page 106
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
There is now no spread value (possibly also exchange volume ) in the MqlRates structure, will this be added later?
It's a little more complicated than that. The structure that the dll takes has also changed.
So, you need to rewrite ArrayCopyRates into MqlRates structure array. Also in your dlls you need to replace the description of corresponding structure
Unfortunately, I understand it. What I mean is this:
Existing DLLs take as input parameters a reference to such an array and its length by the first dimension. If I call ArrayCopyRates() before each call of a DLL function , passing a reference to array double[][6] as the first parameter and getting the number of actually copied bars as the returned value, we won't have to change anything in the DLL code, right?
Or I'm wrong, and the structure of this array has also changed? It now has the following structure (price order OLHC vs. OHLC in MqlRates):
The new MQL4 produces a real copying into double[][6] array. Everything is as described. You may check it using some script.
However, previously, in the old MQL4, the DLL passed an array of structures, not a two-dimensional double array. This is where it gets tricky. Since the new structure of historical MqlRates data is different from the previous one
stringo:
The new MQL4 makes a real copying into double[][6] array. Everything is as described. You can check it with some script.
However, in the old MQL4, it was not a 2D double array that was passed to the DLL, but an array of structures. This is where it gets tricky. Since the new structure of historical data MqlRates differs from the previous one
Yes, I have already understood that. I wanted to make sure that I understood the new structure correctly, so I referred to MQL4\Samples\DLLSample\DLLSample.cpp in new build 555, but it is still there:
I think it should be this way, as I understand it:
Please make it clear.
for some unknown reason I cannot log in to the terminal in µl communiti build 555
Read more about resources:
Is it working or not yet ???
trying to insert an image, and nothing.... error
Is it working or not yet ???
trying to insert an image and nothing.... error
trade levels