OPEN-SOURCE SCRIPT
Structure From Start – MTF (body-close BOS)

Displays higher-timeframe market structure from a chosen start date using body-close BOS logic, with trend state, guard levels, and BOS markers plotted on your current chart.
Multi-Timeframe Market Structure with Body-Close BOS Logic
This indicator tracks market structure from a chosen start date on a higher-timeframe (HTF) of your choice, then displays it on your current chart for intraday context.
It detects swing highs/lows using pivot logic, confirms Break of Structure (BOS) only when a candle closes beyond the swing level (body-close rule), and maintains the “valid swing” level that invalidates the current bias.
Key Features:
• Works on any HTF you select (e.g., H1, H4) while you operate on lower TFs like M5 or M1.
• Start reading structure from any date/time you choose for focused backtesting or scenario analysis.
• Highlights trend state (long/short/neutral) with background colors.
• Plots the active “guard” level (valid swing high/low) that would flip bias if broken.
• Marks BOS events directly on your trading TF, updating only when the HTF candle closes.
Ideal for combining a clear higher-timeframe bias with lower-timeframe execution, without manually tracking HTF structure changes during live markets.
Multi-Timeframe Market Structure with Body-Close BOS Logic
This indicator tracks market structure from a chosen start date on a higher-timeframe (HTF) of your choice, then displays it on your current chart for intraday context.
It detects swing highs/lows using pivot logic, confirms Break of Structure (BOS) only when a candle closes beyond the swing level (body-close rule), and maintains the “valid swing” level that invalidates the current bias.
Key Features:
• Works on any HTF you select (e.g., H1, H4) while you operate on lower TFs like M5 or M1.
• Start reading structure from any date/time you choose for focused backtesting or scenario analysis.
• Highlights trend state (long/short/neutral) with background colors.
• Plots the active “guard” level (valid swing high/low) that would flip bias if broken.
• Marks BOS events directly on your trading TF, updating only when the HTF candle closes.
Ideal for combining a clear higher-timeframe bias with lower-timeframe execution, without manually tracking HTF structure changes during live markets.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。