Skip to main content

Period

Gunbot supports different values for PERIOD for each exchange.

Supported period values

Period1min3min5min15min30min1h2h3h4h6h8h12h1D3D7D14D1M1Y
Binance
Binance Futures
Bitfinex
Bitmex
Bitstamp
Bittrex
CEX
Coinbase ADV
dYdX
Gunthy
Huobi
Kraken
Kraken Futures
Kucoin
Okex
Okgunbot
Poloniex

PeriodValue in Gunbot (in Minutes)
1min1
3min3
5min5
15min15
30min30
1h60
2h120
3h180
4h240
6h360
8h480
12h720
1D1440
3D4320
7D10080
14D20160
1M43200
1Y525600

Choosing the right period

The PERIOD you set for candlesticks in your strategy is very important, since it has a big effect on indicators like EMA1 and EMA2. This article provides a really quick overview of what the impact of PERIOD is.

A single candlestick is a visualization of the opening, closing, high and low prices within a certain time frame. The most commonly used values for this time frame (PERIOD) are 5 minutes and 15 minutes. The closing price of each candlestick is used for calculating EMA1 and EMA2.

Using shorter candlesticks results in more price movement around EMA, this can be great for trading, but also be risky because you are fixated on short term trends only.

In the image below, you can see the effect on EMA (the green and red lines) when using different candlestick sizes, while keeping other variables the same.