INVITE-ONLY SCRIPT

BulletProof Improved Trend Regularity Adaptive MA (2027 Update)

36
iTRAMA [Grok Enhanced] — Improved Trend Regularity Adaptive Moving Average

This indicator is an enhanced take on the classic Trend Regularity Adaptive Moving Average (iTRAMA), designed to adapt its responsiveness based on how often price makes new highs or lows over a lookback period.

How it works:
The indicator tracks new highest-highs and lowest-lows within the lookback window to build a "signal" series. This signal is smoothed (using SMA, EMA, or WMA — user selectable) to produce a trend regularity value between 0 and 1. That value is then raised to an adjustable power to create an adaptive coefficient, which controls how quickly the moving average reacts to price. When price is trending strongly and regularly making new extremes, the line adapts faster and hugs price more closely. When price is choppy or ranging, the line smooths out and slows down, helping filter noise.

Inputs:

  • Length — lookback period used for detecting new highs/lows and smoothing the trend regularity factor
  • Source — price source used for the moving average calculation
  • Adaptation Power — controls sensitivity of the adaptive coefficient; higher values make the line more selective about when to speed up
  • Smoothing Type — choose between SMA, EMA, or WMA for calculating trend regularity


Visual cues:
The line is colored green when rising, red when falling, and orange when flat, giving an at-a-glance read on short-term directional bias.

Notes:
This tool is best used as a trend-following overlay in conjunction with other confirmation signals (volume, momentum, or support/resistance context) rather than as a standalone entry/exit trigger. As with any adaptive moving average, it will lag at the very start of new trends and perform best in markets with identifiable directional phases.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.