[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 213

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
I haven't come across it, but it is possible to write... this would be about right for the maximum value of the main masd line over the last 10 bars, not counting the current one:
Small correction
you do not check the value by -1
Bingo!
Much obliged! ))
Small correction.
And how will it differ from my variant, in terms of operability?
p.s. Yeah, by the way, this function doesn't need to be performed on every tick, it's enough when a new bar opens. Serious increase in speed.
And how would it differ from my version, in terms of performance?
Both yours and his are counting 11 bars for some reason, and I need 10.)
Both you and he are counting 11 bars for some reason, but I need 10.)
And how will it differ from my version, in terms of operability?
p.s. Yes, by the way, this function doesn't need to be performed on every tick, it's enough when a new bar opens. A serious increase in speed.
At least because the double H type is used;
If only because the double H type is used;
Testing and optimisation are two different things?
Meaning if I test first test equal to trut, and optimization is not testing - it turns out that if there is optimization, then I do not get to the second condition?! And as a result, the run goes through the full program and not as in test mode....
The trick here is simple. If there is a visualisation, the EA draws objects on the chart and it eats a lot of time. Therefore, we should draw objects during testing with the VISUALIZATION but not without it. But is it the same as optimization!
Testing and optimisation are two different things?
Meaning if I test first test equal to trut, and optimization is not testing - it turns out that if there is optimization, then I do not get to the second condition?! And as a result, the run goes through the full program and not as in test mode....
The trick here is simple. If there is a visualization, the EA draws objects on the chart and it eats a lot of time. Therefore, we should draw objects during testing with the VISUALIZATION but not without it. But is it the same as optimization!
Objects are not drawn in principle during optimisation.