---
id: "M:cAlgo.API.Internals.IIndicatorsAccessor.IchimokuKinkoHyo(System.Int32,System.Int32,System.Int32)"
kind: "method"
type: "T:cAlgo.API.Internals.IIndicatorsAccessor"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/IIndicatorsAccessor/IchimokuKinkoHyo/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# IIndicatorsAccessor.IchimokuKinkoHyo

Member of [IIndicatorsAccessor](https://help.ctrader.com/ctrader-algo/references/Indicators/IIndicatorsAccessor/index.md).

## IchimokuKinkoHyo(int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods)

Ichimoku Kinko Hyo Indicator is a moving average based trend identification system.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IchimokuKinkoHyo IchimokuKinkoHyo(int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods)
```

Python:

```python
api.Indicators.IchimokuKinkoHyo(tenkanSenPeriods: int, kijunSenPeriods: int, senkouSpanBPeriods: int) -> IchimokuKinkoHyo
```

### Parameters

- `tenkanSenPeriods` (`int`, Python `int`): The period used for the Tenkan Sen
- `kijunSenPeriods` (`int`, Python `int`): The period used for the Kijun Sen
- `senkouSpanBPeriods` (`int`, Python `int`): The period used for the Senkou Span B

### Returns

`IchimokuKinkoHyo` — Ichimoku Kinko Hyo Indicator instance

### Examples

C#:

```csharp
var ichimoku = Indicators.IchimokuKinkoHyo(9, 26, 52);
Print("Tenkan Sen: {0}, Kijun Sen: {1}", ichimoku.TenkanSen.LastValue, ichimoku.KijunSen.LastValue);
Print("Senkou Span A: {0}, Senkou Span B: {1}, Chikou Span: {2}", ichimoku.SenkouSpanA.LastValue, ichimoku.SenkouSpanB.LastValue, ichimoku.ChikouSpan.LastValue);
```

Python:

```python
ichimoku = api.Indicators.IchimokuKinkoHyo(9, 26, 52)
api.Print(f"Tenkan Sen: {ichimoku.TenkanSen.LastValue}, Kijun Sen: {ichimoku.KijunSen.LastValue}")
api.Print(f"Senkou Span A: {ichimoku.SenkouSpanA.LastValue}, Senkou Span B: {ichimoku.SenkouSpanB.LastValue}, Chikou Span: {ichimoku.ChikouSpan.LastValue}")
```

## IchimokuKinkoHyo(Bars bars, int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods)

Ichimoku Kinko Hyo Indicator is a moving average based trend identification system.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IchimokuKinkoHyo IchimokuKinkoHyo(Bars bars, int tenkanSenPeriods, int kijunSenPeriods, int senkouSpanBPeriods)
```

Python:

```python
api.Indicators.IchimokuKinkoHyo(bars: Bars, tenkanSenPeriods: int, kijunSenPeriods: int, senkouSpanBPeriods: int) -> IchimokuKinkoHyo
```

### Parameters

- `bars` (`Bars`, Python `Bars`): The Bars that will be used by indicator, you can pass another timeframe/symbol bars
- `tenkanSenPeriods` (`int`, Python `int`): The period used for the Tenkan Sen
- `kijunSenPeriods` (`int`, Python `int`): The period used for the Kijun Sen
- `senkouSpanBPeriods` (`int`, Python `int`): The period used for the Senkou Span B

### Returns

`IchimokuKinkoHyo` — Ichimoku Kinko Hyo Indicator instance

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyIchimoku = Indicators.IchimokuKinkoHyo(dailyBars, 9, 26, 52);
if (dailyIchimoku.TenkanSen.LastValue > dailyIchimoku.KijunSen.LastValue)
    Print("Daily Tenkan Sen is above Kijun Sen");
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyIchimoku = api.Indicators.IchimokuKinkoHyo(dailyBars, 9, 26, 52)
if dailyIchimoku.TenkanSen.LastValue > dailyIchimoku.KijunSen.LastValue:
    api.Print("Daily Tenkan Sen is above Kijun Sen")
```

