OPEN-SOURCE SCRIPT
Cycle Alignment [Manaslu]

Cycle Alignment [Manaslu] is the foundational Congruence component of the ET Massif Framework research suite.
1. Description
Manaslu is a dual adaptive band-pass filter (BPF) derived from concepts popularized by John Ehlers. A band-pass filter is a signal-processing technique designed to emphasize oscillations occurring within a selected range of cycle lengths while suppressing both slower trend components and higher-frequency noise. In market data, this allows cyclical behavior to be isolated and observed more clearly, revealing structure that may otherwise be obscured by broader trends or short-term fluctuations.
What distinguishes Manaslu is that it does not focus on a single filtered signal. Instead, it constructs two independent adaptive band-pass filters, each with its own dynamically estimated cycle period. The objective is to evaluate phase congruence, divergence, and synchronization between two inputs (indicators).
Manaslu is not intended to identify dominant market cycles, perform spectral decomposition, or estimate cycle periodicity for forecasting purposes. Its primary role is to study the phase relationship between two adaptive cyclical structures rather than the characteristics of either structure in isolation.
2. Construct
A. Adaptive Period Estimation
For each input (series), an adaptive cycle period is estimated :
A two-bar difference operation detrends each source before filtering. This removes the slower trend component and allows the filter to focus on cyclical behavior.
Pine Script®
C. Band-Pass Filter
The adaptive period is applied to a second-order Ehlers-style band-pass filter.
Pine Script®
Each band-pass output is normalized independently against its recent peak amplitude. This allows two inputs with different scales, volatility profiles, or magnitudes to be compared directly.
The examples shown in this script description uses an oscillator as the primary input and a moving average as the comparator input for the band-pass filter. These inputs are for illustrative purposes only and are not part of the script itself.
3, Rationale
Band-pass filters are applied primarily to extract cyclic behavior and reduce the impact of random noise and fluctuations. By attenuating both very slow and very fast movements, a band-pass filter can produce a cleaner representation of the market's oscillatory structure. In the context of Manaslu, the objective is not to forecast future cycles but to create a consistent framework for comparing indicator on indicator phase congruence.
Potential inputs include moving averages, RSI variants, oscillators, denoised trend indicators, adaptive filters, and other cyclical or transformed data series.
Picture Danny (John Travolta) and Sandy (Olivia Newton-John) on the dance floor in Grease. Each dance to their own beat and rhythm. When both move in rhythm, the performance appears coordinated and confident. When one speeds up, slows down, or turns against the other, the performance becomes less coherent — even though both are still moving. Manaslu attempts to visualize that relationship between two indicators. The focus is on how congruently they move together, not on the individual cycles themselves.
4. Interpretation
A. In-Phase
Both cycles rise and fall together. This suggests broad agreement between the selected inputs. Indicators exhibiting strong phase congruence may warrant greater confidence.
B. Approximately 180° Out of Phase
The cycles move in opposite directions. Both structures remain active but opposing forces are present. This condition may indicate reduced directional efficiency, internal conflict, or a tendency for moves to taper as opposing influences interact.
C. One Stable, One Erratic
One cycle exhibits coherent structure while the other appears unstable or erratic. Users should determine which input carries greater analytical importance — which is closer to price, which is driving decision-making, and whether the erratic structure is background noise or beginning to influence price behavior. Context matters more than visual appearance alone.

