Type/to search
Built-in Functions
Structures
Built-in Variables and Constants
EXCHANGE
ORDER_STATE
ORDER_TYPE
ORDER_CONDITION_TYPE
POSITION_DIRECTION
ORDER_OFFSET
PERIOD
PERIOD_M1
PERIOD_M3
PERIOD_M5
PERIOD_M15
PERIOD_M30
PERIOD_H1
PERIOD_H2
PERIOD_H4
PERIOD_H6
PERIOD_H12
PERIOD_D1
PERIOD_D3
PERIOD_W1
LOG_TYPE
Conventions
Exchanges

K-line period constants. Each value is the period in seconds, used as the period argument of exchange.GetRecords and similar functions. For other periods pass the number of seconds directly (for example 60 * 10 for 10 minutes).

ConstantValueMeaning
PERIOD_M1601-minute K-line period
PERIOD_M31803-minute K-line period
PERIOD_M53005-minute K-line period
PERIOD_M1590015-minute K-line period
PERIOD_M30180030-minute K-line period
PERIOD_H136001-hour K-line period
PERIOD_H272002-hour K-line period
PERIOD_H4144004-hour K-line period
PERIOD_H6216006-hour K-line period
PERIOD_H124320012-hour K-line period
PERIOD_D1864001-day K-line period
PERIOD_D32592003-day K-line period
PERIOD_W16048001-week K-line period

In this sectionRead the whole section

NameDescription
PERIOD_M11-minute K-line period; the value is 60.
PERIOD_M33-minute K-line period; the value is 180.
PERIOD_M55-minute K-line period; the value is 300.
PERIOD_M1515-minute K-line period; the value is 900.
PERIOD_M3030-minute K-line period; the value is 1800.
PERIOD_H11-hour K-line period; the value is 3600.
PERIOD_H22-hour K-line period; the value is 7200.
PERIOD_H44-hour K-line period; the value is 14400.
PERIOD_H66-hour K-line period; the value is 21600.
PERIOD_H1212-hour K-line period; the value is 43200.
PERIOD_D11-day K-line period; the value is 86400.
PERIOD_D33-day K-line period; the value is 259200.
PERIOD_W11-week K-line period; the value is 604800.