OPEN-SOURCE SCRIPT
Updated 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.
Release Notes
Major Update: Advanced Structural Selection, Full Parameter Control & OMSF v4 IntegrationOMSF Library v4 & Visual Structure Tools Integration: Upgraded to the latest v4 libraries for advanced structural tracking and integrated vst.colorsuite() for dynamic themes.
Flexible Source Selection (OMSF Source): You can now switch dynamically between three structural source types:
Filtered OMSF High/Low: Utilizes compression thresholds and momentum filtering to isolate high-probability structural levels.
OMSF High/Low: Standard baseline structural levels.
Peak High/Low: Direct raw swing extremes.
Full OMSF Parameter Suite: Exposed fine-grained controls for ATR Period, Compression Threshold, Huge Threshold, Expansion Factor, and the Momentum Filter.
Decoupled MA Lookback: Separated the Moving Average lookback (ma_length) from the underlying structural volatility calculation (period) for greater strategic flexibility.
Color Themes: Added pre-configured visual schemes (omsf_scheme, omsf_light, custom) matching the OMSF ecosystem.
Educational Integration: Direct header references added to the OMSF Learning Space tutorial series.
💡 Recommendation: Check out OMSF Learning Space (Chapters 1 & 2) — an interactive on-chart learning tool. It offers a hands-on way to master how the OMSF structure works and how it differs from traditional Pivot Points.

Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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 PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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 PulseWire. Read more in the Terms of Use.
