OPEN-SOURCE SCRIPT
Prime Strategy Swing

Market Structure (BOS/CHoCH)
Automatically detects Break of Structure and Change of Character on a configurable higher timeframe, plotting labeled structure lines so you always know the current trend bias.
Swing Highs/Lows
Marks HH/LH/LL/HL swing points on a separate configurable timeframe, giving a clean read of higher-timeframe price action independent of your chart's timeframe.
Liquidity Pools
Tracks the last 5 unmitigated swing highs and lows as extending liquidity lines, automatically removing them once price sweeps through.
Order Blocks
Auto-detects bullish and bearish order blocks following a break of structure, with automatic mitigation (deletion) once price returns to tap them.
Premium/Discount Zones with Fibonacci Levels
Draws a dynamic zone from the latest swing structure with 15%/30%/50%/70%/85% fib levels, shading the "premium" (sell) and "discount" (buy) halves so you can visually gauge where price sits in the current range.
Nadaraya-Watson Envelope Filter
An optional smoothed regression filter (Gaussian-weighted) used to confirm entries are occurring at statistical extremes, not just at fib levels.
200 EMA (slope-colored)
A 200-period EMA (length adjustable) that changes color based on its own slope — teal when rising, red when falling — for an instant trend-bias read.
Auto Signals
Optional BUY/BUY PRIME and SELL/SELL PRIME labels that trigger when price taps the 70%/85% zones during a configurable session window (default NY session), with a daily signal cap to avoid overtrading. Alerts included.
Live Dashboard
Top-right panel showing current structure trend, last CHoCH direction, current zone status, and NW filter state at a glance.
Volume Profile (optional)
Builds a volume profile across the most recent swing range with POC (Point of Control) highlighted.
⚠️ This is a discretionary confluence tool, not a standalone signal system — always confirm with your own analysis and risk management.
Automatically detects Break of Structure and Change of Character on a configurable higher timeframe, plotting labeled structure lines so you always know the current trend bias.
Swing Highs/Lows
Marks HH/LH/LL/HL swing points on a separate configurable timeframe, giving a clean read of higher-timeframe price action independent of your chart's timeframe.
Liquidity Pools
Tracks the last 5 unmitigated swing highs and lows as extending liquidity lines, automatically removing them once price sweeps through.
Order Blocks
Auto-detects bullish and bearish order blocks following a break of structure, with automatic mitigation (deletion) once price returns to tap them.
Premium/Discount Zones with Fibonacci Levels
Draws a dynamic zone from the latest swing structure with 15%/30%/50%/70%/85% fib levels, shading the "premium" (sell) and "discount" (buy) halves so you can visually gauge where price sits in the current range.
Nadaraya-Watson Envelope Filter
An optional smoothed regression filter (Gaussian-weighted) used to confirm entries are occurring at statistical extremes, not just at fib levels.
200 EMA (slope-colored)
A 200-period EMA (length adjustable) that changes color based on its own slope — teal when rising, red when falling — for an instant trend-bias read.
Auto Signals
Optional BUY/BUY PRIME and SELL/SELL PRIME labels that trigger when price taps the 70%/85% zones during a configurable session window (default NY session), with a daily signal cap to avoid overtrading. Alerts included.
Live Dashboard
Top-right panel showing current structure trend, last CHoCH direction, current zone status, and NW filter state at a glance.
Volume Profile (optional)
Builds a volume profile across the most recent swing range with POC (Point of Control) highlighted.
⚠️ This is a discretionary confluence tool, not a standalone signal system — always confirm with your own analysis and risk management.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.