Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/2156-standardlibrary-chart-object-classes-cchartobject-cchartobjectcreatetime.md
T
2026-06-23 21:47:51 +08:00

28 lines
541 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CreateTime
Gets the graphical object creation time.
```
datetime  CreateTime() const
```
Return Value
Creation time of the graphical object attached to the instance of the class. If there is no attached object, it returns 0.
Example:
```
//--- example for CChartObject::CreateTime  
#include <ChartObjects\ChartObject.mqh>  
//---  
void OnStart()  
  {  
   CChartObject object;  
   //--- get create time of chart object   
   datetime create_time=object.CreateTime();  
  }  
```