Library · Pine Script v6 · Library

SFA_MSB_v1

by genesisgrubio39

SFA_MSB_v1 is a logic-only Pine Script library providing structural flow analytics outputs.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code115
Settings0inputs
LicenceNone stated
Last update10 months ago30 Dec 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new library, select all of the template text and paste. Press Save and give it a name.
  4. 4Publish or import itA library draws nothing. Publish it from the editor, then import its functions in your own scripts.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

SFA_MSB_v1 calculates bullBreak and bearBreak booleans when swing highs or lows are crossed using specified break triggers, with optional ATR confirmation and regime detection. The f_msb_v1 function returns breakLevel float, break bars indices, breakBull bool, isReversal bool, and regimeDirOut int based on core logic, impulse checks, and session filters like RTH or MAIN. It draws nothing and contains no trading signals or stop losses, serving as a core module for institutional structural flow, liquidity, and regime frameworks.

Details

Published by

genesisgrubio39 on GitHub

Type

Library, Pine Script v6

Draws

Library (no plots)

Category

Trend, Support & resistance, SMC / ICT / price action

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Mirpapa Lib Line

by alvinng214
2 stars

This library creates and tracks horizontal lines on the chart. It supports two breach modes: price and close. When a line is breached, it increments a break count up to a maximum value and can finalize the line with a close color. The data structure holds line

Library v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Mirpapa Lib Line

Calculates continuous structural market bias by detecting swing high and low pivots (higher highs, higher lows, lower highs, and lower lows) using configurable left and right bar lookbacks. It assigns weighted values to classified pivots within a rolling windo

Indicator v6 SMC / ICT / price actionTrend
Updated yesterday · MIT GitHub repository of Market Structure Advanced [WavesUnchained]

Lower Labels

by g-moe
3 stars

Lower Labels is a cross-asset market structure indicator that plots candles and swing structure labels for a selected secondary symbol in a separate pane. It calculates pivot highs and pivot lows to classify market structure patterns including higher highs, hi

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Lower Labels

SMC Engine Private

by skipp-dev
1 stars

This Pine Script v6 library serves as an internal engine for Smart Money Concepts (SMC), providing types, tracking, and rendering logic for order blocks, fair value gaps, and market structure. It calculates order block parameters including quality scores, heig

Library v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · None stated GitHub repository of SMC Engine Private
575 stars

This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult

Indicator v5 Support & resistanceTrend
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Equal Highs and Lows with Screener

This Pine Script indicator plots a ZigZag on the price chart. It identifies reversal points when price moves more than a set percentage from the last pivot. The script calculates forecasts using zigzag data and labels detected geometric patterns including harm

Indicator v4 TrendSupport & resistance

More libraries

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers