PROTECTED SOURCE SCRIPT
Güncellendi Boring w/Prev Legin

This TradingView Pine Script highlights “boring” candles that follow a specific “legin” candle, based on strict supply/demand zone and price action rules inspired by your trading strategy.
A candle will be highlighted if it meets all of these:
The current candle is “boring” (low volatility, small range).
A candle will be highlighted if it meets all of these:
The current candle is “boring” (low volatility, small range).
- The previous candle was a “legin” (high volatility, big move).
- The previous “legin” was much larger than the current “boring” candle (by TR or size).
- The boring candle has both upper and lower wicks (not a marubozu).
- The legin candle had a strong body (≥70% of its size) and a wick on its close side (showing strong price rejection).
Sürüm Notları
This TradingView Pine Script highlights “boring” candles that follow a specific “legin” candle, based on strict supply/demand zone and price action rules inspired by your trading strategy.A candle will be highlighted if it meets all of these:
The current candle is “boring” (low volatility, small range).
- The previous candle was a “legin” (high volatility, big move).
- The previous “legin” was much larger than the current “boring” candle (by TR or size).
- The boring candle has at least upper or lower wicks.
- The legin candle had a strong body (≥70% of its size) and a wick on its close side (showing strong price rejection).
Sürüm Notları
This TradingView Pine Script highlights “boring” candles that follow a specific “legin” candle, based on strict supply/demand zone and price action rules inspired by your trading strategy.A candle will be highlighted if it meets all of these:
The current candle is “boring” (TR < ATR and Body Size < Wick Size).
- The previous candle was a “legin” (TR > ATR).
- The previous candle “legin” was much larger than the current “boring” candle (by TR (at least twice the boring) or size(at least 1.5 times boring ).
- The legin candle had a strong body (≥70% of its size) and a wick on its close side (showing strong price rejection).
Sürüm Notları
This TradingView Pine Script highlights “boring” candles that immediately follow a strong “legin” candle, applying strict price action and supply/demand zone criteria.A candle is highlighted only if all these conditions are met:
1. Boring Candle (Current Bar):
- The total wick size (upper + lower) is greater than the body size.
- ATR (Average True Range) is greater than the candle’s TR (True Range).
2. Good Legin Candle (Previous Bar):
- The previous candle’s TR is at least 1.9× the current candle’s TR, or its size (high-low) is at least 1.9× the size of the current boring candle.
- The previous candle’s body is at least 70% of its full range (body dominates, not just a long wick).
- The previous candle has a wick on the close side (showing price rejection).
3. No Visual Gap Rule:
- There must be no “big gap” between the previous legin’s close and the current boring candle’s open.
The allowed gap is adaptive:
- Typically 7% of the legin’s body size.
- But it’s never less than 0.1×ATR and never more than 2×ATR.
This ensures the transition from legin to boring candle is visually continuous, no matter the legin candle’s size.
Sürüm Notları
// Script: Boring with Good Legin (Dynamic Gap)// Version: Pine Script v6
// ---------------------------------------------------------------------------
// This script highlights "boring" candles that follow a strong "good legin" candle,
// applying advanced supply/demand and price action rules.
//
// A candle is highlighted ONLY if all these conditions are met:
//
// 1. Current candle ("boring"):
// - ATR > TR (shows lower volatility than recent average).
//
// 2. Previous candle ("good legin"):
// - TR[1] > ATR[1] (shows a strong move/expansion).
// - Previous legin's TR is at least 1.9× current boring candle's TR,
// OR previous legin's size (high[1]-low[1]) is at least 1.9× boring candle's size.
// - The legin candle's body is at least 70% of its full size (body-dominant).
// - The legin candle has a wick on the close side (upper wick for bullish, lower wick for bearish).
//
// 3. No Visual Gap Rule (Dynamic):
// - There is no significant gap between the legin candle's close and the boring candle's open.
// - The allowed gap adapts to context: it is 7% of the legin body size, but is always at least 0.1×ATR
// and never more than 2×ATR. This ensures visual continuity regardless of legin candle size.
//
// Purpose:
// - Helps traders spot high-probability contraction ("boring") candles immediately after
// a powerful "legin" move, for use in supply/demand zone and advanced price action setups.
// - The dynamic gap makes this indicator robust across all timeframes and instruments.
//
// Add this indicator to your TradingView chart. Highlighted candles in purple meet all these conditions.
//
// ============================================================================
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.