I am trying to implement https://www.mql5.com/en/code/16308
So in my first function I do this,
In my second function I try to return a true value using,
But for whatever reason it never returns TRUE in the second function if I have CheckNews==0
What am I missing?
Or maybe somebody can suggest me a better news filter I can code in?
https://bitbucket.org/nicholishen/mql4-ffevents/src/master/
- bitbucket.org
https://bitbucket.org/nicholishen/mql4-ffevents/src/master/
Sorry but I don't like the way you did your code. It makes it difficult to understand but feel free to share an implementation of your library with my code if you think you can improve my understanding :)
Sorry but I don't like the way you did your code. It makes it difficult to understand but feel free to share an implementation of your library with my code if you think you can improve my understanding :)
What about paying for some consultancy if you don't know how to do things in MQL?
Or at least have the decency and humility of accepting what is given to you for free...
I guess we could say even worse of your code - it is sloppy, stringy, disorganised and extremely difficult to read or understand.
@nicholi shen may overemphasize the use of OOP, but his code is clean, well thought-out, logical and easy to read and understand.
Not only did you insult his code but you then had the gall to invite him to code your stuff for you for free?
Sorry but I don't like the way you did your code. It makes it difficult to understand but feel free to share an implementation of your library with my code if you think you can improve my understanding :)
Your reply is unwarranted and ungrateful when somebody has tried to help you.
It is nobody else's fault that you cannot understand the code.
The replies to your post are, on the other hand warranted.
I have deleted your last two posts as they are petulant and insulting.
Please be more humble when people are trying to help you.
I guess we could say even worse of your code - it is sloppy, stringy, disorganised and extremely difficult to read or understand.
@nicholi shen may overemphasize the use of OOP, but his code is clean, well thought-out, logical and easy to read and understand.
Not only did you insult his code but you then had the gall to invite him to code your stuff for you for free?
Thanks Fernando, I appreciate the kind words. The emphasis on OOP comes from my background in python. I like to be able to make extremely complex and encapsulated programs with extremely simple interfaces, and it's just not possible to do that using the old C programming paradigm. It boils down to preference, and I prefer high-level interfaces, while others prefer low-level. So I think it's unfair to classify my style as "overemphasize the use of OOP" because that is a purely subjective opinion based on one's own preference.
You are welcome, but classifying your code as overemphasized was not a criticism. It was neither "unfair" nor "fair", neither "bad" nor "good" - it was simply an observation, given that most MQL coders, especially newcomers, have a preference and an easier understanding of procedural coding.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
So in my first function I do this,
In my second function I try to return a true value using,
But for whatever reason it never returns TRUE in the second function if I have CheckNews==0
What am I missing?
Or maybe somebody can suggest me a better news filter I can code in?