---
id: "P:cAlgo.API.Indicators.IchimokuKinkoHyo.TenkanSen"
kind: "property"
type: "T:cAlgo.API.Indicators.IchimokuKinkoHyo"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/IchimokuKinkoHyo/TenkanSen/"
---

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

# IchimokuKinkoHyo.TenkanSen

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

## TenkanSen

It is primarily used as a signal line and a minor support-resistance line.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IndicatorDataSeries TenkanSen {get; set;}
```

Python:

```python
ichimokuKinkoHyo.TenkanSen: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — 

### Examples

C#:

```csharp
var ichimokuKinkoHyo = Indicators.IchimokuKinkoHyo(9, 26, 52);
if (ichimokuKinkoHyo.TenkanSen.Last(1) > ichimokuKinkoHyo.KijunSen.Last(1) && ichimokuKinkoHyo.TenkanSen.Last(2) <= ichimokuKinkoHyo.KijunSen.Last(2))
    Print("TenkanSen crossed above KijunSen: {0}", ichimokuKinkoHyo.TenkanSen.Last(1));
```

Python:

```python
ichimokuKinkoHyo = api.Indicators.IchimokuKinkoHyo(9, 26, 52)
if ichimokuKinkoHyo.TenkanSen.Last(1) > ichimokuKinkoHyo.KijunSen.Last(1) and ichimokuKinkoHyo.TenkanSen.Last(2) <= ichimokuKinkoHyo.KijunSen.Last(2):
    api.Print(f"TenkanSen crossed above KijunSen: {ichimokuKinkoHyo.TenkanSen.Last(1)}")
```

