really wondering what you want to say...

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
Hi,
I´m just starting in mql4 and this forum has been a great help for me, so has S. Kovalyov´s Book, which is priceless for someone who doesn´t know the first thing about this kind of coding.
So, just want to share something I found out: there are some bugs in the book (some have already been spotted in this forum), such as tradingexpert.mq4 (https://book.mql4.com/samples/expert) and shared.mq4 (https://book.mql4.com/samples/shared) where you get signals ">" and "<" mixed up and grafobjects.mq4 (https://book.mql4.com/functions/objects) which is incomplete...
Well, when something is not working properly or we have doubts, we can always refer to the Appendixes/List of programs (https://book.mql4.com/appendix/examples). There you can find the same programs but in the original coding by S. Kovalyov. And they´re bug free.
The only bug in the original coding I have found so far is in include file Inform ( https://book.mql4.com/build/info) from EA usualexpert.mq4 (https://book.mql4.com/build/structure).
This bug has already been spotted in the thread https://www.mql5.com/en/forum/108884/page2 by aiv:
found a bug in inform.mqh, please add highlighted lines in the part 8-9:
//----------------------------------------------------------------------- 8 --
if(StringLen(Name_Grf_Txt[29]) > 0)
ObjectDelete(Name_Grf_Txt[29]); // Deleting 29th (upper) object
for(i=29; i>=1; i--) // Cycle for array indexes ..
{ // .. of graphical objects
Name_Grf_Txt[i]=Name_Grf_Txt[i-1];// Raising objects:
if(StringLen(Name_Grf_Txt[i]) > 0)
ObjectSet( Name_Grf_Txt[i], OBJPROP_YDISTANCE, 2+15*i);
}
or you get such messages in experts tab:
object name passed to ObjectDelete function cannot be an uninitialized or empty string
Concerning this Inform.mqh, besides part-8-9, you also have to add the same "StringLen" line in parts 4 and 5, otherwise you´ll keep getting the same messages in experts tab. Like this it works fine:
That´s it. Hope this can help some newbies like me.