M4STR0: Unfortunately I get always "found" in the journal, but I think I am doing something wrong, a
Perhaps you should read the manual. ObjectFind does not return a bool.if(ObjectFind("Arrows:"+Time[0]))
ObjectFind - Object Functions - MQL4 Reference

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
Hello,
I am pretty noob in MQL4 and I am walking a bit in the darkness when working with Objects Functions and Time for an EA.
I am writing an EA that has to do something when he finds that an Arrow object with a defined Arrow code that has been created by an Indicator in the Chart.
This is what I have in the Ontick() of the EA:
This is the NewCandle() function I am using to run commands after a new candle is done:
And this is the function I am writing to check if the Arrows I am looking for have been created:
Unfortunately I get always "found" in the journal, but I think I am doing something wrong, as this arrows are not in every candle that are generated, I tryed also to use CheckArrowSignal() just in the Ontick() but with same result.
The name of the arrows are something like this: "arrows:1575518400","arrows:1575590400" et cet. I guess the numbers are the time, that is why I use +Time[0].
Another thing I would like to check also is the parameter Arrow Code of the arrows that are created.
Somebody has any suggestions or guidelines about this topic?