Markov Regime Engine
Traffic-light regime filter from trend, volatility and momentum states.

Overview
Encodes trend, volatility and momentum into a small set of states and estimates, on recent history, how each state tended to behave. The output is a simple long / short / stand-aside light.
How it is built
- 1
Encode each bar into a small set of states from trend, volatility and momentum.
- 2
Count, on recent history, how each state was followed: up, down or flat.
- 3
Turn those frequencies into a simple light: long, short or stand aside.
How to read it
- Probabilities are estimated on a rolling window and change with it.
- A light is a filter, not an order.
Limits
- Frequencies from a short window are noisy; the light describes recent behaviour, not a law.
Data
- Runs on TradingView, on any symbol and timeframe your TradingView plan offers.