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

Automated Trading Language Documentation

MQL5.community Payment System MQL5.community Payment System Multi RSI Indicator
Multi RSI
Author: GODZILLA
BBTraderBBTrader Try product
BBTrader
Author: pitaking
Subscribe to signal
ReticoloFX AUD GBP JPY
36.69%, 1 826.70 USD
Screenshot
DJ30, H4
Demo

PeriodSeconds

This function returns number of seconds in a period.

int  PeriodSeconds(
   ENUM_TIMEFRAMES  period=PERIOD_CURRENT      // chart period
   );

Parameters

period=PERIOD_CURRENT

[in]  Value of a chart period from the enumeration ENUM_TIMEFRAMES. If the parameter isn't specified, it returns the number of seconds of the current chart period, at which the program runs.

Return Value

Number of seconds in a selected period.

See also

_Period, Chart timeframes, Date and Time, Visibility of objects


Updated: 2009.11.20