TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int PeriodSeconds ( int  period = PERIOD_CURRENT)

Returns number of seconds in a period.

Parameters
periodValue of a chart period from the enumeration ENUM_TIMEFRAMES: PERIOD_CURRENT - Current timeframe PERIOD_M1 - 1 minute PERIOD_M5 - 5 minutes PERIOD_M15 - 15 minutes PERIOD_M30 - 30 minutes PERIOD_H1 - 1 hour PERIOD_H4 - 4 hours PERIOD_D1 - 1 day PERIOD_W1 - 1 week PERIOD_MN1 - 1 month If the parameter isn't specified, it returns the number of seconds of the current chart period, at which the program runs.
Returns
Number of seconds in a selected period.