State Transition
State Transition is used to find state transitions in columns containing labels. The function checks the current and previous column's labels and reports if the candle's label is changed. The inputs of the function are:
Timeframes: The timeframe(s) in which the function is applied
Feature Name: The column the function observes to find state transitions; it has to be a column with labels.
Output Column Name(s): The name given to the column that stores the result
Example
Assuming that you have a column named rsi_state that reports the RSI state (normal, overbought, and oversold) for each candle, you can use State Transition the way shown below to find state transitions in the column.

As is seen, the function tracks the labels in rsi_state column and reports state transitions.
