Errors, bugs, questions - page 2916
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
Got it! As the names are identical, the smallest first digit in the number is selected and it is the 4th object, then as the first 2 objects have a 4th digit, the smallest digit following the 4th of the first 2 objects is selected.
Yes, only inverse conversion can't be done. Assigning random numbers to objects is like calling the language MQL831 instead of MQL5.
In my opinion, in order to process the objects in the order of their creation manually, you have to either number the names after all of them or during the process of each of them creation and then run the robot to process and write the array keeping the numeration of creation in the names. This will allow correct sorting of objects from the list in the future through theObjectName function and others like it, in the orderof objects creation manually.
In my opinion, in order to process objects in order of creation manually, we need to either number the names after all objects have been created or in the process of each object's creation and then turn on the robot, that it processes and writes an array keeping the numbering of creation in the names. In future, this will allow to properly select objects from the list, both through the ObjectName function and others like it, in the orderof objects created manually.
Why not use ObjectGetInteger() with property identifier OBJPROP_CREATETIME?
What prevents me from using ObjectGetInteger() with property ID OBJPROP_CREATETIME ?
The idea is that I want everything I draw on the chart to be written in the name of objects, including the numbering of object creation in the list, in the order of creation, timeframe, Fibo level type and Fibo level type serial number, at the same time writing arrays with these level data in the order they are listed. Then we will create criteria for trade actions by these names and data in arrays corresponding to the order of creation of these objects.
So far, I've found this way: we create 4 Fibo objects In the list, the order of creation is saved, number them for processing according to the order of creation Run the Expert Advisor
We go through the objects in the order of their creation with change of names to keep the order of creation in the list, and write characteristics and levels of objects in arrays in the order of their creation as in the list. The first pass of code, keeping the order of creation of objects in the list modifies the names, supplementing with characteristics for orientation when creating criteria and keeping the order in the list of objects for correct further selection by going through the order in case of change of object coordinates, and correct overwriting of arrays in the order of first filling.
So far, the logic is saved on the first pass)))
The point is that I want everything I draw on the chart to be written in the name of objects, including the numbering of objects in the list, in order of creation, timeframe, Fibo level type and Fibo level type serial number, in parallel writing arrays with data of these levels in the order of objects in the list of graphic objects. Then we will create criteria for trade actions by these names, and data in arrays corresponding to the order of creation of these objects.
So far, I've found the following method. We create 4 Fibo objects in the list in the order of their creation, number them for processing according to the order of creation Launch Expert Advisor
The first pass of the code, keeping the order of objects in the list, modifies the names of objects to keep the order of their creation and record characteristics and levels in arrays in the order of creation of these objects as in the list. The first pass of code, keeping the order of objects in the list, modifies the names, adding characteristics for orientation when creating criteria and keeping the order in the object list for correct further selection by trying to change the order of objects coordinates and correctly overwriting arrays in the first pass
While on the first pass, the logic is saved)))
Everything would be much simpler if the objects would have a number in the list of objects which corresponds to the order of creation.
Folks who are aware of this, have taken up sketching using CCanvas class. And I have discovered some totally unknown problem. Filled background rectangles and circles are drawn fine, but all my attempts to draw a circle have ended in complete failure. There are three variants of circles in the code and no result of drawing them on the chart. Does this code work for circles or is there something missing?
It always worked.
Yes, everything works.
Try this script. It draws in three algorithms Circle, CircleAA, and CircleWu circles of random radii, colour, and transparency
CircleAA is better not to use - it's a very slow algorithm.
It would be a lot easier if the objects were tacitly assigned a number in the list of objects corresponding to the order in which they were created.
The point is that I want everything I draw on the chart to be written in the name of objects, including the numbering of objects in the list, in order of creation, timeframe, type of Fibo level and Fibo level type serial number, in parallel writing arrays with data of these levels in the order of objects in the list of graphic objects. Then we will create criteria for trade actions by these names, and data in arrays corresponding to the order of creation of these objects.
So far, I have found the following method. We create 4 Fibo objects in the list in the order of their creation, number them for processing according to the order of creation Run the Expert Advisor
The first pass of the code, keeping the order of objects in the list, modifies the names of objects to keep the order of their creation and record characteristics and levels in arrays in the order of creation of these objects as in the list. The first pass of code, keeping the order of objects in the list, modifies the names, adding characteristics for orientation when creating criteria and keeping the order in the object list for correct further selection by trying to change the order of object coordinates and correctly overwrite the arrays in the first pass
While on the first pass, the logic is preserved)))
Your question is solved on "once". It is enough to write renaming of created objects.
Now each time you create a graphical object on the chart with an Expert Advisor installed, the object names will have the time of creation instead of a random number in the name and will be sorted strictly in the sequence of creation.
Your question is solved in a snap. It is enough to write renaming of created objects.
Now each time you create a graphical object on the chart with the Expert Advisor installed, the object names, instead of a random number, in the name will have the time of creation and will be sorted strictly in the sequence of creation.
Thanks a lot!!! Not fully read about these Event Handling Functions, simplify the life of a proger)
Isn't the object creation time (use as ulong type) OBJPROP_CREATETIME an identifier of the object creation order?
Yes! Thank you!!!