How to get the creation time of an object

Jajaofopobo

Trader
Sep 6, 2021
72
7
24
I'm trying to get the time an object was formed on the chart and i tried using the ObjectGetInteger(0,ObjectName, OBJPROP_TIME) but it is giving me the time of the middle text of the object not the time the object was created/appeared on the chart. Is there a way i can go around it? please help
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,473
1,586
144
Odesa
www.earnforex.com
I'm trying to get the time an object was formed on the chart and i tried using the ObjectGetInteger(0,ObjectName, OBJPROP_TIME) but it is giving me the time of the middle text of the object not the time the object was created/appeared on the chart. Is there a way i can go around it? please help
Which object type are you applying this to?
The property returns the time on the chart where the object is located. It cannot return the time when the object was created. For example, if you put an arrow on the chart at the bar of January 1, 2024, it will be returning that date for that object, not today's date. There is no way around it.
 
  • 👍
Reactions: Jajaofopobo