Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1253
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
Optimisation is performed by AGENTS (in your case, LOCAL AGENTS).
To view local agent logs: right click on the Log tab and go to the agent folder
That's the thing, there are no errors. Everything checks out. Maybe there's a firewall or something.
That's the thing - there are no errors. Everything counts. Maybe there are firewalls or something?
Run a single test, a single pass. Not optimization, just a single pass. You'll be able to see the log that way.
Run a single test - a single pass. Not optimisation, but a single pass. That way you can see the log for sure.
What do you mean, visual? Well, I got the log. I don't see anything bad there. Parameters are all passed. Even it ran, but the output is still 20,000.
What do you mean, visual? Well, I got the log. I don't see anything wrong with it. The parameters are all passed. Even it was executed. But the output Balance was 20000 and still is.
So, change the code so that it gives errormessages when there are errors or if the trade operation cannot be performed. Or in general, the code is wrong and does not give signals. Miracles do not happen.
So change the code so that it gives errormessages when errors occur or if the trade cannot be executed. Or the code is faulty and does not give any signals at all. There are no miracles.
Yeah.
So, optimization is not included to Ontick. OnInit is processed. But On-Tick is not generated. Here is the problem.
I integrated Print ( ) dots in inputs and outputs. Only Init is written into log.
P.S.
I handle errors. Force of habit. I've been writing programs since 1987.
Yeah.
In general, the optimisation is not included in Ontick. OnInit is processed. But On Tick is not generated. The problem.
I integrated Print points ( ) in inputs and outputs. Only Init is written into log.
P.S.
I handle errors. Force of habit. I've been writing programs since 1987.
Only telepaths will be able to help without the code - and now all the telepaths are on holiday.
Without the code, only telepaths can help - and now, as luck would have it, all the telepaths are on holiday.
I found the reason. For some reason, the indicators are not recalculated in Ontick (it does not give the number of recalculated bars). Maybe I need to update the quotes.
I have nevertheless lost my thanks. I have become smarter. I have learned where the logs are written.
Converted a simple indicator from MQL4 -> MQL5, but no signal on the last few bars. Please help me to find the reason. Source code and result is in attachment. I will paste here the converted one as well.
The result.
Converted a simple indicator from MQL4 -> MQL5, but no signal on the last few bars. Please help me to find the reason. Source code and result is in attachment. I will paste here the converted one as well.
The result.
The culprit may be something not logically done between the platforms
Please pay attention to the different input parameters
MT4
MT5
Sort of the culprit could be something not logically done between platforms
Note the different input parameters
MT4
MT5
Thank you Vitaliy.
The order of variables in this place is correct. I have swapped them during conversion. Also iHighest / iLowest functions were in MQL4.
This is something else. I have already racked my brains.