[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 403

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
Please tell me how to calculate stacksize
Be more specific with your question.
Is it possible to skip an unnecessary step in optimization and go to the next one?
Example: there are input parameters(type double) which need to be optimized: x1, x2, x3, x4. Their values are from 1 to 5. Step 0.1
It is clear that in this case there will be 41*41*41*41=2,825,761
But we need to search in the following constraint: 10.5 < x1+x2+x3+x4 < 11.5. It is already clear here that there will be many fewer search variants. (this is the very restriction on the sum needed)
So if this restriction is added to the Expert Advisor's code like this
then during optimization (when each new tick arrives), the unsuitable variants will also be taken, for example x1=4, x2=4, x3=4, x4=4; what exactly will not happen -- is the execution of the main code.
That is, as long as this optimization step does not "run through" the historical interval, there will be no transition to the next step. There will be a "conviction" that the condition 10.5 < x1+x2+x3+x4 < 11.5 is not fulfilled and it will only stop the execution of the main code
The time will be greatly wasted on such obviously unsuitable variants
How can we exclude such steps in optimization with obviously unsuitable parameters?
That is, when another set of parameters becomes unsuitable, this step should not be optimized but passed to a new one immediately?
Is it possible to skip an unnecessary step in the optimisation and move on to the next one?
it is possible to optimise 3 parameters and adjust the fourth for the desired amount.
or use the third tab "Optimisation" to generate the required event spontaneously.
it is possible to optimise 3 parameters and adjust the fourth for the required amount.
or use the third tab "Optimisation" to generate the desired event spontaneously.
The point is that it is impossible to optimise 3 parameters without the 4th parameter in my case.
Here it is their joint selection that is important and their sum is limited in the interval.
(it is approximately like searching for shares of all components in a mixture and the total mass of this mixture is limited to a strict interval)
Can you tell me more about the third tab, what is this spontaneous generation of the desired event ?
Good afternoon.
Can you tell me how to extract candle values (High, Low, Open, Close) of the last extremum of the ZigZag indicator ?
Could you elaborate on the third tab, what is the spontaneous generation of the desired event?
More in detail in the help
In brief, you can create your own conditions for the point on the third tab (for example, open 10 losing orders in a row) and the tester will automatically skip this run and move on to the next one.
Good afternoon.
Can you tell me how to extract candle values (High, Low, Open, Close) of the last extremum of the ZigZag indicator ?
Such an operation requires some calculations.
I used to do it this way:
Now you know the bar numbers on the last 2 extrema (min and max) and then their highs, lows.... easy to find !
- Close[x1], Open[x2], .... etc.
Perhaps someone will suggest a simpler option.