Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1259
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
Afternoon.
A couple of questions on the tester in MT5:
1) In MT5, in the visual testing mode of the Expert Advisor, all the indicators that are calculated through iCustom in the Expert Advisor code are applied to the chart themselves. How can it be disabled/adjusted?
2) I have a single test run in the tester with "visual mode with displaying of charts, indicators and trade" ticked, and then I have the same test run with the ticked off (without visualization). In the first case, the balance chart is drawn quite normally, while in the second case it is just a straight line in some cells. What can this be related to?
Afternoon.
A couple of questions on the tester in MT5:
1) In MT5, in the visual testing mode of the Expert Advisor, all the indicators that are calculated through iCustom in the Expert Advisor code are applied to the chart themselves. Can this be disabled/adjusted in some way?
1.TesterHideIndicators().
How to distinguish between the events of deleting a graphical object and renaming a graphical object. The deletion event is generated in both cases. How do you distinguish one from the other?
You can't. Renaming is, deleting and creating a new one. So try to catch the creation after deletion.
Can you tell me what to write to get random 6-digit numbers?
Can you tell me what to write to get random 6-digit numbers?
I found this solution
Found this solution
Vitaly, this is not the best solution.
First of all, you'd better use a do while loop in that case.
Secondly, in my opinion, it's safer to get a number greater than 6 digits in exponentiation than in multiplication. But in this case it is possible to get INF. But you can limit the value of the power... In my example, the power is no more than 16.
And take the remainder of the division and get a six-digit number.
Vitaly, this is not the best option.
First of all, it's better to use a do while loop in that case.
Secondly, in my opinion, it's safer to get a number greater than 6 digits when it's raised to a power than when it's multiplied. But in this case it is possible to get INF. But you can limit the value of the power... In my example, the power is no more than 16.
And take the remainder of the division getting a six digit number.
Thanks, replaced the part in the code.
Thank you, replaced part of it in the code.
And what was the result? I don't claim to be infallible...)))