
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
Beside this has anybody been able to sort a matrix according to a specified column?
With sort and argsort , no , getting the errors you mentioned.
Even tri does not work as described:
This is what I tried:
and this is what I get:
:(
Acc. to https://www.mql5.com/en/docs/matrix/matrix_manipulations/matrix_sort:
I should be able to sort a vector But (b3662):
Even tri does not work as described:
This is what I tried:
and this is what I get:
:(
It works as documented. What are you expecting as result ?
The function allows any value so I was assuming that this should have some effects otherwise MQ would have defined three enums for the different modes as MQ has done so in many other cases.
There is another problem with the matrices :(
I have an XML-file with 509 rows which I read into a matrix.
Now I want to print out some informations about the parameters used. So I copied the column vCol of a parameter (in the XML matrix col: iFirstXML - iLastVar) and assign these values into a new matrix mVars of only the parameters. One column one parameter, a specific statistical value:
At the end I print each column with the parameter name at the beginning. This is what I get:
2023.04.05 15:11:23.531 analyseTesterXML (EURUSD,H1) nTrail: [509,inf,0,0,4.5,6,4.69155206286837,3.324781533768716]
2023.04.05 15:11:23.531 analyseTesterXML (EURUSD,H1) doClsOppPos: [509,inf,0,0,0.5,1,0.5579567779960707,0.4966296526430073]
2023.04.05 15:11:23.531 analyseTesterXML (EURUSD,H1) PT_Coeff: [509,inf,0.8,0,1.15,1.1,1.133005893909626,0.2330522719442697]
2023.04.05 15:11:23.531 analyseTesterXML (EURUSD,H1) PT_PIP: [509,inf,3,0,5.5,5.5,5.55992141453831,1.60788968141974]
2023.04.05 15:11:23.531 analyseTesterXML (EURUSD,H1) FullBarsStop: [509,inf,12,0,17,18,17.02161100196464,3.551684699169537]
2023.04.05 15:11:23.531 analyseTesterXML (EURUSD,H1) HalfBarsBackTrigg: [509,inf,5,0,8.5,9,8.607072691552062,2.275440991525463]
2023.04.05 15:11:23.531 analyseTesterXML (EURUSD,H1) BarsBack: [509,inf,500,0,1250,1300,1261.296660117878,461.7970029289808]
So: Max() of each column became inf ? //enum: €Max=1,€Min=2,..
This is the top of the XML-file opened in LO-Calc (excel):
Boolean values are converted to 0.0 and 1.0 and assigned - even here .Max() is inf ?
One can see that e.g. the mid value (=(max+min)/2) is correct. So the max value = 2000 for BarsBack must haven been correct only the printout fails.
The tester (Win 10, b 3661) hangs :(
After testing the same EA with EURUSD and XAUUSD the tester hangs after the first few results:
started this morning:
This result hasn't really changed since 8 hors,
The MT5 task manager doesn't help, while Win10 TaskManager shows this:
Why is ntoskrnl.exe so heavily used? (Ram is no full so the system is not swapping).
My EA was tested with XAUUSD and the same period with 510 passes (+ some doubled calculated= within 24h so ~21 passes within 1 hour and now ...?
Meanwhile I updated to b.3675:
and still I am facing the same problem: the optimization snags so badly after the first few quick runs that everything comes to a standstill :(
Here are some screenshot taken at different times:
The first 32 in 1 hour but the next 12 in 4 hours (~3 per hour):
and now 33 in 9 hours (~3,7 per hour)
These are the settings:
The TaskManager of MT5 shows nothing that seemed striking to me and the Windows Taskmanager shows a usage of 100% CPU, and 48% for RAM - so the system was not blocked by swapping.
By the way the optimization table has 68 rows and the biggest pass number is 67. So the first fast passes are not so fast because they were early stopped due to no money.
Meanwhile I updated to b.3675:
Is it the same behavior on older builds?
Previously it was b.3661 and now I have b.3675. so the same thing as 14 builds before :(
Do you know an older build that does not show this 'feature'?Do you know an older build that does not show this 'feature'?
Try some old builds from the archive (link in profile).
It is important to determine which build the problem started with. Then it will become much easier for developers to find the cause.