Errors, bugs, questions - page 2414
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
If you use CSymbolInfo in multicurrency, which is called by Name method at the moment of initialization:
There will be errors for USDCAD symbol during testing:
What is the deposit currency during testing?
What is the currency of the deposit when testing?
USD. EURUSD M1 testing pair. I will try to reproduce it in the naked EA. It has not succeeded so far. But it was these methods that led to errors in logs and exactly one pair.
What is the currency of the deposit when testing?
Generally reproduced and found a feature. Attached the test settings.
Bare Expert Advisor code itself:
Now the "feature", as promised) If you use Name() like this:
then there will be an error. But this way the error disappears:
PS. I have pairs named with prefix ".m" on my cent. The example works on regular pairs as well.
Anyway, reproduced and found a feature. I have attached the test settings.
Thank you. Figuring it out
Bug MT5 build 2007. In optimization mode input string is truncated to 63 characters.
Code for test:
Single run all ok: ! 90 | AUDUSD,EURGBP,EURUSD,GBPAUD,GBPCAD,GBPCHF,GBPJPY,GBPNZD,GBPUSD,NZDUSD,USDCAD,USDCHF,USDJPY
Let's set optimization by fortestopt parameter, let's go to agent's log: ! 63 | AUDUSD,EURGBP,EURUSD,GBPAUD,GBPCAD,GBPCHF,GBPJPY,GBPNZD,GBPUSD,
Anybody want to know...
I can't see the newsfeed on my page... Used to go in and see who posted what. Now it's a blank page... I didn't change anything in the settings...
Compiler bug. It generates ambiguity error, although everything is unambiguous here.The first method should be called as the most suitable one. Tested in C++.
Bug MT5 build 2007. In optimization mode input string is truncated to 63 characters.
Code for test:
Single run all ok: ! 90 | AUDUSD,EURGBP,EURUSD,GBPAUD,GBPCAD,GBPCHF,GBPJPY,GBPNZD,GBPUSD,NZDUSD,USDCAD,USDCHF,USDJPY
Let's set optimization by fortestopt parameter, let's go to agent's log: ! 63 | AUDUSD,EURGBP,EURUSD,GBPAUD,GBPCAD,GBPCHF,GBPJPY,GBPNZD,GBPUSD,
The fact that it doesn't cut to 63 characters in a single test either is just a fluke.
The length of the input parameter type string must not exceed 63 characters (64 together with the null-terminator)
The fact that it doesn't cut down to 63 characters in the single test either, is just a fluke.
The length of an input parameter of type string should not exceed 63 characters (64 along with the null-terminator).
It's some kind of draconian restriction. What's the rationale for this in today's times? And how is it convenient to specify clusters of a bunch of characters? Plotting a dozen different parameters? Is it convenient?
The fact that the single test does not truncate to 63 characters is just an accident.
The length of an input parameter of the string type must not exceed 63 characters (64 together with the null-terminator)
This limitation is inappropriate, we are not writing the price of a kilogram of potatoes into the string.