# Technical Studies Reference

### Q Stick

This study calculates and displays the Q Stick study.

Let $$C$$ and $$O$$ be random variables denoting the Closing and Opening Prices, respectively, and let their respective values at Index $$i$$ be $$C_i$$ and $$O_i$$. Let the Length Input be denoted as $$n$$. Then we denote Q Stick at Index $$t$$ for the given Input as $$QStick_t(n)$$, and we compute it for $$t \geq n - 1$$ as follows.

$$QStick_t(n) = \displaystyle{\frac{1}{n}\sum_{i = t - n + 1}^t (C_i - O_i)}$$

For an explanation of the Sigma ($$\Sigma$$) notation for summation, refer to our description here.