OPEN-SOURCE SCRIPT
Moving Average OMSF

📘 Moving Average OMSF – Educational Implementation
Overview
This indicator serves as an official educational template for the Objective Market Structure Framework (OMSF). While the underlying library is a powerful engine for developers, this script is designed to help traders visualize how the framework "feels" in real-time market conditions.

The goal is to bridge the gap between raw price action and systematic structural analysis. By using this tool, you can observe how the OMSF identifies structural balance points without the lag or noise of traditional moving averages.
Why this is different
Most Moving Averages (EMA, SMA) only process closing prices. The OMSF MA processes structural lifecycle (Running Peaks → Confirmed Levels). Context over Price: It focuses on the "Midpoint of Structure."
Parameters & Inputs
Timeframe. Sets the structural context. Use it to map HTF structures (e.g., 1H) directly onto your trading timeframe (e.g., 5m).
Structural Period. Defines the "depth" of the analysis. Higher values focus on major swings; lower values capture local intraday moves.
OMSF MA Color. The central baseline, representing the "Fair Value" (Midpoint) of the current structural lifecycle.
Upper/Lower Bands. Smoothed structural boundaries acting as dynamic S/R zones derived from finalized omsf.High/Low levels.
Show Baseline EMA. Toggle to compare the structural OMSF logic against a standard price-based EMA.
How to use this for Education
How to use this for Education
• Structural Feel: Watch how the bands expand during trending phases and contract during compressions.
• MTF Dynamics: Set the indicator to a higher timeframe (HTF). Observe how LTF price action reacts with high precision to the structural boundaries of the higher-level flow.
• Comparison: Use the EMA toggle. Notice how the OMSF MA remains "stable" during choppy sideways moves where standard EMAs often produce false signals.
• Template for Devs: Check the source code to see how to import the OMSF Library and handle the 19-variable output tuple.
Structural Flow vs. Filtered Signal
The OMSF Moving Average offers a unique perspective by balancing raw data and filtered logic:
Disclaimer This is an analytical framework designed for professional traders. It provides the structure; you provide the strategy. This is not financial advice.
I release my frameworks to the community to validate the OMSF logic against real-world volatility. This live feedback loop is essential for refining the code and ensuring the framework remains resilient and reliable across all market conditions.
Made in Germany 🇩🇪 with a focus on logic and precision.
Overview
This indicator serves as an official educational template for the Objective Market Structure Framework (OMSF). While the underlying library is a powerful engine for developers, this script is designed to help traders visualize how the framework "feels" in real-time market conditions.

The goal is to bridge the gap between raw price action and systematic structural analysis. By using this tool, you can observe how the OMSF identifies structural balance points without the lag or noise of traditional moving averages.
Why this is different
Most Moving Averages (EMA, SMA) only process closing prices. The OMSF MA processes structural lifecycle (Running Peaks → Confirmed Levels). Context over Price: It focuses on the "Midpoint of Structure."
Parameters & Inputs
Timeframe. Sets the structural context. Use it to map HTF structures (e.g., 1H) directly onto your trading timeframe (e.g., 5m).
Structural Period. Defines the "depth" of the analysis. Higher values focus on major swings; lower values capture local intraday moves.
OMSF MA Color. The central baseline, representing the "Fair Value" (Midpoint) of the current structural lifecycle.
Upper/Lower Bands. Smoothed structural boundaries acting as dynamic S/R zones derived from finalized omsf.High/Low levels.
Show Baseline EMA. Toggle to compare the structural OMSF logic against a standard price-based EMA.
How to use this for Education
How to use this for Education
• Structural Feel: Watch how the bands expand during trending phases and contract during compressions.
• MTF Dynamics: Set the indicator to a higher timeframe (HTF). Observe how LTF price action reacts with high precision to the structural boundaries of the higher-level flow.
• Comparison: Use the EMA toggle. Notice how the OMSF MA remains "stable" during choppy sideways moves where standard EMAs often produce false signals.
• Template for Devs: Check the source code to see how to import the OMSF Library and handle the 19-variable output tuple.
Structural Flow vs. Filtered Signal
The OMSF Moving Average offers a unique perspective by balancing raw data and filtered logic:
- Holistic Structure: While the core StrHigh/Low levels act as strict filters to identify only high-conviction structural extremes, the omsf.ma integrates the OMSF Raw Structure (omsfHigh/Low).
- The Benefit: It ignores minor price noise (fluctuations without structural meaning) while remaining sensitive to the actual development of the move.
Disclaimer This is an analytical framework designed for professional traders. It provides the structure; you provide the strategy. This is not financial advice.
I release my frameworks to the community to validate the OMSF logic against real-world volatility. This live feedback loop is essential for refining the code and ensuring the framework remains resilient and reliable across all market conditions.
Made in Germany 🇩🇪 with a focus on logic and precision.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.