Student Wyckoff volume background levels
**STUDENT WYCKOFF Volume Background Levels**
This indicator colors volume bars according to how large or small the current volume is relative to the recent background. Instead of looking at “raw” volume, it shows whether today’s activity is *extreme, high, normal, low or ultra-low* compared to what is usual for this market and timeframe.
### Concept
* The script calculates a **background average volume** over a user-defined number of bars (background window).
* For each bar it computes the ratio:
> `Volume Ratio = Current Volume / Average Volume`
* Depending on how big this ratio is, the volume bar is assigned to one of five categories and colored accordingly.
This makes it very easy to see where real effort (unusual activity) appears and where the market is quiet.
### Color scheme and thresholds (default)
All thresholds are defined as a multiple of the average volume:
* **Extreme volume** – **purple**
`volume ≥ Extreme * average` (default 3.0×)
Very rare, climactic activity. Often associated with buying/selling climaxes, stopping volume or very aggressive participation.
* **High volume** – **light red**
`volume ≥ High * average` (default 1.5×)
Clearly above-average volume. Important bars in trends or near key support/resistance.
* **Normal volume** – **gray**
Around the background average. Regular market activity.
* **Low volume** – **light yellow**
`volume ≤ Low * average` (default 0.7×)
Below-average activity. In Wyckoff/VSA context this can support ideas like No Demand / No Supply (together with spread and result).
* **Ultra-low volume** – **bright green**
`volume ≤ Ultra Low * average` (default 0.3×)
Very quiet market. Often marks zones of complete disinterest, late phases of trends, or calm periods before new campaigns.
All multipliers and colors are user-adjustable.
### How to use it
This is **not a standalone buy/sell signal**, but a visual tool to support Wyckoff/VSA reading:
* Highlight **climactic or stopping bars** by looking for purple (extreme) and light-red (high) volume around important price levels.
* Confirm **No Demand / No Supply** ideas by checking for low or ultra-low volume while price is drifting.
* Study how volume background changes between phases of a trading range, mark-up and mark-down.
The indicator works on any symbol and timeframe, uses only closed bars (no repainting) and is intended for educational and analytical purposes. Always combine it with your own price action reading, risk management and trading plan.
Indicateurs et stratégies
Sideways ZoneSideways Zone Breakout – Advanced Consolidation Breakout Indicator
The market spends most of its time moving sideways, trapping traders with false signals and unpredictable whipsaws. This indicator is designed to identify those consolidation phases with precision and highlight confirmed breakout moments where strong momentum is most likely to follow.
🔍 What This Indicator Does
This tool automatically scans recent price action and detects tight sideways zones using a volatility-based measurement. Whenever the market enters a compression phase, the indicator marks the exact upper and lower boundaries of the zone.
Once price closes beyond this range, the indicator instantly triggers a BUY or SELL breakout signal — clean, simple, and highly effective.
🎯 Why This Works
Sideways phases often represent institutional accumulation or distribution. When a breakout occurs, it usually leads to a powerful expansion move. This indicator is specifically built to catch those high-probability moments.
Core logic:
Detects the highest and lowest price within a chosen lookback period
Measures range tightness relative to price
Plots a visual zone only when the market is truly sideways
Generates Buy signals on breakout above the zone
Generates Sell signals on breakdown below the zone
No repainting.
No complex settings.
Pure breakout confirmation based on candle close.
✨ Key Features
✔ Automatic sideways zone detection
✔ Clean upper & lower boundary plotting
✔ Soft shaded zone for visual clarity
✔ Immediate BUY/SELL breakout markers
✔ Alert-ready (great for webhook automation)
✔ Works on all timeframes and all markets
✔ Suitable for crypto, forex, indices, stocks, and commodities
📌 Best Applications
Identifying breakout opportunities after consolidation
Avoiding entries during choppy market conditions
Trend continuation entries after a sideways pause
Scalping volatility expansion
Confirming breakouts with other indicators (EMA / MACD / RSI etc.)
⚡ Important Notes
Breakout signals are confirmed only on candle close, ensuring reliability and zero repainting.
The zone appears only when price is truly consolidating — avoiding unnecessary clutter.
👤 Author
Created by: Syed Aman Ali
Built with a focus on clean charting, market structure, and breakout momentum trading.
If this indicator helps your trading, please leave a like and share your feedback — more high-quality tools are coming soon.
Advanced Delta Volume DivergenceDelta Volume Divergence with alerts. Basically, positive delta, green on histogram, negative delta, re don histogram. There is some options in there to adjust moving averages, colors, lookback period, confirmation for alerts, etc. Play with it, if you like it great, if not, I'm sure you'll find something else that you do.
幣Real專屬指標 (試用版-2025/12/31)### English Description
**Overview**
This "Multiple Judgment Indicator" is a comprehensive trading tool designed to filter out market noise and identify high-probability trend reversals. It combines trend analysis with momentum oscillators to generate clear entry and exit signals.
**Key Features & Logic**
The script calculates a composite signal based on the following logic:
1. **Trend Filter:** It uses 【填入指標1,例如: EMA 200】 to determine the overall market direction.
2. **Momentum Confirmation:** It incorporates 【填入指標2,例如: RSI or MACD】 to detect overbought/oversold conditions.
3. **Signal Generation:** A strict "Multiple Judgment" algorithm ensures that signals are only plotted when all conditions align, reducing false positives in choppy markets.
**How to Use**
* **Long Signal:** Look for the 【填入顏色,例如: Green】 label/shape on the chart. This indicates that the trend is bullish and momentum is supportive.
* **Short Signal:** Look for the 【填入顏色,例如: Red】 label/shape. This suggests a potential downward move.
* **Stop Loss:** Suggested stop loss levels can be placed at the recent swing high/low.
**Trial Information**
This script is currently available for a free trial.
* **Expiration Date:** 2025/12/31
* After this date, the indicator will require re-authorization or an update to function.
---------------------------------------
### 中文說明
**概述**
本「多重判定指標」是一個綜合型的交易工具,旨在過濾市場雜訊並識別高機率的趨勢反轉點。它結合了趨勢分析與動能震盪指標,以產生明確的進出場訊號。
**核心功能與邏輯**
本腳本基於以下邏輯計算綜合訊號:
1. **趨勢過濾:** 使用 【填入指標1,例如: EMA 200】 來判斷整體市場方向。
2. **動能確認:** 結合 【填入指標2,例如: RSI 或 MACD】 來偵測超買/超賣區域。
3. **訊號生成:** 嚴格的「多重判定」演算法確保只有在所有條件都一致時才會發出訊號,減少盤整市場中的假突破。
**使用方法**
* **做多訊號:** 當圖表上出現 【填入顏色,例如: 綠色】 標籤/圖形時,代表趨勢看漲且動能支撐。
* **做空訊號:** 當出現 【填入顏色,例如: 紅色】 標籤/圖形時,代表潛在的下跌趨勢。
**試用資訊**
本指標目前提供免費試用。
* **試用期限:** 至 2025/12/31 止。
* 過期後指標將需要重新授權或更新才可繼續使用。
200 EMA Rebound Signals | Partnior Programista🚀 200 EMA Rebound Signals | TradingView Indicator Description
1. 💡 Overview
The 200 EMA Rebound Signals is a trend-following indicator designed to identify high-probability reversal signals (rebound) from the 200-period Exponential Moving Average (EMA), which is widely recognized as a major dynamic support and resistance level defining the long-term market trend.
This tool provides a clear, actionable signal when price temporarily pulls back to the 200 EMA and then continues in the direction of the prevailing trend (the context).
2. 🎯 Core Logic (Context & Trend)
The indicator first establishes the market context (long-term trend) using the 200 EMA:
* Bullish Context (LONG): The current closing price is above the 200 EMA.
* Bearish Context (SHORT): The current closing price is below the 200 EMA.
A trade signal is only generated when a rebound pattern occurs in the direction of the established context.
3. 🧩 Three Entry Logic Options
The indicator offers three distinct methods for confirming the rebound, selectable via the Entry Signal Logic input:
Option 1: Confirmation (A/D) - (Default)
This logic requires a two-candle sequence for confirmation:
* LONG Signal: The previous candle's close was above the EMA, and its low touched the EMA. The current candle then closes above the high of the previous candle, confirming the upward bounce.
* SHORT Signal: The previous candle's close was below the EMA, and its high touched the EMA. The current candle then closes below the low of the previous candle, confirming the downward bounce.
Option 2: Pin Bar / Rejection (B/E)
This logic uses the powerful Pin Bar candlestick pattern to signal a strong rejection of the 200 EMA level.
* LONG Signal: A Pin Bar forms (long lower shadow) in a Bullish Context, and the candle's low touches the EMA. The lower shadow must be greater than the candle body by the specified Min. Shadow Ratio.
* SHORT Signal: A Pin Bar forms (long upper shadow) in a Bearish Context, and the candle's high touches the EMA. The upper shadow must be greater than the candle body by the specified Min. Shadow Ratio.
Option 3: Simple Touch & Close (C/F)
This is the simplest logic, requiring only a single candle to signal the rebound:
* LONG Signal: In a Bullish Context, the candle's low touches or penetrates the EMA, but the candle closes above the EMA.
* SHORT Signal: In a Bearish Context, the candle's high touches or penetrates the EMA, but the candle closes below the EMA.
4. ⚙️ Key Inputs (Inputs)
| Parameter (Russian) | Parameter (English) | Default Value | Description |
|---|---|---|---|
| Период EMA (N) | EMA Period (N) | 200 | Sets the lookback period for the Exponential Moving Average. (Default: 200) |
| Источник Цены | Price Source | close | The price data used for the EMA calculation (e.g., Close, Open, High, Low). |
| Логика Сигнала Отскока | Entry Signal Logic | 1. Confirmation (A/D) | Selects one of the three rebound confirmation methods explained above. |
| Мин. Коэф. Тени (Пин-Бар) | Min. Shadow Ratio (Pin Bar) | 2.0 | Used only for Option 2. Specifies how many times the pin bar's shadow must be larger than its body to qualify as a signal. (e.g., 2.0 means shadow >= 2 * body size). |
5. 🛠️ How to Use
* Define Your Trend: The indicator automatically shows the long-term trend (Bullish/Bearish Context).
* Select Logic: Choose the entry logic that best suits your trading style (Confirmation, Pin Bar, or Simple Touch).
* Wait for the Rebound: Wait for the price to pull back to the 200 EMA.
* Enter Trade: A Green Triangle below the bar signals a potential LONG entry. A Red Triangle above the bar signals a potential SHORT entry.
Would you like me to translate any other sections of your code's comments or description?
Market Structure with Inducements & SweepsChange of Characters (CHoCH) are based on swing points detection, while Break of Structures (BOS) are based on trailing maximum & minimums from the detected Change of Characters. We do this for a more dynamic & timely display of market structure.
Traders that consider inducements as a part of their analysis of Change of Characters & Break of Structures can more easily avoid fakeouts.
BB/KC Squeeze Channels (v6)Technical Specification for the BB/KC Squeeze Volatility Indicator in Algorithmic Cryptocurrency Trading
I. Theoretical Foundations of Volatility Dynamics
The "Contraction-Expansion" Principle (Volatility Contraction/Expansion)
The fundamental analysis of market volatility dynamics relies on the principle popularized by John Bollinger: periods of low volatility are inevitably followed by periods of high volatility. This phenomenon, known as the cyclical nature of volatility, is the cornerstone of trading strategies based on range breakouts (Breakout Strategy). In the context of technical analysis, volatility contraction manifests as a consolidation phase where the trading range narrows, preceding a strong, directional price impulse.
The essence of volatility contraction lies in a phase of market equilibrium that is inherently unstable. Most often, this reflects the covert activities of large market participants who are either accumulating or distributing a significant volume of the asset. These actions occur within a narrow price corridor to avoid sharp price movements until the entire position is acquired. As a result, activity decreases, the range narrows, and the market accumulates "energy" for the subsequent large-scale expansion. For the cryptocurrency market, characterized by high impulsivity and a tendency toward sharp trending moves, accurately identifying the deep contraction phase becomes a powerful algorithmic predictor.
Identifying Prerequisites: Distinguishing Pre-Breakout Contraction
To build a reliable indicator, it is crucial to distinguish a true pre-breakout squeeze from other types of volatility reduction that do not lead to a strong impulse. Specifically, volatility, measured by the Average True Range (ATR), will always decline after the completion of a strong vertical movement, as the market enters a pullback or deceleration phase. Such a decline is post-impulse and does not necessarily signal an imminent breakout.
It is necessary to find signs of abnormally low volatility that occurs precisely in the consolidation phase. The optimal time to look for a Squeeze signal is the formation of a distinct sideways channel. In this phase, the middle line of the channel indicator (e.g., EMA or SMA) should be relatively horizontal. This confirms that the market is currently in a ranging state (absence of a strong current trend), not in a deceleration phase after a trend. Therefore, the Squeeze indicator algorithm must include a check for confirmed sideways movement (e.g., through analyzing the slope of the middle line or its statistical deviation from the horizontal over the last X periods). Only abnormally low volatility during a range can be classified as a high-confidence pre-breakout contraction.
II. Instrument Selection: Justification for the Composite BB/KC Squeeze Approach
For effective algorithmic determination of the extreme contraction phase, it is necessary to use an indicator that combines the advantages of the two most reliable methods for measuring volatility: Bollinger Bands and Keltner Channels.
Comparative Analysis of Volatility Indicators
| Indicator | Base Metric | Volatility Response | Primary Role in Squeeze |
|---|---|---|---|
| Bollinger Bands (BB) | Standard Deviation (SD) | Fast, Highly Sensitive | Contraction sensor, Early breakout signal |
| Keltner Channels (KC) | Average True Range (ATR) | Smooth, Noise Filtering | Defines stable range, Filters false signals |
Bollinger Bands (BB)
Bollinger Bands are based on the Standard Deviation (SD) of the price from a moving average. This statistical metric makes BB highly sensitive, as they quickly react to sudden changes in volatility. Due to this sensitivity, BB are ideal for early registration of a contraction and for generating the breakout signal. However, their high sensitivity is also a drawback, as it can lead to false signals and premature expansion during market noise.
Keltner Channels (KC)
Keltner Channels, in the modern version developed by Linda Raschke, use the Average True Range (ATR) to calculate the channel width. ATR represents the averaged true range of fluctuations, which provides a smoother and more stable measure of volatility. KC react to market changes slower than BB, but their smoothness allows for better filtering of false signals and determination of the true direction of movement. Unlike fixed-width price channels or percentage envelopes, which perform poorly in dynamic environments, BB and KC automatically adapt to market conditions.
The Squeeze Mechanism: Synergy of Instruments
The BB/KC Squeeze indicator uses the synergy of BB and KC to achieve maximum accuracy in identifying the accumulation phase.
The technical Squeeze condition (Squeeze ON) is defined when the fast and statistically-oriented Bollinger Bands (BB) are inside the wider and smoother Keltner Channels (KC). This state represents quantitative confirmation of extremely low volatility.
In standard settings, BB use a multiplier of 2.0 for Standard Deviation (SD), and KC use a multiplier of 1.5 for ATR. For the statistical width of BB (based on price deviation from the average) to narrow inside the width of KC (based on the averaged range), the current statistical deviation of the price must fall to abnormally low values relative to the historical average range of fluctuations. This is not just low volatility, but its extreme contraction, indicating maximum accumulation of potential energy before an impulse.
III. Quantitative Analysis: How Much, Why, and How Volatility Contracts
How Much: Mathematical Definition of the Degree of Contraction
The degree of volatility contraction before a breakout is measured through a strict mathematical condition that ensures the current volatility is significantly below its averaged historical value.
The Squeeze Condition (Squeeze ON) requires both of the following mathematical formulas to be true :
To understand how much the movement should contract, we must consider the channel width formulas:
* Bollinger Bands Width (\text{BB}_{\text{Width}}):
\text{KC}_{\text{Width}} = 2 \times (\text{ATR} \times 1.5) = 3.0 \times \text{ATR}$$
The Squeeze ON state means that \text{BB}_{\text{Width}} < \text{KC}_{\text{Width}}. This condition is equivalent to \text{SD} \times 4.0 < \text{ATR} \times 3.0. As a result, the current Standard Deviation (SD) must fall below 75% of the Average True Range (ATR) for the contraction to be registered. This requirement for SD to decrease to a level significantly below ATR is the criterion for identifying the deep market calm that serves as the energy base for the subsequent directional movement.
Why and How: Qualitative Signs
Volatility decreases because large market participants are slowly and covertly accumulating positions. They keep the price within a narrow range to fully acquire the necessary volume before allowing the price to impulsively exit consolidation. This creates a sideways movement phase, minimizing risks for the trader and enabling timely tracking of a bullish or bearish breakout.
To enhance the algorithm's reliability and prevent entry into false ranges, the following qualitative signs accompanying a true squeeze must be considered:
* Squeeze Duration: The longer the price remains in the Squeeze ON state, the more energy is accumulated. Experience suggests a minimum duration of 4–8 periods. Extended contraction periods (over 10–12 bars) often precede the strongest impulsive movements in the crypto market.
* Price Position: During the contraction phase, the price should remain close to the middle line (EMA/SMA). This confirms that the market is in equilibrium, and accumulation is occurring around the "fair" price of the current range.
* Momentum Context: The volatility indicator (BB/KC) determines when a move will happen, but not its direction. To predict the direction (prerequisite), a momentum component must be used (e.g., a histogram, as in the TTM Squeeze variant ). The appearance of positive momentum during the contraction, even without price movement, signals potential bullish strength, increasing the likelihood of an upward breakout.
Squeeze State Logic Table
| State | Mathematical Condition (BB vs KC) | Market Interpretation |
|---|---|---|
| Squeeze ON | (\text{BB}_{\text{Upper}} < \text{KC}_{\text{Upper}}) AND (\text{BB}_{\text{Lower}} > \text{KC}_{\text{Lower}}) | Extreme volatility contraction, accumulation phase, breakout pending. |
| Squeeze OFF | \text{BB}_{\text{Upper}} \ge \text{KC}_{\text{Upper}} OR \text{BB}_{\text{Lower}} \le \text{KC}_{\text{Lower}} | Normal volatility, trending movement, or unstable range. |
IV. Technical Specification: Step-by-Step Algorithm for the Squeeze Indicator (BB/KC)
This algorithm represents the sequence of steps required to code the indicator, which captures the contraction state and generates breakout signals.
1. Initialization and Calculation of Basic Values
* Define Period N: Determine the period N (recommended value N=20) for calculating the moving averages, ATR, and Standard Deviation (SD).
* Calculate True Range (TR): For each bar, calculate \text{TR} as the maximum value of three metrics: (High – Low), \text{Abs}(\text{High} - \text{Close}_{\text{prev}}), \text{Abs}(\text{Low} - \text{Close}_{\text{prev}}).
2. Calculation of Keltner Channel (KC) Components
* Calculate KC Middle Line (EMA): Calculate the Exponential Moving Average (EMA) of the closing price (\text{Close}) over period N.
* Calculate ATR: Calculate the Average True Range (ATR) as the moving average of \text{TR} over period N.
* Calculate KC Boundaries: Calculate the Upper and Lower KC lines, using the ATR multiplier Y (recommended Y=1.5 ):
* * 3. Calculation of Bollinger Band (BB) Components
* Calculate BB Middle Line (SMA): Calculate the Simple Moving Average (SMA) of the closing price (\text{Close}) over period N.
* Calculate SD: Calculate the Standard Deviation (SD) of the closing price over period N.
* Calculate BB Boundaries: Calculate the Upper and Lower BB, using the SD multiplier X (recommended X=2.0 ):
* * 4. Algorithm for Determining the "Squeeze" State
* Check Squeeze ON Condition: For the current bar, check if both conditions are met: \text{BB}_{\text{Upper}} < \text{KC}_{\text{Upper}} AND \text{BB}_{\text{Lower}} > \text{KC}_{\text{Lower}}.
* Assign State: IF both conditions in step 9 are true, THEN assign the variable \text{SqueezeState} the value \text{ON} (e.g., 1). ELSE assign the value \text{OFF} (e.g., 0).
5. Algorithm for Generating Breakout Signals
* Identify Trigger: Check if \text{SqueezeState} has changed from \text{ON} to \text{OFF} on the current bar. This signifies that volatility has expanded after the contraction period.
* Bullish Breakout Signal: IF \text{SqueezeState}_{\text{prev}} = \text{ON} AND \text{SqueezeState}_{\text{current}} = \text{OFF}, AND the closing price (\text{Close}) of the current bar is above \text{BB}_{\text{Upper}}, THEN generate a BUY (Breakout Long) signal.
* Bearish Breakout Signal: IF \text{SqueezeState}_{\text{prev}} = \tex (start_span) (end_span)t{ON} AND \text{SqueezeState}_{\text{current}} = \text{OFF}, AND the closing price (\text{Close}) of the current bar is below \text{BB}_{\text{Lower}}, THEN generate a SELL (Breakout Short) signal.
* Additional Momentum Filtering: To increase reliability, the breakout signal should be valid only IF the breakout occurs in the direction confirmed by a momentum indicator (e.g., if Momentum > 0 for a Bullish breakout, and Momentum < 0 for a Bearish breakout).
The Role of Momentum in the Algorithm
A key addition to the volatility indicator is the momentum component. Defining the Squeeze ON/OFF state helps understand the potential for movement, but not its direction. The momentum indicator (often implemented as a histogram, as in TTM Squeeze ) measures whether accumulation of buying or selling pressure occurs during the contraction phase. Therefore, the indicator must include a sub-component that measures this pressure. Using momentum in conjunction with the BB breakout ensures that entry occurs not just after volatility expansion, but after expansion in a confirmed direction, significantly reducing the number of false breakouts.
V. Parameters, Optimization, and Nuances for the Cryptocurrency Market
Adapting Standard Settings (20, 2.0, 1.5)
The standard parameters N=20, X_{\text{BB}}=2.0, and Y_{\text{KC}}=1.5 are designed for stock markets and provide a reliable starting point. However, the high volatility and dynamics of the cryptocurrency market require fine-tuning to optimize performance.
1. Optimization of Period N
Reducing the period N (e.g., to 18 or 14) on lower timeframes (1-hour and below) increases the indicator's sensitivity to local, fast contractions, which is useful for scalping. However, this may also generate more signals, including false ones. For medium-term trading strategies (4h, Daily), a period of N=20 or N=21 provides an optimal balance between sensitivity and noise filtering.
2. Optimization of Multiplier Y_{\text{KC}}
The Keltner Channel multiplier (Y) defaults to 1.5. KC are smoother and more stable due to the use of ATR. If backtesting shows the indicator generates too many false Squeeze ON signals, it may indicate that the KC channel is too narrow. In this case, a slight increase in multiplier Y (e.g., to 1.6 or 1.7) widens the KC. This requires an even more extreme drop in Standard Deviation for the BB to narrow inside the KC, thereby increasing the strictness and reliability of the Squeeze ON signal.
Importance of Timeframe Selection
While some indicators like KC and BB show higher effectiveness in trending conditions for trading off channel boundaries , the Squeeze Play strategy is fundamentally different. It deliberately seeks a range (volatility contraction) with the goal of catching the start of a new strong trend.
In the cryptocurrency market, false breakouts and market noise (chop) can be particularly intense on low timeframes. Therefore, for the Squeeze strategy, it is recommended to use timeframes where consolidation is cleanest: 4-hour, Daily, or Weekly charts for major crypto pairs like BTC/USD or ETH/USD. On lower timeframes, multi-timeframe confirmation must be implemented, for example, using a trend filter from a higher timeframe.
VI. Strategic Application of Squeeze Play and Filtering
Using Momentum for Direction Determination
As noted, the volatility indicator (BB/KC) is not a directional indicator. The squeeze function (Squeeze ON) only identifies a high probability of a strong movement. Therefore, successful trading requires the integration of Momentum.
The breakout should be used as a trigger, but the direction must be confirmed by Momentum. For example, a BUY signal should only be generated if two conditions are met:
* Exit from the Squeeze ON state and the closing price breaking above the upper BB (\text{Close} > \text{BB}_{\text{Upper}}).
* The momentum indicator confirms upward pressure (Momentum value is positive).
This approach prevents entries into false breakouts where volatility expands but not in the direction of the accumulated market pressure.
Risk and Position Management
Since the Keltner Channel is based on ATR, which is a dynamic measure of volatility , ATR should be used for setting the Stop-Loss (SL) in the algorithmic strategy.
* Stop-Loss (SL) Setting: It is recommended to set the SL at a level determined by 1 \times \text{ATR} below the middle line (EMA/SMA) or beyond the KC boundary opposite the breakout. Using ATR ensures that the SL dynamically adapts to the current volatility, avoiding overly tight stops during periods of normal range.
* Take-Profit (TP) Setting: Since the goal of Squeeze Play is to catch a strong directional movement, the take-profit can be set based on a fixed Risk/Reward ratio (e.g., 2:1 or 3:1) or based on the price exiting the KC boundaries. Breaking the KC often indicates an extreme price move and can serve as a point for partial or full profit taking.
Filtering Against False Signals in a Range
The main drawback of breakout trading is the high percentage of false signals in wide but non-directional ranges. Using the composite BB/KC Squeeze indicator effectively addresses this problem.
KC, being based on smoothed ATR, is less susceptible to short-term volatility spikes than BB. The Squeeze filter requires the sensitive BB to narrow inside the smoothed KC. This ensures that we enter only those breakouts that were preceded by a prolonged and abnormally low volatility phase. The breakout must be confirmed by the price breaking the BB after the Squeeze ON state ends, signaling a sustained volatility expansion rather than a brief price spike.
VII. Conclusion
The analysis confirms that the user's observation about the relationship between volatility contraction and subsequent strong movements is a fundamentally sound principle, the best implementation of which in the cryptocurrency market is achieved using the composite BB/KC Squeeze indicator.
This indicator provides a precise quantitative definition of "how much" volatility must contract (SD must fall below 75% of ATR) and includes the necessary qualitative prerequisites ("why and how" — consolidation, confirmed by momentum). The presented step-by-step algorithm provides the technical foundation for coding a highly effective tool that identifies accumulation phases and generates breakout signals, adapted to the dynamics of the crypto market. The inclusion of momentum-based filtering and proper risk management tied to ATR are key factors for transitioning from a pure indicator to a profitable trading strategy.
Техническая Спецификация Индикатора Волатильности BB/KC Squeeze для Алгоритмической Торговли Криптовалютами
I. Теоретические Основы Динамики Волатильности
Принцип "Сжатие-Расширение" (Volatility Contraction/Expansion)
Фундаментальный анализ динамики рыночной волатильности опирается на принцип, популяризированный Джоном Боллинджером: периоды низкой волатильности неизбежно сменяются периодами высокой волатильности. Это явление, известное как цикличность волатильности, является краеугольным камнем торговых стратегий, основанных на пробое диапазона (Breakout Strategy). В контексте технического анализа сжатие волатильности проявляется как фаза консолидации, в которой торговый диапазон сужается, предшествуя сильному, направленному ценовому импульсу.
Смысл контракции волатильности заключается в фазе рыночного равновесия, которое, однако, является неустойчивым. Чаще всего это отражает скрытую деятельность крупных участников, которые либо накапливают (аккумуляция), либо распределяют (дистрибуция) значительный объем актива. Эти действия происходят в узком ценовом коридоре, чтобы избежать резкого движения цены, пока позиция не будет полностью набрана. В результате активность падает, диапазон сужается, и рынок накапливает «энергию» для последующего масштабного расширения. Для криптовалютного рынка, который характеризуется высокой импульсивностью и склонностью к резким трендовым движениям, точная идентификация фазы глубокого сжатия становится мощным алгоритмическим предиктором.
Идентификация Предпосылок: Отличие Пред-пробойного Сжатия
Для построения надежного индикатора критически важно уметь отличать истинное пред-пробойное сжатие от других типов снижения волатильности, которые не ведут к сильному импульсу. В частности, волатильность, измеряемая, например, индикатором Average True Range (ATR), всегда будет снижаться после завершения сильного вертикального движения, поскольку рынок переходит в фазу отката или замедления. Такое снижение является пост-импульсным и не обязательно сигнализирует о скором пробое.
Требуется найти признаки аномально низкой волатильности, которая возникает именно в фазе консолидации. Оптимальный момент для поиска сигнала Сжатия — это возникновение четкого бокового канала. В этой фазе средняя линия канального индикатора (например, EMA или SMA) должна быть относительно горизонтальной. Это подтверждает, что рынок в данный момент находится в состоянии рейнджа (отсутствие сильного текущего тренда), а не в фазе замедления после тренда. Таким образом, в алгоритм индикатора Squeeze необходимо заложить проверку на подтверждение бокового движения (например, через анализ наклона средней линии или ее статистического отклонения от горизонтали за последние X периодов). Только аномально низкая волатильность в фазе рейнджа может быть квалифицирована как высоконадежное пред-пробойное сжатие.
II. Выбор Инструмента: Обоснование Композитного Подхода BB/KC Squeeze
Для эффективного алгоритмического определения фазы экстремального сжатия необходимо использовать индикатор, который комбинирует преимущества двух наиболее надежных методов измерения волатильности: Полос Боллинджера и Каналов Кельтнера.
Сравнительный Анализ Индикаторов Волатильности
Полосы Боллинджера (Bollinger Bands, BB)
Полосы Боллинджера основаны на Стандартном Отклонении (SD) цены от скользящей средней. Эта статистическая метрика делает BB высокочувствительными, поскольку они быстро реагируют на внезапные изменения волатильности. Благодаря этой чувствительности, BB идеально подходят для ранней регистрации начавшегося сжатия и для генерации сигнала пробоя. Однако их высокая чувствительность также является недостатком, так как она может приводить к ложным срабатываниям и преждевременному расширению в условиях рыночного шума.
Каналы Кельтнера (Keltner Channels, KC)
Каналы Кельтнера, в современной версии, разработанной Линдой Рашке, используют Average True Range (ATR) для расчета ширины канала. ATR представляет собой усредненный истинный диапазон колебаний, что обеспечивает более сглаженную и устойчивую меру волатильности. KC реагируют на изменения рынка медленнее, чем BB, но их плавность позволяет лучше фильтровать ложные сигналы и определять истинное направление движения. В отличие от ценовых каналов с фиксированной шириной или процентными конвертами, которые плохо работают в динамичных средах, BB и KC автоматически адаптируются к рыночным условиям.
Механизм Squeeze: Синергия Инструментов
Индикатор BB/KC Squeeze использует синергию BB и KC для достижения максимальной точности в идентификации фазы накопления.
Техническое условие Сжатия (Squeeze ON) определяется, когда быстрые и статистически ориентированные Полосы Боллинджера (BB) оказываются внутри более широких и сглаженных Каналов Кельтнера (KC). Это состояние представляет собой количественное подтверждение экстремально низкой волатильности.
В стандартных настройках BB используют множитель 2.0 от Стандартного Отклонения (SD), а KC используют множитель 1.5 от ATR. Для того чтобы статистическая ширина BB (основанная на отклонении цены от средней) сузилась внутрь ширины KC (основанной на усредненном диапазоне), текущее статистическое отклонение цены должно упасть до аномально низких значений по отношению к историческому среднему диапазону колебаний. Это не просто низкая волатильность, а ее экстремальное сокращение, указывающее на максимальное накопление потенциальной энергии перед импульсом.
Таблица Сравнения Ключевых Индикаторов Волатильности
| Индикатор | Базовая Метрика | Реакция на Волатильность | Основная Роль в Squeeze |
|---|---|---|---|
| Bollinger Bands (BB) | Стандартное Отклонение (SD) | Быстрая, Высокочувствительная | Датчик сжатия, Ранний сигнал пробоя |
| Keltner Channels (KC) | Average True Range (ATR) | Плавная, Фильтрация шума | Определение устойчивого диапазона, Фильтр ложных сигналов |
III. Количественный Анализ: На Сколько, Почему и Как Сокращается Волатильность
На Сколько: Математическое Определение Степени Сжатия
Степень сокращения волатильности перед пробоем измеряется через строгое математическое условие, которое обеспечивает, что текущая волатильность значительно ниже ее усредненного исторического значения.
Условие Сжатия (Squeeze ON) требует выполнения обеих следующих математических формул :
Для понимания того, на сколько должно сократиться движение, необходимо рассмотреть формулы ширины каналов:
* Ширина Полос Боллинджера (\text{BB}_{\text{Width}}):
\text{KC}_{\text{Width}} = 2 \times (\text{ATR} \times 1.5) = 3.0 \times \text{ATR}$$
Состояние Squeeze ON означает, что \text{BB}_{\text{Width}} < \text{KC}_{\text{Width}}. Это условие эквивалентно \text{SD} \times 4.0 < \text{ATR} \times 3.0. В результате, текущее стандартное отклонение (SD) должно упасть ниже 75% от усредненного истинного диапазона (ATR), чтобы сжатие было зарегистрировано. Такое требование к снижению SD до уровня, значительно ниже ATR, является критерием для идентификации глубокого покоя рынка, который служит энергетической базой для последующего направленного движения.
Почему и Как: Качественные Признаки
Снижение волатильности происходит потому, что крупные участники рынка медленно и скрытно накапливают позиции. Они поддерживают цену в узком диапазоне, чтобы полностью набрать необходимый объем, прежде чем позволить цене импульсивно выйти из консолидации. Это создает фазу бокового движения, минимизируя риски для трейдера и позволяя оперативно отследить «бычий» или «медвежий» прорыв.
Для повышения надежности алгоритма и предотвращения входа в ложные диапазоны, необходимо учитывать следующие качественные признаки, сопровождающие истинное сжатие:
* Длительность Сжатия: Чем дольше цена находится в состоянии Squeeze ON, тем больше энергии накапливается. Опыт показывает, что минимальная длительность должна составлять 4–8 периодов. Длительные периоды сжатия (более 10–12 баров) часто предшествуют наиболее сильным импульсным движениям на крипторынке.
* Положение Цены: Во время фазы сжатия цена должна находиться в непосредственной близости к средней линии (EMA/SMA). Это подтверждает, что рынок находится в состоянии равновесия, и накопление происходит вокруг "справедливой" цены текущего диапазона.
* Контекст Моментума: Индикатор волатильности (BB/KC) определяет когда произойдет движение, но не его направление. Для предсказания направления (признак) необходимо использовать компонент моментума (например, гистограмму, как в варианте TTM Squeeze ). Появление положительного моментума во время сжатия, даже при отсутствии движения цены, является признаком потенциальной бычьей силы, усиливающей вероятность пробоя вверх.
Логика Определения Состояния "Сжатия" (Squeeze State Logic)
| Состояние | Математическое Условие (BB vs KC) | Интерпретация Рынка |
|---|---|---|
| Squeeze ON | (\text{BB}_{\text{Upper}} < \text{KC}_{\text{Upper}}) И (\text{BB}_{\text{Lower}} > \text{KC}_{\text{Lower}}) | Экстремальная контракция волатильности, фаза накопления, ожидание прорыва. |
| Squeeze OFF | \text{BB}_{\text{Upper}} \ge \text{KC}_{\text{Upper}} ИЛИ \text{BB}_{\text{Lower}} \le \text{KC}_{\text{Lower}} | Нормальная волатильность, трендовое движение или неустойчивый диапазон. |
IV. Техническая Спецификация: Пошаговый Алгоритм Индикатора Squeeze (BB/KC)
Данный алгоритм представляет собой последовательность шагов, необходимых для кодирования индикатора, фиксирующего состояние сжатия и генерирующего сигналы пробоя.
1. Инициализация и Расчет Базовых Величин
* Определение Периода N: Определить период N (рекомендуемое значение N=20) для расчета скользящих средних, ATR и Стандартного Отклонения (SD).
* Расчет Истинного Диапазона (True Range, TR): Для каждого бара рассчитать \text{TR} как максимальное значение из трех метрик: (High – Low), \text{Abs}(\text{High} - \text{Close}_{\text{prev}}), \text{Abs}(\text{Low} - \text{Close}_{\text{prev}}).
2. Расчет Компонентов Канала Кельтнера (KC)
* Расчет Средней Линии KC (EMA): Рассчитать экспоненциальную скользящую среднюю (EMA) цены закрытия (\text{Close}) за период N.
* Расчет ATR: Рассчитать Средний Истинный Диапазон (ATR) как скользящую среднюю \text{TR} за период N.
* Расчет Границ KC: Рассчитать Верхнюю и Нижнюю линии KC, используя множитель ATR Y (рекомендуется Y=1.5 ):
* * 3. Расчет Компонентов Полос Боллинджера (BB)
* Расчет Средней Линии BB (SMA): Рассчитать простую скользящую среднюю (SMA) цены закрытия (\text{Close}) за период N.
* Расчет SD: Рассчитать Стандартное Отклонение (SD) цены закрытия за период N.
* Расчет Границ BB: Рассчитать Верхнюю и Нижнюю полосы BB, используя множитель SD X (рекомендуется X=2.0 ):
* * 4. Алгоритм Определения Состояния "Squeeze"
* Проверка Условия Squeeze ON: Для текущего бара проверить, выполняются ли оба условия: \text{BB}_{\text{Upper}} < \text{KC}_{\text{Upper}} И \text{BB}_{\text{Lower}} > \text{KC}_{\text{Lower}}.
* Присвоение Состояния: ЕСЛИ оба условия в шаге 9 истинны, ТО присвоить переменной \text{SqueezeState} значение \text{ON} (например, 1). ИНАЧЕ присвоить значение \text{OFF} (например, 0).
5. Алгоритм Генерации Сигналов Пробоя
* Идентификация Триггера: Проверить, что \text{SqueezeState} изменился с \text{ON} на \text{OFF} на текущем баре. Это означает, что волатильность расширилась после периода сжатия.
* Сигнал Бычьего Пробоя: ЕСЛИ \text{SqueezeState}_{\text{prev}} = \text{ON} И \text{SqueezeState}_{\text{current}} = \text{OFF}, И цена закрытия (\text{Close}) текущего бара выше \text{BB}_{\text{Upper}}, ТО генерировать сигнал ПОКУПКА (Breakout Long).
* Сигнал Медвежьего Пробоя: ЕСЛИ \text{SqueezeState}_{\text{prev}} (start_span) (end_span)= \text{ON} И \text{SqueezeState}_{\text{current}} = \text{OFF}, И цена закрытия (\text{Close}) текущего бара ниже \text{BB}_{\text{Lower}}, ТО генерировать сигнал ПРОДАЖА (Breakout Short).
* Дополнительная Фильтрация Моментумом: Для повышения надежности, сигнал пробоя должен быть действителен только ЕСЛИ пробой происходит в направлении, подтвержденном моментум-индикатором (например, если Моментум > 0 для Бычьего пробоя, и Моментум < 0 для Медвежьего пробоя).
Роль Моментума в Алгоритме
Ключевым дополнением к индикатору волатильности является компонент моментума. Определение состояния Squeeze ON/OFF позволяет понять потенциал движения, но не его направление. Моментум-индикатор (часто реализованный в виде гистограммы, как в TTM Squeeze ) позволяет измерить, происходит ли накопление давления покупателей или продавцов во время фазы сжатия. Следовательно, индикатор должен включать подкомпонент, который измеряет это давление. Использование моментума в сочетании с пробоем BB гарантирует, что вход в позицию происходит не просто после расширения волатильности, а после ее расширения в подтвержденном направлении, что существенно снижает количество ложных пробоев.
V. Параметры, Оптимизация и Нюансы для Криптовалютного Рынка
Адаптация Стандартных Настроек (20, 2.0, 1.5)
Стандартные параметры N=20, X_{\text{BB}}=2.0 и Y_{\text{KC}}=1.5 разработаны для фондовых рынков и являются надежной отправной точкой. Однако высокая волатильность и динамика криптовалютного рынка требуют тонкой настройки для оптимизации производительности.
1. Оптимизация Периода N
Уменьшение периода N (например, до 18 или 14) на более низких таймфреймах (1-часовой и ниже) увеличит чувствительность индикатора к локальным, быстрым сжатиям, что полезно для скальпинга. Однако, это также может привести к генерации большего количества сигналов, в том числе ложных. Для среднесрочных торговых стратегий (4h, Daily) период N=20 или N=21 обеспечивает оптимальный баланс между чувствительностью и фильтрацией шума.
2. Оптимизация Множителя Y_{\text{KC}}
Множитель Каналов Кельтнера (Y) по умолчанию равен 1.5. KC более плавные и устойчивые благодаря использованию ATR. Если в процессе тестирования индикатор генерирует слишком много ложных сигналов Squeeze ON, это может указывать на то, что канал KC слишком узок. В этом случае, небольшое увеличение множителя Y (например, до 1.6 или 1.7) расширит KC. Это потребует еще более экстремального падения Стандартного Отклонения, чтобы BB сузились внутрь KC, тем самым повышая строгость и надежность сигнала Squeeze ON.
Важность Выбора Таймфрейма
Хотя некоторые индикаторы, такие как KC и BB, показывают более высокую эффективность в трендовом состоянии для торговли отскоками от границ , стратегия Squeeze Play принципиально иная. Она целенаправленно ищет рейндж (контракцию волатильности) с целью поймать начало нового сильного тренда.
На рынке криптовалют ложные пробои и рыночный шум (chop) могут быть особенно интенсивными на низких таймфреймах. Поэтому для стратегии Squeeze рекомендуется использовать таймфреймы, на которых консолидация наиболее чиста: 4-часовой, Daily или Weekly графики для основных криптопар, таких как BTC/USD или ETH/USD. На более низких таймфреймах необходимо внедрять мультитаймфреймовое подтверждение, используя, например, фильтр тренда с более высокого таймфрейма.
VI. Стратегическое Применение Squeeze Play и Фильтрация
Использование Momentum для Определения Направления
Как уже было отмечено, индикатор волатильности (BB/KC) не является индикатором направления. Функция сжатия (Squeeze ON) лишь идентифицирует высокую вероятность сильного движения. Следовательно, для успешной торговли необходимо интегрировать Моментум.
Прорыв следует использовать как триггер, но направление должно быть подтверждено Моментумом. Например, сигнал ПОКУПКА должен быть сгенерирован, только если соблюдены два условия:
* Выход из состояния Squeeze ON и пробитие ценой закрытия верхней полосы BB (\text{Close} > \text{BB}_{\text{Upper}}).
* Моментум-индикатор подтверждает восходящее давление (значение Моментума положительно).
Такой подход предотвращает входы в ложные пробои, когда волатильность расширяется, но не в направлении накопленного рыночного давления.
Управление Рисками и Позицией
Поскольку Канал Кельтнера основан на ATR, который является динамической мерой волатильности , именно ATR следует использовать для установки стоп-лосса (SL) в алгоритмической стратегии.
* Установка Стоп-Лосса (SL): Рекомендуется устанавливать SL на уровне, определяемом 1 \times \text{ATR} ниже средней линии (EMA/SMA) или за границей канала KC, противоположной пробою. Использование ATR обеспечивает, что SL динамически адаптируется к текущей волатильности, избегая слишком узких стопов в периоды нормального диапазона.
* Установка Тейк-Профита (TP): Поскольку цель Squeeze Play — поймать сильное направленное движение, тейк-профит может быть установлен на основе фиксированного соотношения Риск/Прибыль (например, 2:1 или 3:1) или на основе выхода цены за пределы KC. Пробитие KC часто указывает на экстремальное ценовое движение и может служить точкой для частичной или полной фиксации прибыли.
Фильтрация Против Ложных Сигналов в Рейндже
Основной недостаток торговли на пробой — высокий процент ложных сигналов в широких, но не направленных диапазонах. Использование композитного индикатора BB/KC Squeeze эффективно решает эту проблему.
KC, будучи основанным на сглаженном ATR, менее подвержен краткосрочным всплескам волатильности, чем BB. Фильтр Сжатия требует, чтобы чувствительные BB сузились внутрь сглаженных KC. Это гарантирует, что мы входим только в те прорывы, которым предшествовала длительная и аномально низкая фаза волатильности. Пробой должен быть подтвержден тем, что цена пробивает BB после завершения состояния Squeeze ON, что сигнализирует об устойчивом расширении волатильности, а не о кратковременном ценовом всплеске.
VII. Заключение
Анализ подтверждает, что наблюдение пользователя о связи между сокращением волатильности и последующими сильными движениями является фундаментально верным принципом, наилучшая реализация которого на рынке криптовалют достигается с помощью композитного индикатора BB/KC Squeeze.
Этот индикатор предоставляет точное количественное определение "на сколько" волатильность должна сократиться (SD должно упасть ниже 75% от ATR) и включает необходимые качественные предпосылки ("почему и как" — консолидация, подтвержденная моментумом). Представленный пошаговый алгоритм обеспечивает техническую основу для кодирования высокоэффективного инструмента, который идентифицирует фазы аккумуляции и генерирует сигналы пробоя, адаптированные к динамике крипторынка. Включение фильтрации на основе моментума и надлежащее управление риском, привязанное к ATR, являются ключевыми факторами для перехода от чистого индикатора к прибыльной торговой стратегии.
Wick Formation Area [MMT]The term "wick formation area" refers to a concept in financial trading where the long upper or lower shadows of a candlestick chart highlight areas of significant price rejection and potential liquidity, which often act as future support or resistance zones.
ATR Levels by TabbyATR levels refer to the horizontal lines plotted on a chart based on the Average True Range (ATR) indicator, which measures market volatility, not direction, by showing average price movement over time, helping traders set dynamic stops, targets (like 1x, 2x ATR), and identify potential breakouts or consolidation areas by observing if price moves are larger or smaller than the average range.
6-9 Session & LevelsThis indicator provides comprehensive session-based range analysis designed for intraday traders. It calculates and displays key levels based on a customizable session period (06:00-09:00am EST).
Displays session open, high, and low levels
Highlights session range with optional box visualization
Shows previous day RTH (09:30-16:00) levels
Range Levels:
25%, 50%, and 75% range levels within the session
Range deviations at x0.5, x1.0, and x2.0
Fibonacci extension levels (customizable, default x1.33 and x1.66)
Optional fill zones between Fibonacci levels
NWOG/NDOG (TABBY)NDOG — New Day Opening Gap
NDOG refers to the price gap between the previous trading day’s close and the new trading day’s open.
In markets that pause between sessions (like many futures or forex sessions under certain timezones), NDOG pinpoints a “liquidity void” created overnight — a region where no trading occurred.
When price opens higher than previous close → that’s a bullish gap; when opens lower → bearish gap.
NWOG — New Week Opening Gap
NWOG refers to the gap between the closing price at the end of the previous trading week (e.g. Friday close) and the opening price at the start of the new week (often Sunday evening or Monday open, depending on market).
Because weekend (or off-session) events — economic news, geopolitical developments, global sentiment changes — can shift demand/supply when markets are closed, a NWOG often reflects that shift as a visible jump or drop in price once trading resumes.
tlg13ts
Clouds and Lines: You will now clearly see the Ichimoku Cloud and the EMA line. If the price is within the cloud, you won't need to ask, "Why didn't I get a signal?" because you will be able to see that price is inside the cloud.
Top Right Panel (Dashboard): This is your cockpit.
For example, you are waiting for a signal, but it doesn't arrive. You look at the table: It reads "ADX: Weak (12)." You realize that the trend strength is insufficient, which is why there is no signal.
Or it reads "SMC Structure: Bearish Structure" in red. This means the market has broken the recent low, making it risky to open a long (buy) position.
Small "X" Marks: These represent the WaveTrend BUY/SELL crossovers. They won't always trigger a "BUY" label (if other filters do not allow it), but you will know that a crossover has occurred there.
RTH Highs & Lows (Unmitigated) [Sword & Shield]A clean, no-repaint indicator that marks unmitigated RTH (Regular Trading Hours) Highs and Lows. This indicator automatically tracks daily NYSE RTH session highs and lows, then draws them as horizontal levels that persist until price taps (mitigates) them.
Features
RTH Session Detection — Tracks NYSE Regular Trading Hours only (09:30–16:00 New York time). Premarket and overnight sessions are ignored. No Repainting — Levels are locked in only after the RTH session closes. What you see is what you get.
High is mitigated when price trades at or above the level
Low is mitigated when price trades at or below the level
Once mitigated, the level is permanently removed from the chart
Dynamic Lines & Labels — Lines extend from the formation bar to the current bar, moving with price action in real-time. Labels stay positioned on the right side for easy visibility. Built-in Alerts — Get notified instantly when any RTH level is tapped. Alert message format: RTH High (Jan 12) tapped at 4765.25 Clean Label Format
RTH High (Jan 12) (4765.25)
RTH Low (Jan 12) (4728.50)
Stores up to 50 levels (configurable) — Oldest levels are automatically removed when capacity is reached.
Settings
High Level Color — Color for RTH High lines/labels (default: Red)
Low Level Color — Color for RTH Low lines/labels (default: Green)
Line Width — Thickness of level lines (default: 1)
Line Style — Solid, Dashed, or Dotted (default: Solid)
Max Levels to Store — Number of historical levels to keep (default: 50)
Enable Alerts — Toggle alert notifications (default: On)
How to Use
Add the indicator to any chart (works best on intraday timeframes)
Watch for unmitigated RTH levels as potential support/resistance zones
Set up alerts to get notified when levels are tapped
Use levels for entries, exits, or as targets
Alert Setup
Click on the indicator name → Add Alert
Set condition to "Any alert() function call"
Configure your preferred notification method (popup, email, webhook, mobile push)
Notes
Best used on futures (ES, NQ, etc.) and stocks during US market hours
Works on any timeframe
Zero repainting — levels only appear after RTH session closes
Efficient code with no unnecessary loops
© Sword & Shield
LibBarLibBar is a lightweight and practical Pine Script library designed to simplify candlestick analysis.
It provides a set of helper functions for identifying candle type, measuring body and wick sizes, and evaluating candle structure.
Perfect for building indicators, pattern detectors, or any script that relies on detailed bar-level analysis.
Available Functions
isBull(index) - Returns true if the bar is bullish.
isBear(index) - Returns true if the bar is bearish.
getBody(index) - Returns the candle’s body size.
getUpperWick(index) - Returns the size of the upper wick.
getLowerWick(index) - Returns the size of the lower wick.
getSize(index) - Returns the total candle size (high − low).
getBodyPercentage(index) - Returns the body size as a percentage of total candle size.
getUpperWickPercentage(index) - Returns the upper wick size as a percentage of the candle.
getLowerWickPercentage(index) - Returns the lower wick size as a percentage of the candle.
RSI & Bull Bear Power ProRSI & Bull Bear Power Pro
RSI & Bull Bear Power Pro is an advanced momentum confirmation indicator that combines RSI behavior with real Bull–Bear market pressure. It detects strong reversals, trend continuation setups, exhaustion zones, and divergence, helping you filter noise and avoid weak entry signals. Works on all markets and timeframes and includes strong buy/sell alerts with non-repainting logic.
FEATURE HIGHLIGHTS
• RSI + Bull/Bear pressure
• Strong Buy / Strong Sell alerts
• Divergence detection
• Trend confirmation
• Exhaustion zones
• No repaint
• Works on every market & timeframe
WHY USE IT
Traditional RSI often gives late or weak signals. By confirming momentum with directional power, this tool shows when buyers or sellers actually take control, improving entry timing and filtering false setups.
WHO IS IT FOR
Scalpers, day traders, swing traders, and anyone who needs high-probability reversal and momentum confirmation signals.
INDICATOR DEFINITIONS (Short Technical Notes)
RSI (Relative Strength Index)
Measures momentum by comparing recent gains and losses. It helps identify overbought/oversold conditions and momentum shifts.
Smoothed RSI
A moving average applied to RSI to reduce noise and provide a clearer momentum reading.
RSI Momentum
Shows whether momentum is increasing or decreasing by comparing current RSI to its previous value.
RSI Trend Condition
Defines trend direction by comparing RSI to its short moving average, helping identify bullish or bearish momentum phases.
Bull Power
Measures how far the high price is above the EMA. Indicates bullish pressure and buyer strength.
Bear Power
Measures how far the low price is below the EMA. Indicates bearish pressure and seller strength.
Bull/Bear Power (BBP Combined)
Combines bull and bear power into one value, showing the balance between buying and selling pressure.
BBP Increasing Trend
Checks if power is rising compared to the previous bar, confirming strength in the current direction.
BBP Positive/Negative Zone
Indicates if the market power is dominated by buyers (positive) or sellers (negative).
Strong Buy Signal
Triggered when RSI exits oversold AND Bull/Bear Power turns positive at the same time.
Strong Sell Signal
Triggered when RSI exits overbought AND Bull/Bear Power turns negative at the same time.
Normal Buy / Sell Signals
Conditional mid-level signals based on momentum changes without full confirmation.
Bullish Divergence
Price makes a lower low while RSI makes a higher low, indicating a potential bullish reversal.
Bearish Divergence
Price makes a higher high while RSI makes a lower high, indicating a potential bearish reversal.
Stop guessing momentum strength. Trade with real confirmation and see who truly controls the market.
SMT [Basic] by TMUMajor market moves often align with Key Time Cycle SMTs. This indicator helps you detect SMTs on lower timeframes and identify Key Market Reversals in real-time.
For a more advanced free version and to learn more about SMTs, visit: SMTdetector.com.
LeO Nam - Thỏ TraderHello everyone, this indicator is designed to help you fight across all battlefields with a minimum win rate of 70% or higher. It can be used on multiple timeframes and delivers the highest efficiency on the M5 and M15 timeframes, which currently offer the best win-rate performance.
The indicator already includes full TP/SL levels — you simply need to follow the signals.
Note: When using the AE indicator, you must strictly follow the trading rules, enter only at valid breakout signals, set proper TP/SL, and apply proper risk management. Absolutely do NOT go all-in.
DEMA Percentile Standard DeviationDouble Exponential Moving Average (DEMA) for smooth trend identification, percentiles to gauge price position relative to its past, and Standard Deviation (SD) for volatility, creating statistically defined bands to signal potential reversals or entries when price moves far from its DEMA-based mean within these dynamic zones, acting as a sophisticated way to find statistically extreme & reversion opportunities in markets. It uses the DEMA to create a centerline, calculates percentiles on this DEMA, and then uses SD to define upper/lower boundaries for trading signals, showing where price deviates significantly from its recent smoothed path.
Balanced Price RangeBPR is defined as a price zone on a chart where two opposite‐direction Fair Value Gaps (FVGs) overlap — one gap created by a strong move in one direction, then another gap created by a strong move in the opposite direction.
Conceptually, this overlapping zone represents a temporary equilibrium between buying and selling pressure — a point where earlier “imbalance” (represented by the FVGs) has been neutralized.
In simpler terms: first the market moves fast leaving a gap (imbalance), then pushes back leaving another gap, and where those two gaps intersect becomes the BPR — a zone of “balance.”
MTF STDVThis indicator is based on the classical indicator Standard Deviation.
MTF STDV
Monthly
Weekly
Daily
4H
1H
STDV
1-Hour Trend Breakout Strategy (Scaled Entry Version)This strategy is a trend-following system on the Bitcoin 1-hour chart.
It enters in the direction of the market when price breaks an upward or downward trendline, using scaled (partial) entries.
Entry Rules
Go long when price breaks an upward trendline.
Go short when price breaks a downward trendline.
Position size is split into several parts and entered gradually.
Trade Management
When the first take-profit level (TP1) is reached, a portion of the position is closed.
The stop-loss on the remaining position is moved to break-even (entry price) to lock in profits and manage risk.
Performance
Period: 2019-12-16 to 2025-12-07
Total P&L: +2,385%
Maximum Drawdown (MDD): 28%
Win Rate: 79%
Profit Factor: 3.1
TradeAxis Trendlines [XAUUSD]Rule-based trendline framework for XAUUSD built specifically for intraday trendline traders on TradingView.
This script automatically maps filtered trendlines and uses several internal algorithms to evaluate and organize key structures. The indicator includes a range of settings so you can test what works best for your own approach, and it also provides a pre-tested configuration as a recommended starting point.
Important notes:
• Designed and tested for XAUUSD, 15-minute timeframe.
• The script does not execute trades or manage orders – it only plots structure.
• This is not financial or investment advice. All trading decisions and risk remain your responsibility.
This is an invite-only script.
OHLC StatMap (Multi-Timeframe)OHLC StatMap (Multi-Timeframe)
Statistical OHLC Projections is an indicator designed to offer users a customizable deep-dive on measuring historical price zones.
The indicator separates price into two distinct levels, "Manipulation" and "Distribution", where the idea is that for higher timeframe candles, e.g. an up-close candle, the distance from the open to the bottom of the wick would constitute the Manipulation, and the rest would be considered the Distribution.






















