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
The problem is, the goal of the task is clear, but the possibility of its implementation in MQL seems unclear, as I'm not yet familiar with the built-in array function of the tester-optimizer. I am trying to re-read the MQL manual but I have not found this block yet. And the self-made optimizer by thecore is not so much unreliable as not quite understandable. The variables are quite freakishly written there, there's no annotation and they are fundamentally different from the working version mentioned in the above link. If it is not difficult, dear thecore, explain your point of view of the optimizer, so that you can fit all 19 parameters and auto-replace the result.
I feel strange hearing this from a programmer, but I'll try to break it down (not spell it out):
1. Suppose you have a function with N number of input parameters
Function(n1,n2,...,n19);
2.Parameters
n1 varies from n1Min to n1Max with step n1Step
....
n19 changes from n19Min to n19Max with n19Step
You need to:
- Go through all (for the linear method) incoming parameters or not all (for the fast convergence method) incoming parameters.
There are a great many methods of fast convergence, one of which is the genetic algorithm.
- Each time you input a new batch of parameters, you get the result of the function at the output.
- You need to write a block to analyse these results and decide whether the result is
good.
I understand you're having trouble with the analysis unit. Because if you don't know how to write a function or how to
or how to look through the input parameters, it's not for me, it's for programming classes or people who like to spell out
the basics of programming.
What the analysis unit does:
1.It takes the oldest BAR_Y bar that you want to analyse, and slips the current at time Y data into your
function. That is, your function thinks BAR_Y is TimeCurrent.
2.Now take as many bars in the depth of history as your Function(n1,n2,...,n19) would take if it was at bar 0.
and obtain some result.
For example, your strategy is looking for an extremum along iMA3,iMA2,iMA1. Then we have iMA_Y+2,iMA_Y+1,iMA_Y
If it is an extremum point, we stop, if not we do Y++;
OK. We find the point of extremum at position t, i.e. iMAt+2,iMAt+1,iMAt
Now we need to calculate whether TP or SL will be triggered
I.e. from point t we step down bars t-1 and analyze the distance from Open[t] to High[t] and to Low[t],
and then from Open[t] to High[t-1] and to Low[t-1], if we don't reach TP or SL we go further - take t-2 and so on until it works out
TP or SL or both.
We have found the FIRST condition for Function(n1,n2,...,n19).
Let's save the result,
Next we make t-- and proceed with analysis up to bar 0.
4. We shift Y-- and repeat the process.
Thus we find all occurences of our function Function(n1,n2,...,n19) up to the current moment.
5.Analyze the current moment and see if there were similar situations in the past and how they ended.
6.Save the result.
7.Take the next set of parameters n1,,n19 for Function(n1,n2,...,n19) and check it
8.Repeat until we run out of parameters.
9. we choose the best set of parameters or several sets, and according to their recommendations, set BUY, SELL or
do nothing.
That's all.
I hope that it is difficult, because it really is difficult.
The problem is that the purpose of the task is clear, but the possibility of its implementation in MQL language seems unclear, as I'm not yet familiar with the function of the built-in array of the tester-optimizer. I am trying to re-read the MQL manual but I have not found this block yet. And the self-made optimizer by thecore is not so much unreliable as not quite understandable. The variables are quite freakishly written there, there's no annotation and they are fundamentally different from the working version mentioned in the above link. If not difficult, dear thecore, explain your point of view of the optimizer, so that I could cram all 19 parameters and autocomplete result.
By the way, don't start with brute force block - it's much easier to write than parser.
And if you find all that I have said too complicated, look for the auto-optimizer by xeon.
It uses MetaTrader optimizer. Do not look for the built-in auto-optimization function. There is none.
Here is klot's indicator with GA optimizer embedded in the indicator.
I think Hoper23 will not genetically analyse it no matter if this link is broken or not.
All the more so, it is not broken.
thecore==>by your reasoning, as well as mine, you get for(S = Sstart; S <= Send; S += Sstep), well, in general terms. Here's what I got
Further stall - I don't know how to fix positive result and substitute in the variable automatically.yyyyy ..... "The link that took you to this page is "dead" or deleted." Nice referral!!! Somewhat similar to the direction to go fuck yourself. (no offense, just for fun).
Here's a thank you), to me for the link, klot'y for actually ready solution on a plate), there you have both tester and optimizer, just tweak it a bit to suit your needs... And everything opens.
Answer not open!!!
thecore==>by your reasoning, as well as mine, you get for(S = Sstart; S <= Send; S += Sstep), well, in general terms. Here's what I got
1.Don't try to solve the problem head-on.
Why do you need to save ALL variants of all possible solutions.
You're not solving a math problem. You're looking at history for a situation similar to the one you have
today and now to decide what to do.
So, first describe the current situation and look specifically for it.
This will reduce the number of passes, variables and results by a LOT.
Next, stop - I don't know how to fix a positive result and put it into a variable automatically.
At the first stage, I saved it to a file. Received on the history of about 10,000-50,000 winning options.
Then analyzed in Excel.
2.Don't look for an exact match. It's not like we're describing a sine wave.3.Write first a data collection block for ONE variable, debug it, and then add another 18 or how many variables you have.
Good. The idea is logical. Well then, how do you solve the formula for optimizing over combinations with a single parameter??? The whole point is that in this example they are interrelated. I don't know another example yet due to my limited knowledge of MQL language.
This nonsense is designed to optimise off-line
It comes with a bible.
бла-бла-бла
And there's a biblah to go with it.
And NOTHING WORKS...or rather it messes with itself, it stresses the CPU, but no changes in the variables and does everything fast - a couple of seconds and that's it. I don't understand.This nonsense is designed to optimise off-line
It comes with a bible.
And then there's the biblah.
And it doesn't work... or rather it makes some jumbled mess of itself, stresses the CPU, but no changes in variables and makes everything fast - a couple of seconds and that's it. I don't understand.You have started to work with xeon's auto-optimizer
TestCommander (autooptimization) Trader's tool
So ask him.
By the way, this product is already paid, if I remember correctly.
There is a help in it, everything is clearly explained there.