Hello.
Thank you for watching my questions.
I'm very sorry, but instead of being upset, guide me.
Abdolmobin Khezri:
One in that OnInt ().
One in that OnTick ().
The third time a new price tick appears, it returns the correct value.
What is wrong ?
You return from OnTick. Then the objects are drawn. Don't read them prior.
Objects are drawn asynchronously.
https://www.mql5.com/en/docs/objects/objectcreate
Return Value
The function returns true if the command has been successfully added to the queue of the specified chart, or false otherwise. If an object has already been created, an attempt is made to change its coordinates.
You have to make sure the object exists on the chart before attempting to read its properties.
https://www.mql5.com/en/docs/objects/objectfind
- www.mql5.com
Hello.
Thank you for watching my questions.
I'm very sorry, but instead of being upset, guide me.
Forum on trading, automated trading systems and testing trading strategies
How can I search for indicators and other elements in this forum?
Vladimir Karputov, 2021.08.09 06:54
How can I search for indicators and other elements in this forum
You return from OnTick. Then the objects are drawn. Don't read them prior.
Hello Dear William Roeder .
Thank You .
Can you explain more?
Thank You very much .
I have been working on the method for a long time to solve the problem.
Objects are drawn asynchronously.
https://www.mql5.com/en/docs/objects/objectcreate
Return Value
The function returns true if the command has been successfully added to the queue of the specified chart, or false otherwise. If an object has already been created, an attempt is made to change its coordinates.
You have to make sure the object exists on the chart before attempting to read its properties.
https://www.mql5.com/en/docs/objects/objectfind
Hello Dear Alexandre Borela Thank you very much .
I used the ObjectFind function, but it returns the output of function 0, which means the object is created. But it returns the angle to 0 again.
I had not read the reference. However, with your explanation, new knowledge was added to me. But my problem is still unresolved.
I did not solve my problem using the ObjectFind function because ObjectFind returns a value of 0, which means that the object is built.
But it returns the angle to zero again.
my dear friend .
If you do not have the power to help me and you can not help me, please do not make fun of me and shut your mouth and just watch.
my dear friend .
If you do not have the power to help me and you can not help me, please do not make fun of me and shut your mouth and just watch.
I am not your friend in any way.
Your issue has been discussed numerous time on this forum, so my posts. You are not only unable to use the search engine but also to stay civil, using a lot of fake "dear".
You don't deserve any help.
I am not your friend in any way.
Your issue has been discussed numerous time on this forum, so my posts. You are not only unable to use the search engine but also to stay civil, using a lot of fake "dear".
You don't deserve any help.
If you could help, you would help me instead of making fun of me.
You're not God who determines deserve.
by
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I Have big problem .
Description for Up picture :
One in that OnInt ().
If there is a real problem with my code, thank you for Tell me what code to use to fix my problem.