Smart NR2-NR20 and Inside Bar (Zeiierman)█ Overview
Smart NR2–NR20 + Inside Bar (Zeiierman) is a compression + breakout scanner that searches for the tightest Narrow Range (NR) condition across NR2…NR20, plus optional Inside Bar detection. When a valid compression forms, it draws a box around the setup, projects the high/low levels forward, and triggers on the first breakout. Optional Trend Filter logic can restrict triggers to trend-aligned breakouts, and optional Exit markers can annotate TP / SL / Time exits after a trigger.
🔘 What It Detects
The Smart Narrow Range (NR2…NR20) script continuously checks NR lengths from 2 to 20 and selects the most extreme contraction (tightest relative range vs history) inside the current Look Back window, highlighting the strongest “compression” zones where expansion risk is building. Optionally, it can also treat an Inside Bar as a valid compression trigger.
█ How It Works
⚪ 1) Compression Scan (NR Ranking Engine)
For each bar, the script evaluates NR2…NR20:
It calculates the N-bar range (highest high − lowest low).
It compares that range to prior N-bar ranges over Look Back.
It ranks candidates by “tightness” and keeps the strongest one.
Key effect:
Higher Look Back = fewer but higher-quality compressions
Lower Look Back = more frequent compressions
⚪ 2) Adaptive Look Back (Static or ADX-Adaptive)
Look Back can be:
Static: fixed comparison window
ADX Adaptive: Look Back dynamically shifts between LB Min and LB Max depending on trend strength
Conceptually:
Higher ADX (strong trend) — shorter Look Back (more responsive)
Lower ADX (chop/range) — longer Look Back (more selective)
█ How to Use
⚪ Bullish Setup
Wait for a tight range to form
Enter on a breakout above the range high
Stop below the opposite side of the range
Target a multiple of the range size or trail with momentum
Optional: wait for a small breakout retest before entering
⚪ Bearish Setup
Wait for a tight range to form
Enter on breakout below the range low
Stop above the opposite side of the range
Target a multiple of the range size or trail with weakness
Optional: enter on breakdown retest
█ Settings
Enable Inside Bar — toggles Inside Bar detection.
Look Back (compare window) — history window used to judge contraction quality.
Enable Trend Filter — gates long/short triggers relative to Trend MA.
Show Trend MA — plots the Trend MA on chart.
Trend MA Mode — Static or NR-Adaptive (length follows Look Back × multiplier).
MA Type — EMA or RMA smoothing for the Trend MA.
NR — MA Multiplier — scales adaptive MA length from Look Back.
Static MA Length — used when Trend MA Mode is Static.
Look Back Mode — Static or ADX Adaptive.
ADX Length / ADX Low / ADX High — controls adaptive response to trend strength.
LB Min / LB Max — bounds for adaptive Look Back range.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
تحليل الشموع اليابانية
Body Close Outside Prior Body - BOS Filtered (MTF) by JKStrategy: MTF Market Structure & Body Breakout (BOS Filtered)
Overview
This Pine Script strategy identifies high-probability trade entries by combining Price Action Engulfing/Breakout patterns with Multi-Timeframe Market Structure (BOS). It is designed for traders who want to follow the "Path of Least Resistance" by ensuring entries on a lower timeframe align with the trend of a higher timeframe.
Key Features
Multi-Timeframe (MTF) Filter: Automatically detects Break of Structure (BOS) on a higher timeframe (e.g., 15m) using Pivot Highs/Lows to determine the overall market bias.
Body-Close Logic: Unlike standard engulfing patterns, this entry triggers specifically when a candle body closes entirely outside the price action of the prior candle's body, signaling strong momentum.
Dynamic Risk Management: * Calculates position size automatically based on a fixed dollar amount ($200 by default) per trade.
Adjustable Stop Loss source (Wick-based for safety or Body-based for tighter entries).
Institutional Safeguards: * Daily Loss/Profit Limits: Stops trading once a specific dollar target or loss threshold is hit for the day.
Loss Streak Protection: Automatically halts trading after a user-defined number of consecutive losses to prevent revenge trading.
Post-Trade Cooldown: Forces a "wait period" (candle count) after an exit before a new entry can be taken.
Session Filtering: Restricts trading to specific hours (e.g., NYSE Open) to avoid low-liquidity chop.
Technical Logic
Market Bias: The script tracks PivotHigh and PivotLow on the BOS Timeframe. A close above the last Pivot High sets a Bullish bias; a close below the last Pivot Low sets a Bearish bias.
The Entry:
Long: Market Bias is Bullish + Prior candle was Bearish + Current candle is Bullish + Current Close is higher than the prior candle's Body High.
Short: Market Bias is Bearish + Prior candle was Bullish + Current candle is Bearish + Current Close is lower than the prior candle's Body Low.
Exit Strategy: Uses a fixed Risk:Reward ratio (Default 1:2). The Stop Loss is dynamically placed at the recent swing (wick) or the candle open.
Visual Dashboard
The strategy includes a real-time HUD (Heads-Up Display) in the top-right corner of the chart, tracking:
Current Trend Direction (MTF)
Current Daily P&L (USD)
Current Loss Streak vs. Maximum allowed.
استراتيجية
Gap DetectorGap Detector — Multi-Timeframe Price Gap Scanner
Automatically detects and visualizes all price gaps across any timeframe — Daily, Weekly, Monthly, or Intraday.
📊 What It Does
This indicator identifies true price gaps where the current candle opens completely above (gap up) or below (gap down) the previous candle's range, with no price overlap between them.
Gap Up (Bullish): Current candle's low > Previous candle's high
Gap Down (Bearish): Current candle's high < Previous candle's low
✨ Key Features
✅ Auto-Detects Chart Timeframe — Works on any timeframe without manual selection (1min, 5min, 1H, 4H, Daily, Weekly, Monthly)
✅ Visual Gap Boxes — Green boxes for gap ups, red boxes for gap downs, drawn exactly across the gap zone
✅ Gap Size Labels — Shows gap percentage on each box for quick assessment
✅ Customizable Filters — Set minimum and maximum gap size % to filter noise
✅ Summary Statistics Table — Live count of bull gaps, bear gaps, and total gaps detected
✅ Pine Screener Compatible — Built-in signals for bulk scanning stocks with gaps
✅ Clean & Lightweight — No repainting, no lag, works on all markets (stocks, forex, crypto, indices)
🎯 Use Cases
Day/Swing Trading: Identify gap fill opportunities on intraday and daily charts
Earnings Plays: Track post-earnings gaps on daily/weekly timeframes
Breakout Confirmation: Gaps often signal strong momentum or trend continuation
Support/Resistance Zones: Unfilled gaps act as magnets for price action
Multi-Timeframe Analysis: Scan 4H gaps, daily gaps, or weekly gaps depending on your strategy
🛠️ Settings
Visibility Controls:
Toggle bull gaps, bear gaps, labels, and summary table on/off independently
Filter Settings:
Min Gap Size (%) — Ignore gaps smaller than this threshold (default 0.1%)
Max Gap Size (%) — Ignore abnormally large gaps like circuit breaker moves (default 5%)
Style Customization:
Gap box colors, border colors, and table position (Top Right, Top Left, Bottom Right, Bottom Left)
📈 How to Use with Pine Screener (TradingView Pro+)
Add indicator to any chart and set your desired timeframe (e.g., 4H for intraday gaps)
Open Pine Screener (bottom toolbar)
Select Gap Detector indicator
Choose Bull Gap Signal or Bear Gap Signal
Set condition: Above → 0
Click Scan to find all stocks with gaps on current candle
Screener Outputs:
Bull Gap Signal = 1 → Gap up formed on current candle
Bear Gap Signal = 1 → Gap down formed on current candle
Signal = 0 → No gap on current candle
📌 Notes
Gaps are detected based on previous candle close to current candle open — not wicks
Works on all markets and instruments where gaps occur (stocks, forex, crypto, futures, indices)
Signal plots appear in a separate pane below the chart for clean visualization
Gap count resets when you reload the chart or change timeframes
💡 Pro Tips
4H Timeframe: Great for intraday gap trading on volatile stocks
Daily Timeframe: Classic overnight gaps — ideal for gap fill strategies
Weekly/Monthly Timeframe: Macro trend analysis and major support/resistance zones
Combine with volume or momentum indicators for higher-probability setups
Created for traders who need fast, reliable gap detection without manual scanning.
مؤشر
HeikenAshi Trend LiteThe HeikenAshi Trend Lite indicator displays double-smoothed Heikin-Ashi candles on the current timeframe as a trend overlay. By applying two passes of EMA smoothing to Heikin-Ashi calculations, it filters out market noise to reveal clean trend direction.
█ USAGE
Reading the Trend
The indicator draws a filled ribbon representing the smoothed Heikin-Ashi body. When the smoothed HA close is above the smoothed HA open, the ribbon is bullish. When below, it is bearish. The body uses a semi-transparent fill, while the wick range is drawn with a lighter shade, creating a layered visual.
Color changes represent confirmed trend shifts after double smoothing has absorbed enough price data. This filtering eliminates most false signals from choppy conditions.
█ DETAILS
The calculation follows three steps:
1 — EMA smoothing of raw OHLC values
2 — Heikin-Ashi transformation of the smoothed values
3 — Second EMA pass on the resulting HA values
This double-smoothing approach reduces noise effectively while maintaining less lag than equivalent single-pass smoothing with very long periods.
█ SETTINGS
• EMA Length: Period for the first EMA smoothing pass (default: 10).
• Smoothing Length: Period for the second EMA pass (default: 10).
• Bullish / Bearish Color: Customizable trend colors.
• Show Candles: Display traditional HA candle bodies alongside the ribbon.
This indicator uses synthetic Heikin-Ashi values that do not represent actual traded prices. It does not constitute financial advice. Past performance does not guarantee future results.
مؤشر
FVG Mapper + FilterHTF FVG Mapper — Multi-Timeframe Imbalance Projection
For some reason its not showing on the chart above, this site is a buggy mess sometimes, the UI is just the worst.
This script detects Fair Value Gaps (FVGs) on a selectable higher timeframe (HTF) and projects them onto lower timeframes (such as 1-minute) as extended zones. While commonly used with the 4-hour chart, the timeframe is fully customizable, allowing traders to map imbalances from any higher timeframe onto their execution chart.
What the Script Does
Scans a user-defined higher timeframe using the classic 3-candle FVG model
Identifies bullish and bearish imbalances (true displacement gaps)
Allows full HTF selection (e.g., 1H, 4H, Daily, etc.)
Filters out insignificant gaps using HTF ATR (optional size filter)
Draws zones on the lower timeframe chart and extends them right
Deletes zones once mitigated (if enabled)
Limits the total number of active zones to reduce clutter
Optionally removes zones far from current price
Allows wick-based or body-based mitigation detection
How Fair Value Gaps Are Defined
Bullish FVG → Low of candle 3 is greater than High of candle 1
Bearish FVG → High of candle 3 is lower than Low of candle 1
This reflects displacement and temporary imbalance in auction delivery.
Important: FVGs are confirmed only after the selected HTF candle closes to prevent repainting.
Customisation Options
Select the higher timeframe to scan (not restricted to 4H)
Set maximum number of visible zones
Enable/disable automatic deletion after mitigation
Enable minimum size filtering using HTF ATR
Adjust minimum gap size sensitivity
Enable proximity filtering (show only zones near current price)
Toggle wick-based vs body-based fill detection
Adjust visual styling (colors, transparency)
Intended Usage
This indicator is designed for traders who:
Trade lower timeframes but anchor bias to higher-timeframe structure
Use HTF imbalances as reaction or continuation zones
Look for confluence between liquidity sweeps and HTF inefficiencies
Want structured multi-timeframe context without visual overload
Typical Workflow
Select a higher timeframe aligned with your bias (e.g., 4H or Daily)
Identify active imbalances on your execution timeframe
Wait for price to approach an HTF FVG
Drop to lower timeframe structure for confirmation
Execute with defined invalidation beyond the zone
Important Context
This indicator does not generate buy/sell signals
It does not predict direction
It visualizes higher-timeframe inefficiencies only
Trade management and bias determination remain trader-dependent
It is not a mechanical strategy.
It is a multi-timeframe structural context tool designed to improve execution precision within higher-timeframe imbalance zones.
مؤشر
Bitcoin CME GAP [SAKANE]This indicator detects and visualizes the weekend gap in CME Bitcoin futures (BTC1!), defined as the difference between the Friday settlement price and the Monday opening price. It stores the final CME close, waits for trading to resume, and then measures the gap. If the gap exceeds the user-defined threshold, it is displayed as a box on the chart. The box remains active until price returns to the gap’s closing level or a specified number of bars has elapsed. During the CME weekend closure, a horizontal reference line marks where CME last settled, providing a clear anchor for price positioning.
A key feature is that the gap is displayed correctly even on spot or perpetual BTC charts. Because futures prices often trade at a premium or discount relative to spot markets, plotting CME levels directly would misplace the gap. This script calculates the price difference between CME and the chart instrument and shifts the gap vertically into the chart’s price space while preserving its true size. As a result, traders can see the actual gap location where market participants are likely to react, without distortion from futures basis differences.
Gap-fill detection is performed using CME futures prices themselves. The script evaluates whether the CME high or low has reached the prior CME close level that defines the gap. This ensures that once the gap is filled in the futures market, it is considered filled everywhere. Because of this CME-based validation combined with spot-space visualization, users can determine whether a gap has closed without switching to the BTC1! chart.
CME gaps are widely observed by market participants because price frequently revisits and fills these discontinuities. By highlighting both the location and the fill status of the gap, this indicator helps track the gap-closure tendency and provides insight into short-term liquidity imbalances, derivatives-driven dislocations, and the market’s process of price repair.
مؤشر
Inside DayThe Inside Day Background indicator automatically highlights Inside Day candles directly on the chart using a customizable background color.
An Inside Day occurs when the current candle’s high is lower than the previous candle’s high, and the current low is higher than the previous candle’s low — signaling price consolidation and range compression.
This condition often precedes volatility expansion and breakout opportunities.
How It Works
The script scans each bar and checks the following condition:
Current High < Previous High
Current Low > Previous Low
When both are true:
The chart background is highlighted
No shapes or labels are plotted (clean chart visualization)
An alert condition is triggered (optional)
Trading Use Cases
Inside Days are commonly used for:
Breakout strategies
Range expansion setups
Volatility contraction signals
Bull Flag / consolidation continuation patterns
Opening range continuation plays
Traders often watch for a break above the Inside Day high (bullish) or below the low (bearish).
Features
Clean background highlight only (no chart clutter)
Fully customizable background color
Toggle on/off visibility
Built-in alert condition
Works on all timeframes
Overlay on price chart
Notes
Consecutive Inside Days will continue highlighting until range expansion occurs.
Best combined with volume, VWAP, or range breakout strategies.
Effective for both day trading and swing trading environments.
مؤشر
FxShare - CC ReversalBased on candle count and reverse.
You can set how many candles (and their body shape) you count in a row before the retracement and market overstretch happens. It also has an EMA filter if you wish for even stronger but more rare signals. Nothing but classic statistics and probabilities..
مؤشر
Inside Candle Positional StrategyIntroduction
This strategy implements a structured Inside Candle breakout model designed to capture expansion moves following short-term price compression.
An inside candle represents a temporary contraction in volatility, where the entire range of the current bar is contained within the previous bar. The preceding bar becomes the Mother Candle, and its range defines the potential breakout boundaries.
The model focuses purely on price structure and predefined risk parameters rather than trend-following overlays or momentum filters.
Core Logic and Structure
Inside Candle Detection
An inside candle is defined as:
Current High < Previous High
Current Low > Previous Low
When this condition occurs, the previous bar is marked as the Mother Candle. Only one breakout attempt is allowed per identified structure to prevent repeated entries within the same consolidation phase.
Trade Entry Rules
Entries are executed at market on confirmed bar close.
Long Position
Close > Mother Candle High
No active position
Short Position
Close < Mother Candle Low
No active position
This ensures breakout confirmation rather than anticipatory positioning.
Risk Management Framework
Risk control is fully rule-based and determined at the moment of entry.
For each trade:
Initial Stop Loss = Opposite boundary of the Mother Candle
Risk = Distance between entry price and initial stop
Target = Entry ± (Risk × Risk-Reward Ratio)
The Risk-Reward Ratio is user configurable.
Only one position is active at any time (pyramiding disabled).
Optional ATR-Based Trailing Stop
An optional trailing mechanism may be enabled:
Trailing Stop updates on every confirmed bar.
Calculated using ATR × Multiplier.
Moves only in the direction of profit.
Never worsens beyond the initial stop level.
If disabled, exits rely solely on the fixed stop and target.
Execution Model
All signals are calculated on confirmed bar closes.
Entries are market orders.
Stop and target levels are evaluated using bar OHLC values.
No repainting logic is used.
No intrabar order sequencing assumptions are applied.
Backtest performance may differ from live execution due to slippage, spread, liquidity, and market conditions.
Visual Components
Inside candles are highlighted (default: yellow).
Entry, Initial Stop, Trailing Stop (if enabled), and Target levels are displayed using line-break formatting for clarity.
Designed to maintain structural visibility without excessive chart clutter.
Strategy Defaults
Initial Capital: $1000
Commission: 0.05%
Position Size: 1 (fixed quantity)
Pyramiding: Disabled
These defaults can be adjusted in the Strategy Properties panel.
Intended Application
This strategy is suited for studying breakout behavior after short-term consolidation phases.
Performance characteristics will vary depending on instrument volatility, timeframe, and market regime.
It is presented as a structural breakout framework and should be tested and adapted according to individual risk tolerance and trading objectives.
Disclaimer
Trading involves significant risk. This script is provided for educational and research purposes only and does not constitute financial advice. Users are responsible for evaluating its suitability for their own trading decisions.
استراتيجية
Borna ChecklistBorna Checklist
Borna Checklist is a manual decision-support tool designed to help traders structure their bias during the London session.
The indicator displays a simple checklist on the chart where users manually define:
higher-timeframe trend,
London open location,
London behavior (BOS or pullback),
and M15 candle confirmation.
Based on the selected inputs, the checklist summarizes a directional bias (LONG / SHORT / WAIT).
This bias is not a trade signal and does not execute or suggest entries. It is intended to support discipline, consistency, and manual analysis.
Borna Checklist can be used alongside session-based indicators such as Asia High/Low, but it functions independently and does not calculate or plot price levels.
مؤشر
15 Consecutive Heikin Ashi Candles AlertThis indicator detects 15 consecutive Heikin Ashi candles in the same direction (bullish or bearish) and alerts you the moment the 15th candle closes.
Key Features:
Accurate Heikin Ashi detection using ticker.heikinashi (works on any chart type)
Configurable streak length (default 15) and Heikin Ashi timeframe (default 3 minutes)
Triggers alerts only once when the streak reaches exactly 15 (no spam on longer streaks)
Live visual streak counter (histogram) — green for bullish, red for bearish
Optional overlay of clean Heikin Ashi candles on your chart
Real-time table showing current streak direction and count
Background flash + large on-chart labels when the 15-candle streak is confirmed
Clean, lightweight code with zero repainting
Best Use:
Ideal on 3-minute charts for scalping or momentum trading
Great for catching strong trends early in crypto, forex, or stocks
Set alerts for "15 Bullish HA Candles" or "15 Bearish HA Candles"
Settings:
Streak Length → Change alert threshold
Overlay Heikin Ashi Candles → Toggle HA display
Heikin Ashi Timeframe → Use "3" for 3-minute HA data
مؤشر
Inside/Outside Bar Highlight在价格行为学中,内包棒外包棒在某些情景下往往是信号,预示趋势可能延续或者反转。
编写此指标是为了各位交易员们更方便快速地识别信号。
默认设置为内包棒为透明,外包棒颜色加深。
In price action, the inside and outside bars often act as signals in certain scenarios, indicating a potential continuation or reversal of a trend.
This indicator was created to help traders quickly and easily identify signals.
The default setting is that the inside bar is transparent, and the outside bar is darker.
مؤشر
Paradigm Shift: Delivery StateDescription by way of Example using weekly and 4h readings. THIS INDICATOR IS NOT MADE TO OPERATE BELOW A 4H chart. It is looking for Weekly and 4h price delivery that an ICT trader would call messy. Spikes well below OB but which then turn in the logical direction. A series of FVG that are never returned to or themselves are printed over but then turn support or resistance against the run through. So it is designed to indicate the overall level of stress on algorithm delivery. When you see a significantly higher stress level on the 4h trading is still doable but be careful of sloppy delivery. When you see a significant stress level on the weekly then be very very careful on the lower levels and consider staying out for the time being. The state of price delivery can be seen by anyone. But I have incorporated readings of the global bond market and currency correlations as confluent evidence of the reading for the state of price delivery. The term "grinder" is my word for algorithmic delivery. Contrary to ICT I believe that buying and selling pressure are real determinants of market movement up or down. However, I believe that that pressure is pushed through the algo like meat through a meat grinder to ensure a fair and equitable and efficient delivery of that pressure. So price always moves according to algorithmic principles, but those principles are driven by external pressure. The greater the pressure the more the algo stutters and gaps in its effort to smooth out an efficient delivery of price. This Indicator is looking for those stressors.
The Weekly State: "Symmetrical" / Stress: 2%
* What it means: At the highest level, the "New Paradigm" has not yet broken the system. A 2% stress level is effectively "Background Noise." This indicates that the global bond market and currency correlations are currently holding their historical norms.
* The Price Delivery: Because it is Symmetrical, the "Grinder" is in an efficient mode. Weekly expansions are likely being met with orderly retracements. There are no "Ominous" breakaway gaps on the weekly timeframe yet.
* The Dalio View: We are still in the "Accumulation" or "Buffering" phase of the cycle. The systemic heart attack is not happening this week.
2. The 4h State: "Saturated" / Stress: 44%
* What it means: While the Weekly is calm, the 4h is heating up. A 44% stress level means that local bond volatility (the US10Y proxy) is higher than it has been 44% of the time over the last year. This is a significant "Step-Up" in pressure.
* The Price Delivery: Because it is Saturated, the 4h "Grinder" is starting to struggle with the "meat" being fed into it.
* The Result: You will likely see "Deep Stop Runs" and "PD Array Overtravel." Price might not just tap an Order Block; it might blast 15 pips through it before reversing.
* Delivery is "Unclean": The 4h Fair Value Gaps might only get partially filled, or price might leave "jagged" wicks that make lower-timeframe entries frustrating.
3. How to Trade This Divergence (Practical Logic)
When the Higher Timeframe (HTF) is stable (2%) but the Lower Timeframe (LTF) is stressed (44%), it creates a specific environment:
* The "Opaque Trap": You might see a perfect ICT Silver Bullet setup on the 15m, but because the 4h is "Saturated," the setup will likely be messier than usual. You should expect "Judas Swings" to be more violent and "FVG Retracements" to be less precise.
* Confidence in the HTF: Since the Weekly is at 2%, you can trust the Overall Direction. If the Weekly is bullish, any "Saturated" mess on the 4h is likely just an aggressive re-accumulation rather than a systemic reversal.
* The "Stay Out" Warning: You only need to worry when that 4h Stress (44%) begins to "infect" the Weekly. If the Weekly Stress moves from 2% to 20% to 50%, that is your signal that the Paradigm is Shifting and the "Grinder" is about to start teleporting price.
مؤشر
PinBar Finder by cryptokazancevEnglish description:
This script helps traders identify high-probability reversal points based on price action, specifically Pin Bars — a well-known candlestick pattern used in technical analysis.
What does the indicator do?
It detects bullish and bearish Pin Bars using a custom method for wick-to-body ratio and filters based on historical volatility (pseudo-ATR). A label appears on the chart with detailed info on wick and body size when a valid signal is found.
How does it work?
- The indicator calculates a pseudo-ATR based on the percentage range of the last 1000 candles.
- It then multiplies this value by a user-defined factor (default: 1.1) to set a dynamic threshold for wick size.
- Bullish Pin Bars are detected when the lower wick is at least 1.1 times the body and greater than the dynamic ATR.
- Bearish Pin Bars are detected when the upper wick meets similar conditions.
- Signals are shown using chart labels with exact wick/body percentages.
- Alerts are included for automation or integration with trading bots.
How to use it?
- Add the indicator to any timeframe and asset.
- Use the alerts to notify you when a Pin Bar appears.
- Ideal for traders who use candlestick reversal strategies or combine price action with other confluence tools.
- You can adjust the wick length multiplier to fit the volatility of the instrument.
What makes it original?
Unlike many public scripts that use fixed ratios, this script adapts wick length detection based on recent volatility (pseudo-ATR logic). This makes it more dynamic and suitable for different markets and timeframes.
Описание на русском:
Этот скрипт помогает трейдерам находить точки потенциального разворота на основе прайс-экшена, а именно — свечного паттерна «Пин-бар». Индикатор автоматически определяет бычьи и медвежьи пин-бары с учетом адаптивных параметров волатильности.
Что делает индикатор?
Скрипт ищет свечи, у которых тень в несколько раз превышает тело (пин-бары), и отображает на графике точную информацию о длине тела и тени. Это полезно для трейдеров, использующих свечные сигналы на разворот.
Как работает?
- Рассчитывается псевдо-ATR по 1000 последним свечам на основе процентного диапазона high-low.
- Этот ATR умножается на заданный множитель (по умолчанию: 1.1), чтобы динамически задать минимальную длину тени.
- Бычий пин-бар определяется, когда нижняя тень больше тела в 1.1 раза и превышает ATR.
- Медвежий пин-бар — аналогично, но для верхней тени.
- Индикатор отображает лейблы с точными значениями тела и тени.
- Реализованы условия для оповещений (alerts).
Как использовать?
- Добавьте индикатор на нужный график и таймфрейм.
- Настройте alerts, чтобы не пропустить сигналы.
- Особенно полезен для трейдеров, работающих со свечным анализом, стратегиями разворота, а также в сочетании с другими индикаторами.
В чем оригинальность?
В отличие от многих скриптов, использующих фиксированные параметры, здесь используется динамический расчет длины тени на основе волатильности. Это делает скрипт адаптивным к рынку и таймфрейму.
مؤشر
Donchian Channel + 200 MA Trading IndicatorThis indicator combines the Donchian Channel with a 200-period moving average to identify strong trending opportunities with momentum confirmation.
Signal Interpretation:
🟢 Green Triangle (Bullish Signal)
Appears when price breaks above the upper channel AND is trading above the 200 MA
Indicates strong bullish momentum
Suggests potential long entry opportunity
🔴 Red Triangle (Bearish Signal)
Appears when price breaks below the lower channel AND is trading below the 200 MA
Indicates strong bearish momentum
Suggests potential short entry opportunity
Trading Style:
Designed for right-side entry (trend-following after confirmation)
The 200 MA filter helps avoid false signals by ensuring alignment with the broader trend
Best suited for swing trading and capturing sustained moves
Key Components:
Green Upper Band: Resistance/breakout level
Red Lower Band: Support/breakdown level
Orange Line: 200-period moving average (trend filter)
Blue Middle Line: Channel midpoint (optional display)
مؤشر
مؤشر
Volatility & Probability by Hour/DayVolatility & Probability by Hour/Day
Analyzes historical candle data to find statistically significant time-based patterns. Tracks green candle probability, volatility, and average returns broken down by hour (UTC), day of week, and their combinations.
What It Shows:
Hourly Table: P(Green), edge, volatility, and average return for each hour (00:00-23:00 UTC)
Day of Week Table: Same metrics aggregated by day (Sun-Sat)
Top Combinations: The 5 best bullish and 5 best bearish day+hour slots ranked by edge
Key Metrics:
P(Grn): Historical probability the candle closes green
Edge: Deviation from 50% (how tradeable the bias is)
Vol%: Average candle range as percentage of price
N: Sample size
Use Cases:
Identify optimal entry windows with statistical edge
Avoid low-edge, high-volatility periods (noise)
Find specific day+hour combinations with compounding edges
Time trades around recurring market patterns
Notes:
All times in UTC
Current period highlighted with ►
Best results on liquid assets with sufficient history
Edges are historical and not guaranteed to persist
مؤشر
Wick Ranges (GG)Simple data box that tracks candle wick largest, smallest, and average sizes by price within specified time ranges. Displays labels for upper and lower wicks of current candle.
Helpful if your entry model is entering on the close/open of momentum candles.
-GG
مؤشر
Broadening Formation + Failed 2 CandlesThis indicator is a technical analysis tool designed to identify potential trend reversals at the boundaries of Broadening Formations (BF). It combines structural pivot analysis with the "Failed 2" candle pattern (a variation of an outside-bar or stop-run reversal) to highlight zones of technical alignment.
How it Works
1. Structural Detection (Broadening Formations)
The script identifies market structure using pivot-based logic:
* Auto Mode: Dynamically identifies Pivot Highs and Pivot Lows to plot the upper and lower boundaries of a broadening range.
* Manual Mode: Allows users to input specific price levels for fixed horizontal support and resistance.
2. The "Failed 2" Reversal Pattern
The script looks for specific price action exhaustion at the boundaries:
* Failed 2 Down (Long): Occurs when a candle creates a New Low (taking out the previous candle's low) but reverses to close higher than its open (Bullish).
* Failed 2 Up (Short): Occurs when a candle creates a New High (taking out the previous candle's high) but reverses to close lower than its open (Bearish).
3. Proximity Filtering
The Proximity Engine acts as a filter. A label will appear and will only be valid if the price is within a user-defined threshold of the BF lines. Users can define this "strike zone" via:
* Percent / Points / Ticks: Static distance from the level.
* ATR Multiple: Volatility-adjusted distance, ensuring the zone expands or contracts based on current market conditions.
Key Features
* On-chart Visualization of Stop and Target Reference Levels: On-chart plotting of Stop Loss and Profit Targets (Target modes include Opposing BF Line, 50% Range, or Fixed Amount).
* Real-Time Statistics: An on-screen dashboard tracks Win Rate, Hit/Fail counts, and Risk-to-Reward ratios for the last N bars. Statistics reflect historical signal outcomes only and do not predict future performance.
* Visual Customization: Fully adjustable markers, line styles, and table positioning to fit any chart layout.
* Alerts: Integrated alert functionality for Long and Short triggers.
Usage Note
This tool is intended to help identify structural exhaustion. Like all technical indicators, it is most effective when used in conjunction with other forms of analysis (such as volume or higher-timeframe trend context). It does not constitute financial advice.
مؤشر
Peaks and Troughs📄 Script Description – EN (English)
Peaks and Troughs (P&T) is a price action indicator that identifies confirmed swing highs (peaks) and swing lows (troughs) based on structural trend changes.
Key features:
Trend-break based peak and trough confirmation
Optional engulfing signal at confirmed swing points
Body-break based Mother Bar (Outside Bar) range marking
Clean chart output with only the latest active levels
Unified alert system using Any alert() function call
Designed for discretionary trading, market structure analysis and automation-ready alerting.
----------------------------------------------------
📄 Script Description – HU (Magyar)
A Peaks and Troughs (P&T) egy price action alapú indikátor, amely megerősített csúcs- (peak) és völgypontokat (trough) azonosít trendváltás alapján.
Főbb jellemzők:
Trendtörés alapú peak és trough meghatározás
Opcionális engulfing jelzés megerősített swing pontokon
Body-break alapú Mother Bar (Outside Bar) tartomány jelölés
Letisztult chart, mindig csak az aktuális szintekkel
Egységes riasztási rendszer (Any alert() function call)
Diszkrecionális kereskedéshez, market structure elemzéshez és automatizált riasztásokhoz optimalizálva.
مؤشر
ChunkbrAI-NN INDIChunkbrAI-NN INDI: The Neural Network Odyssey
A Native Pine Script Neural Network Research Engine
Welcome to ChunkbrAI-NN 5.3. This is not a standard technical indicator; it is a proof-of-concept Artificial Intelligence engine built entirely from scratch within Pine Script.
Neural Networks typically require iterating over massive datasets, a task that usually times out on TradingView. ChunkbrAI solves this by introducing a novel "Chunking Architecture"—a system that breaks history into digestible learning blocks and trains a Multilayer Perceptron (MLP) using a "Chunking" approach.
It features a living ecosystem where neurons have "genes," grow mature, and adapt to market regimes using a highly sophisticated Context-Aware normalization engine.
-----------------------------------------------------------
The Core Concept: "The Time Wheel"
To bypass Pine Script's execution limits, this script does not train linearly from the beginning of time. Instead, it operates like a spinning wheel of experience.
* The Chunk System: On every bar update, the engine reaches back into history (up to 5000 bars) and grabs random or sequential "Chunks" of data. It treats these chunks as isolated training samples.
* Experience Replay: By constantly revisiting past market scenarios (Chunks), the network slowly converges its weights, learning to recognize patterns across different eras of price action.
-----------------------------------------------------------
Architecture & Modules
A. The Neural Core (MLP)
At the heart is a raw neural network built with arrays:
* Topology: A dense network with a customizable Hidden Layer (Default: 60 Neurons).
* Timewarp (Stride): When enabled, the network uses "dilated" inputs (skipping bars, e.g., 1, 3, 5...). This increases the network's Field of View without increasing computational load.
* Forecasting: The network outputs a standardized prediction which is then de-normalized to project the future price path on your chart.
B. The Context System (The "Eyes")
Raw prices confuse neural networks. A $1000 move in Bitcoin is massive in 2016 but noise in 2024. ChunkbrAI uses a relativistic Context System:
* Regime Detection: It uses a Zero-Lag Moving Average (ZLMA) and Non-Linear Regression to measure the current market "Vibe" (Volatility & Trend).
* Dynamic Normalization: The inputs are scaled based on this context. If the market is volatile, the data is compressed; if calm, it is expanded. This ensures the brain receives consistent signal patterns regardless of the absolute price.
C. The Gene System (Neuro-Plasticity)
This is the experimental "biology" layer. Neurons are not just static math; they have life cycles.
* Maturity: Neurons start "Young" (highly plastic, high mutation rate). As they successfully reduce error, they become "Wise" (stable, low mutation).
* Mutation: If a "Wise" neuron begins failing (high error), it is demoted and forced to mutate. This allows the brain to "forget" obsolete behaviors and adapt to new market paradigms automatically.
* Profiles: You can initialize the brain with different personalities (e.g., Dreamer, Young Chaos, Zen Monk).
D. The Brain Scheduler (Adaptive Learning)
A static Learning Rate (LR) is inefficient. The Brain Scheduler acts as the heartbeat:
* Panic vs. Flow: It monitors the derivative of the error. If the error spikes (Panic), the Scheduler slows down learning to prevent the model from exploding. If the error smooths out (Flow), it accelerates learning (Infinite LR Mode).
-----------------------------------------------------------
Forecasting Modes
The script provides two distinct ways to visualize the future:
1. Direct Projection (Green Line):
The network takes the current window of price action and predicts the immediate next step. If Timewarp is active, it interpolates the result to draw a smooth curve.
2. Autoregression (Cyan Line):
Available in "Auto" mode. The network feeds its *own* predictions back into itself as inputs to generate multi-step forecasts.
* Wave Segmentation: The script intelligently guesses the current market cycle length and attempts to project that specific duration forward.
-----------------------------------------------------------
Operation Manual
The script has two distinct training loops: first, when you add it to a chart, Pine runs through the available historical bars once, and this initial history pass is the main training phase where the network iterates chunk-by-chunk using your configured chunk count/iterations (e.g., if chunk count is 3, it performs 3 chunk updates per step), but pushing chunk count, iterations, or model sizing too high can hit Pine’s execution limits; after that, once real-time candles start printing, the script can either keep training (weights continue updating) or freeze the weights and run inference only, producing predictions from the learned parameters, and if live training is enabled it can also simulate “bars-back” style training during live mode by iterating across prior bars as if doing another history pass—which again can run into limits if chunks/iterations/sizing are too heavy—so when changing parameters to evaluate behavior you change them carefully and individually, because multiple simultaneous increases make it hard to attribute effects and can more easily trigger those execution constraints.
Weight Persistence (Save/Load):
Pine Script can’t write files or persist weights directly, so ChunkbrAI uses a library-based workaround that’s honestly tricky and kind of a pain: you enable the weight-export alerts so the script emits the weights (W1/W2/biases etc.) as text, and those payloads are chunked as well; then, outside TradingView, I use a separate Python script to parse the alert emails, reconstruct and format the chunked weights properly, and generate the corresponding library code files; after that, the libraries have to be published/updated, and only then can the main script “restore” by reading the published lib constants on chart load, effectively starting with the pre-trained weights instead of relying purely on the fresh history-run training pass. I don’t recommend this process unless you really have to—it’s fragile and high-effort—but until TradingView implements some simple built-in data storage for scripts, it’s basically the only practical way to save and reload your models.
-----------------------------------------------------------
Limitations & Notes
* Calculation Limits: This script pushes Pine Script to its absolute edge. If you increase Chunk Size or Hidden Size too much, you WILL hit execution limits. Use the defaults as a baseline.
* Non-Deterministic: Because the "Wheel" picks random chunks for training, two instances of this script might evolve slightly different brains unless you use the Restore Weights feature.
* Experimental: This is a research tool designed to explore Neural Networks and Genetic Algorithms on the chart. Treat it as an educational engine, not financial advice.
Credits: Concept and Engineering by funkybrown.
مؤشر
Smart Money Structure FilterEnglish Description
Overview
Smart Money Structure Analyzer is a professional trading tool that implements Smart Money Concepts (SMC) to identify key market structure shifts, Break of Structure (BOS), and Change of Character (CHoCH) patterns. This indicator helps traders follow the "smart money" flow by detecting institutional order flow patterns on any timeframe.
Key Features
Swing Point Detection - Identifies significant highs and lows using fractal-based logic
Market Structure Analysis - Classifies market conditions as Uptrend, Downtrend, or Consolidation
Break of Structure (BOS) - Detects when price breaks key structural levels
Change of Character (CHoCH) - Identifies potential trend reversals
Mitigation Levels - Shows potential retracement targets after structure breaks
How It Works
The indicator analyzes price action through several layers:
Swing Detection Algorithm
Uses a configurable swing period (3-21 bars)
Identifies valid swing highs and lows that are confirmed by surrounding price action
Stores the last 20 swings for structure analysis
Structure Determination
Uptrend: Higher Highs (HH) + Higher Lows (HL)
Downtrend: Lower Lows (LL) + Lower Highs (LH)
Consolidation: Mixed structure or ranging market
Break of Structure (BOS) Logic
Bearish BOS: Price closes below the last confirmed Higher Low (HL)
Bullish BOS: Price closes above the last confirmed Lower High (LH)
Change of Character (CHoCH) Logic
Bearish CHoCH: After a bearish BOS, price forms a Lower Low (confirms trend reversal)
Bullish CHoCH: After a bullish BOS, price forms a Higher High (confirms trend reversal)
Mitigation Levels
Calculates potential retracement levels after BOS (typically ±0.2% from broken structure)
Visual Elements
Fractals: Swing points (optional display)
Structure Lines: Last Higher Low (blue) and Last Lower High (purple)
BOS Signals: Triangles marking structure breaks
CHoCH Signals: Circles confirming trend changes
Mitigation Levels: Dotted orange lines for potential retracements
Info Label: Real-time structure status and key levels
Alerts
The indicator provides alerts for:
Break of Structure (BOS) events
Change of Character (CHoCH) confirmations
Settings
Swing Period: Sensitivity of swing detection (default: 3)
Show Fractals: Toggle swing point markers
Show Structure Lines: Display key structure levels
Show Break of Structure: Display BOS signals
Show Change of Character: Display CHoCH signals
Show Mitigation Levels: Display retracement levels
Best Practices
Use on higher timeframes (1H+) for more reliable signals
Combine with volume analysis for confirmation
Wait for CHoCH confirmation before entering trades
Use mitigation levels as potential entry zones
Русское описание
Обзор
Smart Money Structure Analyzer - профессиональный торговый инструмент, реализующий концепции Smart Money (SMC) для определения ключевых сдвигов рыночной структуры, Break of Structure (BOS) и Change of Character (CHoCH). Индикатор помогает отслеживать поток "умных денег", выявляя паттерны институционального ордерного потока на любом таймфрейме.
Ключевые возможности
Определение свингов - Выявляет значимые максимумы и минимумы с помощью фрактальной логики
Анализ структуры рынка - Классифицирует состояние рынка: Восходящий тренд, Нисходящий тренд или Консолидация
Break of Structure (BOS) - Обнаружение пробития ключевых уровней структуры
Change of Character (CHoCH) - Определение потенциальных разворотов тренда
Уровни митигации - Показывает потенциальные цели отката после пробоя структуры
Принцип работы
Индикатор анализирует ценовое действие через несколько уровней:
Алгоритм определения свингов
Использует настраиваемый период свинга (3-21 свечи)
Определяет валидные максимумы и минимумы, подтвержденные окружающим движением цены
Сохраняет последние 20 свингов для анализа структуры
Определение структуры
Восходящий тренд: Higher Highs (HH) + Higher Lows (HL)
Нисходящий тренд: Lower Lows (LL) + Lower Highs (LH)
Консолидация: Смешанная структура или флет
Логика Break of Structure (BOS)
Медвежий BOS: Цена закрывается ниже последнего Higher Low (HL)
Бычий BOS: Цена закрывается выше последнего Lower High (LH)
Логика Change of Character (CHoCH)
Медвежий CHoCH: После медвежьего BOS формируется Lower Low (подтверждает разворот)
Бычий CHoCH: После бычьего BOS формируется Higher High (подтверждает разворот)
Уровни митигации
Расчет потенциальных уровней отката после BOS (обычно ±0.2% от сломанной структуры)
Визуальные элементы
Фракталы: Точки свингов (опционально)
Линии структуры: Последний Higher Low (синий) и последний Lower High (фиолетовый)
Сигналы BOS: Треугольники, отмечающие пробой структуры
Сигналы CHoCH: Круги, подтверждающие изменение тренда
Уровни митигации: Пунктирные оранжевые линии для потенциальных откатов
Инфо-метка: Статус структуры и ключевые уровни в реальном времени
Оповещения
Индикатор предоставляет алерты для:
Событий Break of Structure (BOS)
Подтверждений Change of Character (CHoCH)
Настройки
Период свинга: Чувствительность определения свингов (по умолчанию: 3)
Показывать фракталы: Включение/выключение маркеров свингов
Показывать линии структуры: Отображение ключевых уровней структуры
Показывать Break of Structure: Отображение сигналов BOS
Показывать Change of Character: Отображение сигналов CHoCH
Показывать уровни митигации: Отображение уровней отката
Рекомендации по использованию
Используйте на старших таймфреймах (1H+) для более надежных сигналов
Комбинируйте с анализом объема для подтверждения
Ждите подтверждения CHoCH перед входом в сделку
Используйте уровни митигации как потенциальные зоны входа
Технические особенности
Максимальное количество меток: 500
Работает на любых таймфреймах
Не перерисовывает прошлые сигналы
Эффективно использует ресурсы благодаря ограничению хранения свингов
Индикатор предназначен для трейдеров, работающих с Price Action и концепциями Smart Money, и помогает систематизировать анализ рыночной структуры в соответствии с подходами институциональных трейдеров.
مؤشر
Custom Dividers [louis]Custom Dividers is a streamlined utility designed for Multi-Timeframe Analysis (MTF). It allows you to visualize higher timeframe structures directly on lower timeframe charts by drawing infinite vertical lines at the open of new periods.
Unlike standard grid lines and other divider indicators, this has custom inputs, giving you complete control over non-standard timeframes (e.g., 90-minute cycles, 6-hour blocks, or 2-day periods).
🔑 Key Features
- 4 Independent Timeframe Slots: Configure up to four different vertical dividers simultaneously.
- Custom Minute Inputs (TF 1 & TF 2): Instead of restricting you to a dropdown, the first two slots allow you to input any integer for minutes.
Example: Set 90 for 90-minute cycle dividers.
Example: Set 360 for 6-hour dividers.
- Standard Timeframe Selectors (TF 3 & TF 4): Traditional dropdowns for standard periods like Daily (D), Weekly (W), or Monthly (M).
- Visual Customization:
Lines: Uses line.new() drawing logic to ensure dividers stretch infinitely from top to bottom, regardless of price scale.
Styles: Select from Solid, Dashed, or Dotted directly in the inputs.
Width & Color: Fully customizable to blend into your chart theme.
⚙️ How to Configure
Go to the Settings (Inputs Tab):
TF 1 & TF 2: Enter the specific number of minutes (e.g., 60 = 1 Hour, 240 = 4 Hours). Toggle the checkbox to Show/Hide.
TF 3 & TF 4: Select the timeframe period from the dropdown. Toggle the checkbox to Show/Hide.
Style: Choose your line style, color, and width.
Note: Since this indicator uses geometric drawings (line.new) to achieve full-height vertical lines, all visual settings (Color, Width, Style) are located in the Inputs Tab, not the Style tab.
مؤشر






















