Linear Regression on two intervals. Analysis is on the high and low relative to an SMA for the specific number of minutes look back. Importantly the analysis is locked in no matter your visual timeframe. The number of minutes determines the analysis not the number of candles.