Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1795
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
why? Why doesn't this happen for the green line? The conditions are identical only the inverse (price > Ask) for the yellow line and (price < Bid) for the green line.
But the green and red lines, for some reason, are created only in one instance and don't blink when the cursor moves.
from zero and above?Interesting point...
You are looking for two lines
and you delete one.
ObjectDelete(line_name);
The question is which one? What is the last name of "line_name"
Completed the message. Test your function and mine with incorrect Chart ID and when object is created subwindow. And see what your function returns and what mine believes.
You're just out of the loop)
And if
what then?
Error. And you, true, for some reason!
Error. And you, true, for some reason!
You're just out of the loop.)
I've given you what checking the object's existence should look like. And that my function won't work? On the contrary, it's more versatile. If you need to work with a subwindow, it won't notice much difference.
I've given you what checking the existence of the object should look like. And that my function won't work? On the contrary, it is more versatile. If you need to work with a subwindow, it won't make much difference.
Let me repeat the question
What ifWhat then?
"-1" - there is no object. Since there is no object - true
Your function will return true and when an error occurs:
Forum on trading, automated trading systems and trading strategy testing
Any questions from newbies about MQL4 and MQL5, tips and discussion about algorithms and codes
Mihail Matkovskij, 2021.12.06 12:38
Enriched your message. You should test your function and mine with incorrect Chart ID and when object is created in subwindow. And see what your function will return and what mine will return. And read the documentation carefully. All links and quote are given above.
If search for other object not "name", then Makar's variant will return false.
Completed the message. Test your function and mine with incorrect Chart ID and when object is created in subwindow . And see what your function will return and what mine will return. And read the documentation carefully. All links and quote are given above.
I gave you what the object's existence check should look like. And my function won't work? On the contrary, it is more universal. If you need to work with a subwindow, it won't make much difference.
As for the universality of the function, well...
An interesting point...
You're looking for two lines
and you remove one.
The question is which one? What is the last name of "line_name"?