MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator Introduction to MQL5: How to write simple Expert Advisor and... ONEpair Balance ProfitLoss ControlONEpair Balance ProfitLoss Control Try product
ONEpair Balance ProfitLoss Control
Author: LeAnsaty
Parabolic_HTF Indicator
Parabolic_HTF
Author: GODZILLA
Subscribe to signal
Robot
64.82%, 4 940.24 USD
Screenshot
EURUSD, H4
Real

Time

Gets the element of the Time timeseries by index.

datetime  Time(
   int    ind         // index
   )

Parameters

ind

[in]  Element index.

Returned value

If successful, it returns the numerical value of the Time timeseries element with specified index, otherwise it returns EMPTY_VALUE.

Note

The EMPTY_VALUE is returned in two cases:

1.Timeseries is not used (the corresponding bit is not set).

2. Element index is out of range.


Updated: 2011.07.26