# Technical Studies Reference

### Kijun-Sen

This study calculates and displays the Kijun-Sen study for the data specified by the Input Data High and Input Data Low Inputs.

Let $$X^{(High)}$$ and $$X^{(Low)}$$ be random variables denotining Input Data High and Input Data Low, respectively, and let $$X_t^{(High)}$$ and $$X_t^{(Low)}$$ be their respective values at Index $$t$$. Let the Kijun-Sen Length be denoted as $$n_{KS}$$.

We denote the maximum value of $$X_t^{(High)}$$ and the minimum value of $$X_t^{(Low)}$$ over a moving window of $$n_{KS}$$ chart bars terminating at Index $$t$$ as $$\max_t(X^{(High)},n_{KS})$$ and $$\min_t(X^{(Low)},n_{KS})$$, respectively. These are computed for $$t \geq n_{KS} - 1$$ as follows.

$$\max_t\left(X^{(High)},n_{KS}\right) = \max\left\{X_{t - n_{KS} + 1}^{(High)},...,X_t^{(High)}\right\}$$

$$\min_t\left(X^{(Low)},n_{KS}\right) = \min\left\{X_{t - n_{KS} + 1}^{(Low)},...,X_t^{(Low)}\right\}$$

We denote the value of Kijun-Sen at Index $$t$$ for the given Inputs as $$KS_t\left(X^{(High)}, X^{(Low)}, n_{KS}\right)$$, and we compute it for $$t \geq n_{KS} - 1$$ as follows.

$$KS_t\left(X^{(High)}, X^{(Low)}, n_{KS}\right) = \displaystyle{\frac{\max_t\left(X^{(High)},n_{KS}\right) + \min_t\left(X^{(Low)},n_{KS}\right)}{2}}$$

This study is mathematically identical to the Tenkan-Sen study. The only difference between the two is that Kijun-Sen has a default length of $$n_{KS} = 26$$, while Tenkan-Sen has a default length of $$n_{TS} = 9$$.