MQL4参考 图表操作 ChartTimeOnDropped

ChartTimeOnDropped

Returns the time coordinate corresponding to the chart point the Expert Advisor or script has been dropped to.

datetime  ChartTimeOnDropped();

Return Value

Value of datetime type.

Example:

   datetime t=ChartTimeOnDropped();
   Print("Script was dropped on the "+t);

See also

ChartXOnDropped(), ChartYOnDropped()