Skip to main content

Ichimoku

With the Ichimoku indicator, you can configure Gunbot to execute trades when a full candle crosses either the Kumo, Tenkan-Sen, or Kijun-Sen lines. It's possible to customize which line is used for buy and/or sell orders.

The Ichimoku indicator, also known as the Ichimoku Kinko Hyo, is a popular trading tool that provides multiple pieces of information on a single chart. This technical analysis tool was developed by Japanese journalist Goichi Hosoda in the 1930s and is designed to offer a comprehensive view of potential price action.

The Ichimoku indicator consists of five lines, each providing different data points, including support and resistance levels, trend direction, and momentum strength. The five lines are as follows: Tenkan-Sen (conversion line), Kijun-Sen (base line), Chikou Span (lagging line), Senkou Span A (leading span A), and Senkou Span B (leading span B). Overall, the Ichimoku indicator aims to help traders identify trends, momentum, and potential areas for entry and exit points.

How to work with it

Buy method conditions

A buy order is allowed when the current candle goes completely below Kumo, Tenkan-Sen or Kijun-Sen. You can configure which line should be used for buy orders.

Sell method conditions

A sell order is allowed when the current candle goes completely above Kumo, Tenkan-Sen or Kijun-Sen. You can configure which line should be used for sell orders.

Using an additional momentum indicator is recommended.

info

Gain protection is optional for this strategy. Be aware that this can lead to sell orders below your break-even point.

Strategy settings for Ichimoku

Buy settings

LabelConfig ParameterDefault ValueDetailed Description
Buy enabledBUY_ENABLEDtrueThis setting allows you to enable or disable the capability to place buy or long orders. When enabled, buy orders can be executed based on your strategy settings.
Kumo buyKUMO_BUYfalseThis setting determines whether to use the Kumo (Cloud) as a criterion for buying. If enabled, buy orders may be triggered when price conditions related to the Kumo are met.
Kijun buyKIJUN_BUYfalseThis setting enables buying based on the Kijun-sen (Baseline). When active, it triggers buy orders according to the conditions set by the Kijun-sen indicator.
Tenkan buyTENKAN_BUYtrueEnables buying based on the Tenkan-sen (Conversion Line). This setting, when enabled, will trigger buy orders according to the price actions relative to the Tenkan-sen.

Sell settings

LabelConfig ParameterDefault ValueDetailed Description
Sell enabledSELL_ENABLEDtrueAllows you to enable or disable the ability to place sell or short orders. When this is enabled, it can execute sell orders as dictated by your strategy parameters.
Kumo sellKUMO_SELLfalseEnables selling based on the Kumo (Cloud). If this is activated, sell orders may be placed when specific conditions regarding the Kumo are satisfied.
Tenkan sellTENKAN_SELLtrueThis setting allows selling based on the Tenkan-sen (Conversion Line). When enabled, it triggers sell orders based on price movements relative to the Tenkan-sen.
Kijun sellKIJUN_SELLfalseEnables selling based on the Kijun-sen (Baseline). When active, it allows sell orders to be triggered according to the Kijun-sen’s indicators.
GainGAIN1Set a target gain above break-even, expressed as a percentage. You can adjust this setting to define the profit target for each sell order. For example, setting this to 1% aims for a gain of 1% above the cost price.
Count sellCOUNT_SELL9999This setting disables a trading pair after reaching a specified number of sell orders. It's used to limit exposure or to automate trading strategies by capping the number of sell orders for a particular pair.

Indicators

LabelConfig ParameterDefault ValueDetailed Description
PeriodPERIOD15 minutesThis setting determines the period of the candlesticks used in indicator calculations, specified in minutes. Choose a period supported by your exchange to ensure accurate data for your trading strategy.
Tenkan periodTENKAN_PERIOD9Defines the number of candles to calculate the Tenkan-sen. Adjusting this value changes the sensitivity of the Tenkan-sen, affecting how it responds to price changes.
Kijun periodKIJUN_PERIOD26Sets the duration, in candles, for calculating the Kijun-sen. A longer period may provide more stability in the baseline, while a shorter period makes it more responsive to price movements.
Senkouspan periodSENKOUSPAN_PERIOD52Determines the number of candles used to calculate the Senkou Span. Modifying this value can affect the lag and responsiveness of the cloud component in your strategy.
DisplacementDISPLACEMENT26This setting specifies the displacement for the Chikou Span and Kumo, in terms of the number of candles. It essentially shifts these indicators forward or backward to adjust their alignment with current market conditions.

Overview of effects on different order types

Config ParameterAffected Order TypesNot Affected Order Types
Buy EnabledStrategy buy, DCA buy, RT buy, RT buybackStrategy sell, Stop limit, Close, RT sell
Sell EnabledStrategy sell, Stop limit, RT sellStrategy buy, RT buy, RT buyback, Close, DCA buy
GainStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
PeriodStrategy sell, Strategy buy, DCA buy (when using an indicator)RT buy, RT buyback, RT sell, Close, Stop limit
Tenkan PeriodStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Kijun PeriodStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Senkouspan PeriodStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
DisplacementStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Kumo BuyStrategy buyStrategy sell, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
Tenkan BuyStrategy buyStrategy sell, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
Kijun BuyStrategy buyStrategy sell, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
Kumo SellStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
Tenkan SellStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
Kijun SellStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit