# Tenkan

An easy to use strategy with built in DCA and ROE trailing, using the Ichimoku tenkan line.

{% hint style="info" %}
This strategy uses a limited subset of the regularly available strategy settings. \
Only the strategy options shown in the strategy editor for Tenkan have an effect.
{% endhint %}

## Trading behavior

A long position is opened when price is below kumo and tenkan crosses down the candle body. \
If the same happens again at a price at least 'DCA spread' below the previous order, a DCA order is placed.

A short position is opened when price is above kumo and tenkan crosses up the candle body.\
If the same happens again at a price at least 'DCA spread' above the previous order, a DCA order is placed.

To close a trade, the opposite conditions of opening it must happen and ROE scalper must finish trailing.

![Typical trades using the tenkan strategy](https://949519763-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_Rejuz9K0BDQxSQvUH%2F-MXCDKjCRKq08pB8bA5i%2F-MXCHZlmDGzp2RTTfeVz%2Fimage.png?alt=media\&token=c8568852-a087-467b-b484-fdb44dd00b75)

## How to create a tenkan strategy

Use the advanced strategy editor and create a new strategy, select TENKAN as buy and sell method.

## Strategy settings

To use this strategy, these are the settings you can configure:

| Setting               | Description                                                                                                                                                                                                                                        |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Trading limit**     | <p><strong>The amount to invest per buy order.</strong></p><p></p><p>On an USDT-BTC pair, a trading limit of 20 means that every buy order is for 20 USDT. Always make sure that trading limit is set higher than min volume to sell.</p>          |
| **Buy enabled**       | <p><strong>Allow / disallow buy orders</strong></p><p></p><p>When true, the bot is allowed to place buy orders.</p>                                                                                                                                |
| **Sell enabled**      | <p><strong>Allow / disallow sell orders</strong></p><p></p><p>When true, the bot is allowed to place sell orders.</p>                                                                                                                              |
| **ROE**               | <p><strong>Minimum ROE target</strong></p><p></p><p>This is the minimum ROE target for any position.</p>                                                                                                                                           |
| **ROE limit**         | <p><strong>Trailing range in ROE</strong></p><p></p><p>When trailing, this setting defines how large the trailing range is. <br><br>When set to 5 and trailing starts when 10% ROE is reached, the initial trailing stop will be set at ROE 5.</p> |
| **DCA spread**        | <p><strong>Minimum price difference between orders in the same direction</strong></p><p></p><p>A DCA spread of 1 makes sure that orders are never placed closer than 1% apart.</p>                                                                 |
| **Maker fees**        | <p><strong>Option to use post only orders</strong> </p><p></p><p>With this option enabled, orders get placed as post only.</p>                                                                                                                     |
| **Market close**      | <p><strong>Use market orders to close positions</strong></p><p></p><p>When false, close orders are placed as limit orders. When true, close orders are placed as market orders.</p>                                                                |
| **Period**            | <p><strong>Sets the chart interval</strong></p><p></p><p>The default period is 15. Make sure to only use <a href="../../../how-to-work-with-gunbot/basic-workings/period#supported-period-values">supported period values.</a></p>                 |
| **Candles length**    | **Number of candles requested from the exchange**                                                                                                                                                                                                  |
| **Tenkan period**     | **Number of candles used to calculate tenkan**                                                                                                                                                                                                     |
| **Kijun period**      | **Number of candles used to calculate kijun**                                                                                                                                                                                                      |
| **Senkouspan period** | **Number of candles used to calculate senkou span**                                                                                                                                                                                                |
| **Displacement**      | **Number of candles to displace kumo**                                                                                                                                                                                                             |
