LHAMA Oscillator Suite [LTS]

The LHAMA Oscillator Suite is a collection of normalized, LHAMA-based oscillators built to make the behavior of the Low-High Adaptive Moving Average (LHAMA) easier to read in a separate pane. It translates LHAMA’s slope, distance, volatility buffer, intraday drift, and regime bias into six clear visual signals, with optional multi-timeframe overlays so you can compare your current chart to a higher-timeframe context at a glance.
Core concept
LHAMA is a custom adaptive moving average that responds more strongly when price is making new local highs or lows, and can optionally weight those moves by volume. The oscillator suite takes that adaptive line and derives several normalized measures (mostly scaled to ±100) around a zero line so you can:
- See when LHAMA is meaningfully trending vs flat
- Measure how far price has moved away from LHAMA in ATR terms
- Track how far the LHAMA trend has “stretched” into its ATR cloud buffer
- Follow intraday drift from a daily reset point
- Visualize simple bull / bear / neutral states as a background regime filter
Available Oscillators
- LHAMA Slope
Measures the angle of the LHAMA in ATR-normalized degrees, capped and rescaled to approximately –100 to +100. Positive values show rising LHAMA, negative values show falling LHAMA. The “Entry Slope (deg)” input defines when the line is considered strongly bullish or bearish. This is the primary trend-impulse oscillator in the suite. - Price Distance to LHAMA
Shows how far price is from the LHAMA in units of ATR, normalized to ±100. Large positive values indicate price trading well above the LHAMA; large negative values show price trading well below it. This is useful for spotting extensions away from the adaptive mean (for both continuation and mean-reversion style analysis). - LHAMA Cloud Buffer
Tracks the dynamic distance between LHAMA and its ATR-based “cloud boundary,” with the sign reflecting which side of the trend you are on. As the trend extends, the buffer widens; when LHAMA flips through the buffer, the sign changes. This makes it easy to see how mature or compressed a trend’s protective buffer is. - Trend Regime Bias
A smoothed, sigmoid transform of the LHAMA angle, converted to a bias between –100 and +100. Rather than focusing on raw slope, this oscillator highlights the underlying regime: values near +100 represent a strong bullish bias, values near –100 a strong bearish bias, and values near zero a more neutral environment. - Session Drift from Reset
Measures how far LHAMA has drifted from its value at a daily reset time (e.g., a futures session close), scaled by ATR and the square root of bars since reset. The result is a Z-score–style oscillator capped to ±100, which helps you gauge how extended the current session is relative to typical intraday movement. - LHAMA State (Background)
A simple state signal that classifies LHAMA as bullish, bearish, or neutral based on the angle and your slope threshold. It is typically used to tint the background of the oscillator pane, and can also be plotted from a higher-timeframe for regime stacking.
Multi-timeframe overlays
Each oscillator can optionally display a second, higher-timeframe (“MTF”) version drawn on the same scale. You can choose a custom MTF resolution (e.g., 15m while trading 1m), and independently toggle which MTF oscillators to show:
- MTF LHAMA Slope
- MTF Price Distance
- MTF Cloud Buffer
- MTF Regime Bias
- MTF Session Drift
- MTF LHAMA State background
This allows you to, for example, trade from the lower timeframe while aligning entries with the higher-timeframe trend regime or mean-reversion context.
Visualization and coloring
All oscillators are plotted around a zero line, with optional reference bands at ±80 to highlight stronger conditions.
Each oscillator can use one of three coloring styles:
Gradient: color intensity increases with the magnitude of the signal.
Flat: fixed bull / bear colors above and below zero.
Single Color: a single color regardless of sign, for minimalistic views.
A separate bull and bear color is available for each oscillator, and you can smooth most outputs with an EMA to reduce noise while keeping the raw calculations intact. You can also choose to disable to shaded area of each line for further visual differentiation.
Key settings
- LHAMA settings: length, optional volume weighting, and a daily reset session to realign the moving average after overnight gaps.
- Volatility settings: ATR length for both slope normalization and distance calculations.
- Cloud settings: ATR multiplier used to define the LHAMA cloud buffer.
- Appearance: optional smoothing length, zero-line color, ±80 bands toggle, and all per-oscillator color choices.
- MTF overlays: higher-timeframe resolution and per-oscillator toggles for the MTF pack.
The script does not use lookahead settings in its data requests and does not draw future values; all signals are computed using information available at each bar in real time, in line with TradingView’s execution model and publishing guidelines.
Skrip jemputan sahaja
Hanya pengguna disahkan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Keizinan selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi LHAMA-Trading secara terus.
TradingView TIDAK menyarankan pembayaran atau penggunaan skrip kecuali anda mempercayai sepenuhnya penulis dan memahami bagaimana ia berfungsi. Anda juga boleh menjumpai alternatif sumber terbuka dan percuma yang lain di dalam skrip komuniti kami.
Arahan penulis
Skip the drama, ride the LHAMA!
Penafian
Skrip jemputan sahaja
Hanya pengguna disahkan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Keizinan selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi LHAMA-Trading secara terus.
TradingView TIDAK menyarankan pembayaran atau penggunaan skrip kecuali anda mempercayai sepenuhnya penulis dan memahami bagaimana ia berfungsi. Anda juga boleh menjumpai alternatif sumber terbuka dan percuma yang lain di dalam skrip komuniti kami.
Arahan penulis
Skip the drama, ride the LHAMA!