# Technical Studies Reference

### Previous Bar Close

This study displays the previous value of the data specified by the Input Data Input. Despite the name of the study, the setting of this Input need not be the Close Price.

Let $$X$$ be a random variable denoting the Input Data, and let $$X_t$$ be the value of the Input Data at Index $$t$$. Then we denote the Previous Bar Close at Index $$t$$ for the given Input as $$PrevBar_t(X)$$, and we compute it for $$t \geq 0$$ as follows.

$$PrevBar_t(X) = \left\{\begin{matrix} X_0 & t = 0 \\ X_{t - 1} & t >0 \end{matrix}\right.$$