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
Greetings!
MT5 Optimizer - does CustomMax calculate correctly?
I am running optimizer (genetic optimization) in MT5 5.00 build 722 and accidentally noticed that the optimization results are calculated in an unexpected way.
The Expert Advisor returns OnTester():
Profit * Trades * (1/(MaxEquityDDPercent+1)) * RecoveryFactor
Where:
double Profit = TesterStatistics(STAT_PROFIT);
double Trades = TesterStatistics(STAT_TRADES);
double MaxEquityDDPercent = TesterStatistics(STAT_EQUITY_DDREL_PERCENT);
double RecoveryFactor = MathAbs(TesterStatistics(STAT_RECOVERY_FACTOR));
It was expected that with smaller profit and recovery factor the result would be smaller, but it is not - see the screenshot.
Is it something I do not understand correctly?
Well, let's move it:
But I'm afraid you won't like it. I, for example, don't like it - the chart twitches and doubles. And I wanted to do better - move it smoothly to the right place...
// What's interesting, it works twice as fast with ChartRedraw() than without it. At the same time, it jerks more.
There is still a problem with ChartNavigate(). Will it be fixed someday? Or is it not considered a bug?
Is there already a post on this topic in Service Desk? Or to add more? ))
Execution error: Stack overflow
If we replace OrderSend with any other name - everything is fine
presence of static does not affect the error
calling A::OrderSend()- the error is unaffected
Stack overflow execution error
If you replace OrderSend with any other name, it's fine
because the context must be resolved
::OrderSend
I think I am not calling ::OrderSend, but A::OrderSend()
should work
I think I'm not calling ::OrderSend, but A::OrderSend()
which line are you thinking about?
that you have just
If you want to call terminal, do :: before OrdersendThank you, I found the reason - I remove the question - I looped it myself
I understand that you called yourself in your Ordersend without ::
I got caught in it at once, when I redefined Print and Comment in the class. now I do it all the time :)
I understand you called yourself in your Ordersend without ::