Skip to content
All library documents

Rolling Impulse Swings for Murrey Math Support and Resistance Levels

Article TradingView scripts

Summary

This indicator searches a rolling window for the largest directional impulse and uses the selected swing to draw Murrey Math-style price levels. The default window is 250 bars, with a user-selectable bullish or bearish direction. The code imports a maximum-subarray function to identify the impulse in a series derived from changes in the product of each bar’s high and low; this is a distinctive construction and the document does not explain its interpretation in detail.

After identifying an impulse, the script draws its base line and a mirrored line controlled by an inversion rate, then divides the impulse’s price range into eighths. It also extends the displayed levels below and above the base range, from -2/8 through 10/8, and allows line styles, colors, labels, and extensions to be adjusted. This is a charting aid rather than a tested trading system: no entries, exits, or performance results are given. The source is truncated, and the method’s usefulness as support or resistance is not demonstrated.

Key ideas

  • The indicator searches a configurable rolling window for a large directional impulse using a maximum-subarray function.
  • It draws levels at eighth-based fractions of the selected impulse range, including extensions outside that range.
  • A direction setting chooses bullish or bearish impulse orientation, while an inversion rate controls a mirrored reference line.
  • The document provides no trade rules or evidence that the plotted levels predict price behavior.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.