D. Both Erratic
Neither cycle displays clear structure. Phase relationships become unreliable. Confidence in the underlying indicators should generally be reduced until more coherent structure emerges.
General Caveats
Band-pass filters are sensitive to changing market conditions. Phase relationships can shift rapidly during transitions between trend and range environments. Temporary synchronization does not imply causation, prediction, or future persistence. Manaslu should be viewed as a relationship analysis tool rather than a standalone signal generator.
Like all filters, a band-pass filter represents a mathematical model rather than a direct observation of market behaviour. Its output depends on the selected parameters and may change as market conditions evolve. Consequently, the filtered waveform should be interpreted as a representation of cyclical structure rather than proof of an underlying market cycle.
Default Settings
Bandwidth: 0.025
Minimum cycle length: 40
Primary Input: HL2
Comparator Input: Close
To use another indicator's output as an input, add that indicator to your chart, then in the Settings → Inputs tab select the relevant plot from the input dropdown.
日本語概要 (Japanese Summary)
Manaslu は、ET Massif Framework における Congruence(整合性) 研究コンポーネントです。 独立した2つの適応型サイクル構造を比較し、その位相の同調や乖離、同期状態の観測を目的としています。 なお、本指標は将来のサイクル予測やドミナントサイクルの検出を目的とするものではありません。 移動平均線、RSI、オシレーター、各種フィルターといった異なる指標間の関係性を評価し、2つの構造がどの程度協調して動いているかを観察するための分析ツールです。
中文概要(Chinese Summary)
Manaslu 是 ET Massif Framework 中的 Congruence(整合性) 研究元件。 本指標旨在比較兩個獨立的自適應週期結構,並觀察其相位的一致、不一致以及同步狀態。
須注意的是,本指標並非用於未來週期預測,亦非用於偵測主導週期(Dominant Cycle)。其主要用途在於評估不同指標之間的關聯性,例如:均線、RSI、震盪指標以及各類濾波器等。
它並非針對週期本身進行常規分析,而是一款用以觀察兩個結構之間協調運作程度的分析工具。
Disclaimer:
This script is a research tool for market structure analysis and educational purposes only. It does not constitute financial advice. Trading involves risk.
1. Description
Manaslu is a dual adaptive band-pass filter (BPF) derived from concepts popularized by John Ehlers. A band-pass filter is a signal-processing technique designed to emphasize oscillations occurring within a selected range of cycle lengths while suppressing both slower trend components and higher-frequency noise. In market data, this allows cyclical behavior to be isolated and observed more clearly, revealing structure that may otherwise be obscured by broader trends or short-term fluctuations.
What distinguishes Manaslu is that it does not focus on a single filtered signal. Instead, it constructs two independent adaptive band-pass filters, each with its own dynamically estimated cycle period. The objective is to evaluate phase congruence, divergence, and synchronization between two inputs (indicators).
Manaslu is not intended to identify dominant market cycles, perform spectral decomposition, or estimate cycle periodicity for forecasting purposes. Its primary role is to study the phase relationship between two adaptive cyclical structures rather than the characteristics of either structure in isolation.
2. Construct
A. Adaptive Period Estimation
For each input (series), an adaptive cycle period is estimated :
- Crossovers between the input and its moving average are identified
- The time distance between successive crossover events is measured as a half-cycle and doubled to estimate the full cycle length
- A user-defined minimum cycle floor is applied to ensure stability
A two-bar difference operation detrends each source before filtering. This removes the slower trend component and allows the filter to focus on cyclical behavior.
C. Band-Pass Filter
The adaptive period is applied to a second-order Ehlers-style band-pass filter.
- Beta — the frequency tuning coefficient that positions the filter around the target cycle period
- Gamma — the bandwidth controller that determines the allowed deviation around the core cycle period using Delta
- Delta — the user-defined bandwidth spread parameter controlling the tolerance window around the primary period
- Alpha — the smoothing and feedback weight derived from Gamma that controls filter decay and stability
Each band-pass output is normalized independently against its recent peak amplitude. This allows two inputs with different scales, volatility profiles, or magnitudes to be compared directly.
3, Rationale
Band-pass filters are applied primarily to extract cyclic behavior and reduce the impact of random noise and fluctuations. By attenuating both very slow and very fast movements, a band-pass filter can produce a cleaner representation of the market's oscillatory structure. In the context of Manaslu, the objective is not to forecast future cycles but to create a consistent framework for comparing indicator on indicator phase congruence.
Potential inputs include moving averages, RSI variants, oscillators, denoised trend indicators, adaptive filters, and other cyclical or transformed data series.
Picture Danny (John Travolta) and Sandy (Olivia Newton-John) on the dance floor in Grease. Each dance to their own beat and rhythm. When both move in rhythm, the performance appears coordinated and confident. When one speeds up, slows down, or turns against the other, the performance becomes less coherent — even though both are still moving. Manaslu attempts to visualize that relationship between two indicators. The focus is on how congruently they move together, not on the individual cycles themselves.
4. Interpretation
A. In-Phase
Both cycles rise and fall together. This suggests broad agreement between the selected inputs. Indicators exhibiting strong phase congruence may warrant greater confidence.
B. Approximately 180° Out of Phase
The cycles move in opposite directions. Both structures remain active but opposing forces are present. This condition may indicate reduced directional efficiency, internal conflict, or a tendency for moves to taper as opposing influences interact.
C. One Stable, One Erratic
One cycle exhibits coherent structure while the other appears unstable or erratic. Users should determine which input carries greater analytical importance — which is closer to price, which is driving decision-making, and whether the erratic structure is background noise or beginning to influence price behavior. Context matters more than visual appearance alone.
D. Both Erratic
Neither cycle displays clear structure. Phase relationships become unreliable. Confidence in the underlying indicators should generally be reduced until more coherent structure emerges.
Band-pass filters are sensitive to changing market conditions. Phase relationships can shift rapidly during transitions between trend and range environments. Temporary synchronization does not imply causation, prediction, or future persistence. Manaslu should be viewed as a relationship analysis tool rather than a standalone signal generator.
Like all filters, a band-pass filter represents a mathematical model rather than a direct observation of market behaviour. Its output depends on the selected parameters and may change as market conditions evolve. Consequently, the filtered waveform should be interpreted as a representation of cyclical structure rather than proof of an underlying market cycle.
Default Settings
Bandwidth: 0.025
Minimum cycle length: 40
Primary Input: HL2
Comparator Input: Close
To use another indicator's output as an input, add that indicator to your chart, then in the Settings → Inputs tab select the relevant plot from the input dropdown.
日本語概要 (Japanese Summary)
Manaslu は、ET Massif Framework における Congruence(整合性) 研究コンポーネントです。 独立した2つの適応型サイクル構造を比較し、その位相の同調や乖離、同期状態の観測を目的としています。 なお、本指標は将来のサイクル予測やドミナントサイクルの検出を目的とするものではありません。 移動平均線、RSI、オシレーター、各種フィルターといった異なる指標間の関係性を評価し、2つの構造がどの程度協調して動いているかを観察するための分析ツールです。
中文概要(Chinese Summary)
Manaslu 是 ET Massif Framework 中的 Congruence(整合性) 研究元件。 本指標旨在比較兩個獨立的自適應週期結構,並觀察其相位的一致、不一致以及同步狀態。
須注意的是,本指標並非用於未來週期預測,亦非用於偵測主導週期(Dominant Cycle)。其主要用途在於評估不同指標之間的關聯性,例如:均線、RSI、震盪指標以及各類濾波器等。
它並非針對週期本身進行常規分析,而是一款用以觀察兩個結構之間協調運作程度的分析工具。
Disclaimer:
This script is a research tool for market structure analysis and educational purposes only. It does not constitute financial advice. Trading involves risk.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。