Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 823
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
Thank you, but the problem hasn't gone away.
Can anyone suggest whether these expressions are equivalent or not?
Can you guys tell me why 4202 gives out (Object does not exist). Correct, it does not exist, it must be created, but it me (does not exist)! What can be done with it? Or I screwed up somewhere else?
I hastily tried your version as a script, replacing the time and marks and checking for objects, but it did not return errors.
Maybe, to save the trouble, try to form arrow objects considering the new MQL4 language?
Here is the "body" for the script that creates the arrow-objects you specified, taking into account the new language (the times and marks are arbitrary, instead of SignalBarsTime, Hi2, SignalBarsTime, Lo2, which you know only so far):
P./S.: Corrected the line in my post above now, replacing ANCHOR_BOTTOM with ANCHOR_TOP:
Thank you very much, that's very helpful. I'd like to find out how to name objects automatically, because I have to redraw them every time. Maybe you can tell me where to find out about it and where to look?
Yes. The individual name can be spelled in different ways.
For example, the function for forming individual names for objects can look like this:
And in the body of the program it can be output like this (having written beforehand in conditions what will serve as a prefix):
... string nameobj=nameNi(prefixX,timeX);
Further, for a newly created object it could look like this
Now I can't think where exactly you can look it up in help or search the site, but the tutorial reminded me of this page: https://book.mql4.com/ru/functions/strings
There you can find information and a code sample. Just use TimeToString instead of TimeToStr. However, it can be of great help when mastering the new MQL4 language. Also in combination with the help for the updated language.
Add the time to the name of the object.
Yes. The individual name can be spelled in different ways.
For example, the function for forming individual names for objects can look like this:
And in the body of the program it can be output like this (having written beforehand in conditions what will serve as a prefix):
Further, for a newly created object it could look like this
Now I can't think where exactly you can look it up in help or search the site, but the tutorial reminded me of this page: https://book.mql4.com/ru/functions/strings
There you can find information and a code sample. Just use TimeToString instead of TimeToStr. However, it can be of great help when mastering the new MQL4 language. Also in combination with the help for the updated language.
Hi, darling ;) Imagine, how long I've been writing code for different objects and I've never thought of making a separate function to create names - I've always done it directly in the code. I've been working too hard. Thanks for the tip. And everywhere else, where relevant, for compactness, I write the functions, but here something tormented all the time.
ZS. There you have said hello Lyov ;).
Artyom, you're back on the site!!! Hooray!!! Insanely glad to see you here!!!! )))
I'll go and see hello from Lyova now! )))