by ifreddyman2014-tech· code credited to Claude AI - Swing Structure (Exact Price Coordinates)
This indicator identifies market structure by calculating pivot highs and lows, detecting breaks of structure (BOS), and highlighting order blocks directly on the price chart.
1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
368 lines of Pine Script v5 from Swing_Structure_Exact_Coordinates.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Swing Structure - Exact Coordinates checks for displacement during breaks using candle body size relative to a simple moving average. Users can configure pivot lookback length, displacement multipliers, order block visibility, mitigation tracking, and line styles. Visual elements include swing high and low labels, dashed BOS lines, and colored order block boxes.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Length
int
5
pivotLength
Требовать Displacement для BOS
bool
true
useDisplacement
Displacement Factor
float
1.5
displacementFactor
Период для среднего тела
int
10
avgBodyPeriod
Показать Order Blocks
bool
true
showOB
Цвет Bullish OB
color
color.new(color.blue, 85)
bullOBColor
Цвет Bearish OB
color
color.new(color.red, 85)
bearOBColor
Показать метки H/L на свингах
bool
true
showPivotLabels
Показать BOS линии
bool
true
showBOSLines
Стиль BOS линии
string
Dashed
bosLineStyle
Удалять отработанные OB
bool
true
enableMitigation
Показать Debug таблицу
bool
false
showDebug
Show all 13 settings
Setting
Type
Default
Variable
Показать горизонтальные линии от Pivots
bool
false
showPivotLines
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.
This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar
The CISD with Fib/Range Extensions and Stats indicator tracks Change in State of Delivery (CISD) level breakouts on the price chart. It detects pullback structures filtered by ATR and volume conditions, then projects future target levels using customizable Fib
This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and
This script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu
This indicator implements a Wyckoff method state machine that tracks accumulation, distribution, markup, and markdown regimes across phases A through E. It identifies structural events including springs, UTADs, SOS, SOW, LPS, LPSY, and climactic bars using ATR
This multi-timeframe indicator detects and visualizes Smart Money Concepts (SMC) and ICT market structures on the price chart. It maps higher-timeframe dealing ranges, premium and discount zones, break of structure (BOS), change of character (CHoCH), order blo