Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1444

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
What could be wrong
Set - the string in which we are searching.
txt - what we are looking for.
why aaa = -1 ???
Hello, Alexander! Maybe you should have set the data type to string instead of int? You are looking for text, not a number.
Regards, Vladimir.
Hello, Alexander! Maybe the data type should have been set to string instead of int? I think you are looking for text, not a number.
Regards, Vladimir.
On the picture you can see that the StringFind function returns data with the string type , the int type , namely the number of position from which the searched string starts.
In this case, the function should have returned zero.
What could be wrong
Set - the string in which we are searching.
txt - what we are looking for.
why aaa = -1 ???
And why the debugger counted 7 characters in txt when there should be 6? And in Set it's supposed to be 26.
The picture shows that the StringFind function returns data with the string type , the int type , namely the number of position from which the searched string starts.
In this case the function should have returned zero.
I see. Thank you for the clarification. Now I have learnt a new function for me.
Regards, Vladimir.
Why debugger counted 7 characters in txt if it should be 6? And in Set as it should be 26
Yes, yes, and this is also strange, thanks, what is wrong here, I started to check the question Yuriy Bykov, I copied from the debugger and pasted into the code, I got this picture.
I got the hyphenation to another line from somewhere.
Thank you all for your help. I will look into it.
Can't the highlighted in yellow have that effect? I am clarifying for the purpose of self-study.
Regards, Vladimir.
Can't the highlighted in yellow have that effect? Just to clarify for self-study purposes.
Regards, Vladimir.
int start_pos=0 Default value
If you do not specify it when passing it to a function, zero will be substituted.
It is the same.
int start_pos=0 Default value
If it is not specified when passing it to the function, zero will be substituted.
It is the same.
I understand, Alexander. Now I will know.
Regards, Vladimir.
Is it possible to cancel the output of database connection errors?
For example, the DatabaseOpen() function prints an error every time the database is locked and the function cannot access it.
But this is a normal working situation for me and this problem is processed and solved and if necessary, I will catch and output this error myself.
As a result, the whole log is full of messages about the locked base.
answer the question, please
I think fxsaber has posted a bootloader and a description of how to use it, but I don't remember where and how.
If I'm not mistaken, you need to put it in the terminal folder C:\Users\username\AppData\Roaming\MetaQuotes\Terminal\E98C5173D8A802F9B8F133E800FDDE2B.
And run the botnick every time before starting the terminal.
The solution is not particularly convenient, but if there is no other, then ...
Shit. First I posted it, and then I saw that the botnik is for banning logs in the tester.
Sorry, I can't help you.