SMA 90 Crossover Signalمؤشر Samer MA Flow هو أداة فنية متقدمة تعتمد على ثلاثة متوسطات متحركة بسيطة (SMA) بفترات 45 و90 و180.
يعتمد المؤشر على سلوك السعر حول المتوسط 90 (الخط الأزرق) لتوليد إشارات دخول وخروج واضحة:
• إشارة شراء عندما يخترق السعر SMA 90 صعودًا.
• إشارة بيع عندما يكسر السعر SMA 90 هبوطًا.
كما يُظهر المؤشر SMA 45 و180 لمتابعة الاتجاه العام والزخم بشكل بصري واضح.
الميزات:
• إشارات دخول/خروج بسيطة وفعالة.
• يعرض SMA 45 / 90 / 180 بوضوح.
• يعمل على جميع الفريمات الزمنية.
• مناسب للمبتدئين والمحترفين.
• يمكن دمجه مع أدوات فنية أخرى
Samer MA Flow is an advanced yet simple indicator based on three Simple Moving Averages (SMA): 45, 90, and 180.
It generates clear buy and sell signals based on price interaction with the SMA 90 (the blue line):
• Buy signal when the price crosses above SMA 90.
• Sell signal when the price crosses below SMA 90.
The indicator also displays SMA 45 and 180 to help identify trend structure and momentum visually.
Features:
• Simple and effective entry/exit signals.
• Visualizes SMA 45 / 90 / 180.
• Works on all timeframes.
• Suitable for beginners and professionals.
• Easy to combine with other technical tools
Análise de Tendência
Demand Index (Hybrid Sibbet) by TradeQUO\ Demand Index (Hybrid Sibbet) by TradeQUO \
\ Overview\
The Demand Index (DI) was introduced by James Sibbet in the early 1990s to gauge “real” buying versus selling pressure by combining price‐change information with volume intensity. Unlike pure price‐based oscillators (e.g. RSI or MACD), the DI highlights moves backed by above‐average volume—helping traders distinguish genuine demand/supply from false breakouts or low‐liquidity noise.
\ Calculation\
\
\ \ Step 1: Weighted Price (P)\
For each bar t, compute a weighted price:
```
Pₜ = Hₜ + Lₜ + 2·Cₜ
```
where Hₜ=High, Lₜ=Low, Cₜ=Close of bar t.
Also compute Pₜ₋₁ for the prior bar.
\ \ Step 2: Raw Range (R)\
Calculate the two‐bar range:
```
Rₜ = max(Hₜ, Hₜ₋₁) – min(Lₜ, Lₜ₋₁)
```
This Rₜ is used indirectly in the exponential dampener below.
\ \ Step 3: Normalize Volume (VolNorm)\
Compute an EMA of volume over n₁ bars (e.g. n₁=13):
```
EMA_Volₜ = EMA(Volume, n₁)ₜ
```
Then
```
VolNormₜ = Volumeₜ / EMA_Volₜ
```
If EMA\_Volₜ ≈ 0, set VolNormₜ to a small default (e.g. 0.0001) to avoid division‐by‐zero.
\ \ Step 4: BuyPower vs. SellPower\
Calculate “raw” BuyPowerₜ and SellPowerₜ depending on whether Pₜ > Pₜ₋₁ (bullish) or Pₜ < Pₜ₋₁ (bearish). Use an exponential dampener factor Dₜ to moderate extreme moves when true range is small. Specifically:
• If Pₜ > Pₜ₋₁,
```
BuyPowerₜ = (VolNormₜ) / exp
```
otherwise
```
BuyPowerₜ = VolNormₜ.
```
• If Pₜ < Pₜ₋₁,
```
SellPowerₜ = (VolNormₜ) / exp
```
otherwise
```
SellPowerₜ = VolNormₜ.
```
Here, H₀ and L₀ are the very first bar’s High/Low—used to calibrate the scale of the dampening. If the denominator of the exponential is near zero, substitute a small epsilon (e.g. 1e-10).
\ \ Step 5: Smooth Buy/Sell Power\
Apply a short EMA (n₂ bars, typically n₂=2) to each:
```
EMA_Buyₜ = EMA(BuyPower, n₂)ₜ
EMA_Sellₜ = EMA(SellPower, n₂)ₜ
```
\ \ Step 6: Raw Demand Index (DI\_raw)\
```
DI_rawₜ = EMA_Buyₜ – EMA_Sellₜ
```
A positive DI\_raw indicates that buying force (normalized by volume) exceeds selling force; a negative value indicates the opposite.
\ \ Step 7: Optional EMA Smoothing on DI (DI)\
To reduce choppiness, compute an EMA over DI\_raw (n₃ bars, e.g. n₃ = 1–5):
```
DIₜ = EMA(DI_raw, n₃)ₜ.
```
If n₃ = 1, DI = DI\_raw (no further smoothing).
\
\ Interpretation\
\
\ \ Crossing Zero Line\
• DI\_raw (or DI) crossing from below to above zero signals that cumulative buying pressure (over the chosen smoothing window) has overcome selling pressure—potential Long signal.
• Crossing from above to below zero signals dominant selling pressure—potential Short signal.
\ \ DI\_raw vs. DI (EMA)\
• When DI\_raw > DI (the EMA of DI\_raw), bullish momentum is accelerating.
• When DI\_raw < DI, bullish momentum is weakening (or bearish acceleration).
\ \ Divergences\
• If price makes new highs while DI fails to make higher highs (DI\_raw or DI declining), this hints at weakening buying power (“bearish divergence”), possibly preceding a reversal.
• If price makes new lows while DI fails to make lower lows (“bullish divergence”), this may signal waning selling pressure and a potential bounce.
\ \ Volume Confirmation\
• A strong price move without a corresponding rise in DI often indicates low‐volume “fake” moves.
• Conversely, a modest price move with a large DI spike suggests true institutional participation—often a more reliable breakout.
\
\ Usage Notes & Warnings\
\
\ \ Never Use DI in Isolation\
It is a \ filter\ and \ confirmation\ tool—combine with price‐action (trendlines, support/resistance, candlestick patterns) and risk management (stop‐losses) before executing trades.
\ \ Parameter Selection\
• \ Vol EMA length (n₁)\ : Commonly 13–20 bars. Shorter → more responsive to volume spikes, but noisier.
• \ Buy/Sell EMA length (n₂)\ : Typically 2 bars for fast smoothing.
• \ DI smoothing (n₃)\ : Usually 1 (no smoothing) or 3–5 for moderate smoothing. Long DI\_EMA (e.g. 20–50) gives a slower signal.
\ \ Market Adaptation\
Works well in liquid futures, indices, and heavily traded stocks. In thinly traded or highly erratic markets, adjust n₁ upward (e.g., 20–30) to reduce noise.
---
\ In Summary\
The Demand Index (James Sibbet) uses a three‐stage smoothing (volume → Buy/Sell Power → DI) to reveal true demand/supply imbalance. By combining normalized volume with price change, Sibbet’s DI helps traders identify momentum backed by real participation—filtering out “empty” moves and spotting early divergences. Always confirm DI signals with price action and sound risk controls before trading.
PCA Regime & Conviction IndexThis indicator diagnoses the underlying character and conviction of the market's current behavior, going far beyond simple price direction.
Instead of just asking "Is the market going up or down?", this tool answers the more critical question: "How is the market moving right now?"
To do this, it provides two key pieces of information:
1. It Identifies the Current Market Phase.
The indicator classifies the market's behavior into one of four distinct phases, which are displayed as a clear background color and an explicit text label:
Quiet Bull: A steady, healthy, low-volatility uptrend.
Volatile Bull: An explosive, energetic, or potentially exhaustive uptrend.
Quiet Bear: A slow, grinding, low-volatility downtrend or "bleed."
Volatile Bear: A sharp, high-energy, or panic-driven downtrend.
This tells you the fundamental personality of the market at a glance.
2. It Measures the Conviction of That Phase.
Alongside identifying the phase, the indicator plots a "Conviction Index"—a clear gold line oscillating between 0 and 100. This index measures the strength and clarity of the current market phase.
A high conviction level (e.g., above 75) means the current phase is strong, stable, and decisive.
A low conviction level (e.g., below 25) means the phase is weak, uncertain, and lacks energy.
The Ultimate Benefit:
By understanding both what the market is doing (the phase) and how strongly it's doing it (the conviction), a trader can make more intelligent decisions. It helps you adapt your strategy in real-time by providing a clear framework to:
Confidently pursue trends when the market is in a high-conviction "Quiet Bull" or "Quiet Bear" phase.
Exercise caution and manage risk during high-conviction "Volatile" phases.
Avoid whipsaws and frustration by recognizing when the market has low conviction and is likely to be choppy and unpredictable, regardless of the phase.
Adaptive Volume‐Demand‐Index (AVDI)Demand Index (according to James Sibbet) – Short Description
The Demand Index (DI) was developed by James Sibbet to measure real “buying” vs. “selling” strength (Demand vs. Supply) using price and volume data. It is not a standalone trading signal, but rather a filter and trend confirmer that should always be used together with chart structure and additional indicators.
---
\ 1. Calculation Basis\
1. Volume Normalization
$$
\text{normVol}_t
= \frac{\text{Volume}_t}{\mathrm{EMA}(\text{Volume},\,n_{\text{Vol}})_t}
\quad(\text{e.g., }n_{\text{Vol}} = 13)
$$
This smooths out extremely high volume spikes and compares them to the average (≈ 1 means “average volume”).
2. Price Factor
$$
\text{priceFactor}_t
= \frac{\text{Close}_t - \text{Open}_t}{\text{Open}_t}.
$$
Positive values for bullish bars, negative for bearish bars.
3. Component per Bar
$$
\text{component}_t
= \text{normVol}_t \times \text{priceFactor}_t.
$$
If volume is above average (> 1) and the price rises slightly, this yields a noticeably positive value; conversely if the price falls.
4. Raw DI (Rolling Sum)
Over a window of \$w\$ bars (e.g., 20):
$$
\text{RawDI}_t
= \sum_{i=0}^{w-1} \text{component}_{\,t-i}.
$$
Alternatively, recursively for \$t \ge w\$:
$$
\text{RawDI}_t
= \text{RawDI}_{t-1}
+ \text{component}_t
- \text{component}_{\,t-w}.
$$
5. Optional EMA Smoothing
An EMA over RawDI (e.g., \$n\_{\text{DI}} = 50\$) reduces short-term fluctuations and highlights medium-term trends:
$$
\text{EMA\_DI}_t
= \mathrm{EMA}(\text{RawDI},\,n_{\text{DI}})_t.
$$
6.Zero Line
Handy guideline:
RawDI > 0: Accumulated buying power dominates.
RawDI < 0: Accumulated selling power dominates.
2. Interpretation & Application
Crossing Zero
RawDI above zero → Indication of increasing buying pressure (potential long signal).
RawDI below zero → Indication of increasing selling pressure (potential short signal).
Not to be used alone for entry—always confirm with price action.
RawDI vs. EMA_DI
RawDI > EMA\_DI → Acceleration of demand.
RawDI < EMA\_DI → Weakening of demand.
Divergences
Price makes a new high, RawDI does not make a higher high → potential weakness in the uptrend.
Price makes a new low, RawDI does not make a lower low → potential exhaustion of the downtrend.
3. Typical Signals (for Beginners)
\ 1. Long Setup\
RawDI crosses zero from below,
RawDI > EMA\_DI (acceleration),
Price closes above a short-term swing high or resistance.
Stop-Loss: just below the last swing low, Take-Profit/Trailing: on reversal signals or fixed R\:R.
2. Short Setup
RawDI crosses zero from above,
RawDI < EMA\_DI (increased selling pressure),
Price closes below a short-term swing low or support.
Stop-Loss: just above the last swing high.
---
4. Notes and Parameters
Recommended Values (Beginners):
Volume EMA (n₍Vol₎) = 13
RawDI window (w) = 20
EMA over DI (n₍DI₎) = 50 (medium-term) or 1 (no smoothing)
Attention:\
NEVER use in isolation. Always in combination with price action analysis (trendlines, support/resistance, candlestick patterns).
Especially during volatile news phases, RawDI can fluctuate strongly → EMA\_DI helps to avoid false signals.
---
Conclusion The Demand Index by James Sibbet is a powerful filter to assess price movements by their volume backing. It shows whether a rally is truly driven by demand or merely a short-term volume anomaly. In combination with classic chart analysis and risk management, it helps to identify robust entry points and potential trend reversals earlier.
Green Trend and Adjustable Chop Zone Highlightallows for indication of when the indicator is green. Green means out of the chop and trending. Red means choppy and no trend.
FVG Range Filter0x278's FVG Range Filter
Overview
The FVG Range Filter is a TradingView indicator designed to identify and display Fair Value Gaps (FVGs) on your chart. FVGs are areas of price imbalance that often act as significant zones for potential price retracement or reversal. This indicator filters out irrelevant gaps, showing only those that are within a specified price range and time frame, making it easier to focus on high-probability trading opportunities.
This guide is crafted to help both novice and experienced traders understand how to use this indicator effectively, even if you're new to the concept of FVG trading. We'll cover what FVGs are, how the indicator works, how to interpret its visual elements, and how to apply it in various trading scenarios.
What are Fair Value Gaps (FVGs)?
Fair Value Gaps occur when the price of an asset moves so quickly in one direction that it leaves a 'gap' or 'void' on the chart where no trading activity occurred. These gaps represent areas of imbalance between supply and demand, often created by strong buying or selling pressure. Traders use FVGs to identify potential areas where price might return to 'fill' the gap, offering opportunities for entries or exits.
Bullish FVG : This happens when price jumps upward, leaving a gap below. It suggests strong buying pressure and often acts as a support zone when price retraces.
Bearish FVG : This occurs when price drops sharply, leaving a gap above. It indicates strong selling pressure and often acts as a resistance zone when price retraces.
How the FVG Range Filter Works
The FVG Range Filter indicator automatically detects these gaps based on a specific three-bar pattern that identifies significant price imbalances. It then applies filters to ensure only relevant FVGs are displayed:
Range Filter : Only shows FVGs whose midpoint is within a user-defined percentage of the current price. This keeps the focus on gaps that are close enough to be actionable.
Time Filter : Only displays FVGs that are younger than a specified number of bars, ensuring you're looking at recent and relevant price action.
Invalidation : Once the price trades through the midpoint of an FVG, the gap is considered 'filled' or invalidated, and it is removed from the chart.
This filtering mechanism declutters your chart, highlighting only the most pertinent FVGs for your trading decisions.
Indicator Settings
The FVG Range Filter offers customizable inputs to tailor its behavior to your trading style:
Display Range (%) : This sets the percentage range from the current price within which FVGs are shown. A lower value (e.g., 1.0%) shows only gaps very close to the current price, while a higher value (e.g., 5.0%) includes gaps further away. Default is 1.0%.
Look-back Bars : This determines how far back in time the indicator looks for FVGs. It also limits how long a gap remains visible if it hasn't been invalidated. Default is 1000 bars.
Show Bullish FVGs : Toggle to display bullish FVGs (green boxes by default). Default is enabled.
Show Bearish FVGs : Toggle to display bearish FVGs (red boxes by default). Default is enabled.
Box Opacity (0-100) : Adjusts the transparency of the FVG boxes on the chart. A value of 0 is fully transparent (invisible), while 100 is fully opaque. Default is 33 for a subtle appearance.
Visual Elements and Interpretation
The indicator draws rectangular boxes on your chart to represent FVGs. Understanding these visual elements is key to using the indicator effectively:
Green Boxes : Represent bullish FVGs. These are areas where price gapped upward, suggesting potential support zones. If price retraces to this area, it might bounce off as buyers step in to defend the level.
Red Boxes : Represent bearish FVGs. These are areas where price gapped downward, indicating potential resistance zones. If price retraces to this area, it might face selling pressure and reverse downward.
Box Position and Extension : Each box starts at the bar where the FVG was detected and extends to the right, updating dynamically as new bars form. This extension helps maintain visibility until the gap is either invalidated or falls out of the look-back period.
Disappearance of Boxes : A box disappears from the chart in two scenarios:
Price Moves Away : If the midpoint of the FVG moves outside the specified display range percentage from the current price, or if the FVG becomes older than the look-back bars limit, the box is removed (though the gap data persists in memory for potential re-display if conditions are met again).
Invalidation : If price trades through the midpoint of the FVG (i.e., the low of a candle goes below the midpoint for a bullish FVG, or the high goes above the midpoint for a bearish FVG), the gap is considered filled, and the box is permanently removed from the chart.
Trading Scenarios with FVG Range Filter
Below are detailed trading scenarios to help you understand how to use the FVG Range Filter in practical situations. These scenarios assume you're trading with the trend or looking for reversals at key levels.
Scenario 1: Bullish FVG as Support for Long Entry
Setup : You're trading a stock in an uptrend on a 15-minute chart. The FVG Range Filter displays a green box (bullish FVG) after a sharp upward move earlier in the day.
Interpretation : This green box indicates a zone of imbalance where price gapped up, likely due to strong buying interest. Since it's still within the display range and look-back period, it's a relevant support zone.
Action : Wait for price to retrace back to the top edge of the green box. Look for confirmation of support, such as a bullish candlestick pattern (e.g., hammer or engulfing) or increased volume, indicating buyers are stepping in.
Entry : Enter a long position near the top of the FVG box, setting a stop-loss just below the bottom of the box to protect against a breakdown.
Target : Aim for the next resistance level or a predefined risk-reward ratio (e.g., 1:2). If another bullish FVG forms above, consider that as a potential target.
Exit : Exit the trade if price breaks below the bottom of the FVG (invalidation), or if the box disappears due to price trading through the midpoint, signaling the gap is filled.
Scenario 2: Bearish FVG as Resistance for Short Entry
Setup : You're trading a cryptocurrency on a 1-hour chart during a downtrend. The indicator shows a red box (bearish FVG) after a sharp downward move a few hours ago.
Interpretation : The red box marks a zone where price gapped down, indicating strong selling pressure. As long as it's within the display range and look-back period, it remains a potential resistance zone.
Action : Wait for price to rally back to the bottom edge of the red box. Look for signs of rejection, such as a bearish candlestick pattern (e.g., shooting star or engulfing) or decreasing volume, suggesting sellers are defending this level.
Entry : Enter a short position near the bottom of the FVG box, placing a stop-loss just above the top of the box to guard against a breakout.
Target : Target the next support level or a favorable risk-reward ratio. If a new bearish FVG appears below, it could serve as a potential target.
Exit : Exit if price breaks above the top of the FVG (invalidation), or if the box disappears because price has traded through the midpoint, indicating the gap is no longer relevant.
Scenario 3: Filtering Out Irrelevant FVGs During Choppy Markets
Setup : You're trading forex on a 5-minute chart during a period of consolidation with no clear trend. The chart shows frequent small price jumps, but the FVG Range Filter displays very few boxes.
Interpretation : The indicator is filtering out FVGs that are either too far from the current price (outside the display range percentage) or too old (beyond the look-back bars). This helps avoid false signals in a non-trending market.
Action : Recognize that the absence of FVGs on the chart suggests no high-probability setups at the moment. Avoid forcing trades based on minor price movements that don't meet the filter criteria.
Entry : Wait for a clear trend to emerge and for new FVGs to appear within the filter parameters before considering any trades.
Target/Exit : Follow the trend direction once FVGs are displayed, using the edges of the boxes as potential entry or exit zones as described in the previous scenarios.
Scenario 4: Using FVGs for Risk Management
Setup : You're already in a long position on an index futures contract on a 30-minute chart, and the FVG Range Filter shows a green box below your entry point.
Interpretation : The green box represents a bullish FVG that could act as a support zone. Since price hasn't yet reached the midpoint (which would invalidate the FVG), it remains a valid reference point for managing risk.
Action : Adjust your stop-loss to just below the bottom of the green box. This placement uses the FVG as a logical invalidation level, assuming that a break below this support zone negates the bullish premise of your trade.
Entry : No new entry is needed since you're already in the trade.
Target/Exit : Keep your original target unless a new bearish FVG forms above, which might indicate resistance. Exit if price breaks below the FVG or if the box disappears due to invalidation.
Tips for Using the FVG Range Filter
Combine with Trend Analysis : FVGs are most effective when traded in the direction of the prevailing trend. Use higher timeframe analysis or other indicators to confirm the overall market direction before acting on FVGs.
Adjust Settings for Market Conditions : In volatile markets (like cryptocurrencies), you might increase the display range percentage to capture more FVGs. In less volatile markets (like certain stocks), a tighter range might be more appropriate.
Timeframe Selection : The indicator works on all timeframes, but lower timeframes (1-15 minutes) might show more frequent FVGs for scalping, while higher timeframes (1-4 hours) are better for swing trading with larger, more significant gaps.
Confirmation Tools : Don't rely solely on FVGs for entries. Use additional confirmation from price action (candlestick patterns), volume, or other indicators to increase the probability of success.
Monitor Invalidation : If an FVG box disappears from the chart due to price trading through its midpoint, consider it a signal that the gap is no longer relevant. Adjust your strategy accordingly.
Limitations
Not a Standalone System : The FVG Range Filter identifies potential zones of interest but does not provide entry signals, stop-loss, or take-profit levels on its own. It should be used as part of a broader trading strategy.
Market Conditions : FVGs may be less effective in strongly trending markets where price doesn't retrace to fill gaps, or in very choppy markets where too many small gaps are filtered out.
Lag in Detection : Since FVGs are based on a three-bar pattern, there is a slight delay in identifying them after the price movement has occurred.
Good Luck!
The FVG Range Filter is a powerful tool for traders looking to capitalize on price imbalances in the market. By focusing only on relevant Fair Value Gaps within a specified range and time frame, it helps declutter your chart and highlights high-probability zones for potential trades. Whether you're new to FVG trading or an experienced trader, this indicator can enhance your analysis by visually identifying key areas of support and resistance based on market inefficiencies.
Experiment with the settings to match your trading style and market conditions, and always combine the indicator's insights with other forms of analysis for the best results. Happy trading!
Directional Strength IndexThis indicator is designed to detect the dominant market direction and quantify its strength by aggregating signals across six key timeframes: 1H, 4H, 1D, 3D, 1W, and 1M.
At its core, it uses a SMEMA 'the Simple Moving Average of an EMA' as the main trend reference. This hybrid smoothing method was chosen for its balance: the EMA ensures responsiveness to recent price moves, while the SMA dampens short-term volatility. This makes the SMEMA more stable than a raw EMA and more reactive than a simple SMA, especially in noisy or volatile environments.
For each timeframe, a score between -10 and +10 is calculated. This score reflects:
- the distance of the price from the SMEMA, using ATR as a dynamic threshold
- the number of price deviations above or below the SMEMA
- the slope of the SMEMA, which adjusts the score based on momentum
These six timeframe scores are then combined into a single Global Score, using weighted averages. Three weighting profiles are available depending on your trading horizon:
- Long Term: emphasizes weekly and monthly data
- Swing Trading: gives balanced importance to all timeframes
- Short Term: prioritizes 1H and 4H action
This multi-timeframe aggregation makes the indicator adaptable to different styles while maintaining a consistent logic.
The result is displayed in a table on the chart, showing:
- the trend direction per timeframe (up, down or neutral)
- the strength score per timeframe
- the overall trend direction and strength based on the selected profile
Optional deviation bands based on ATR multiples are also plotted to provide visual context for overextensions relative to the SMEMA.
This indicator is non-repainting and built for objective, trend-based decision making.
Treasury 5HTreasury 5H Indicator Description for TradingView
Uncover Market Signals with Integrated and Exclusive Analysis
Introducing the Treasury 5H, an advanced and highly customizable technical analysis tool for traders seeking a deeper, more integrated view of the market. This robust indicator has been meticulously developed to combine the strength of established technical indicators with the intelligence of two proprietary and exclusive components: the Treasury Oscillator and Multi-Asset Correlation. The result is a powerful system that delivers buy and sell signals based on the confluence of multiple analyses, providing a unique perspective not found in other available tools.
A Symphony of Technical Indicators
The Treasury 5H harmonizes different analytical approaches to capture various facets of price movement. It incorporates classic indicators like the DMI (Directional Movement Index), ideal for identifying trend direction and strength, allowing you to filter out noise and focus on more significant movements. Alongside the DMI, the indicator utilizes the MACD (Moving Average Convergence Divergence), a versatile momentum oscillator that helps detect changes in the strength, direction, and duration of a trend. Complementing the trend and momentum analysis, a configurable Moving Average (SMA, EMA, WMA, or VWMA) provides a dynamic baseline to assess the current price position, helping to confirm the prevailing market direction.
The Exclusive Advantage: Treasury Oscillator and Multi-Asset Correlation
The true differentiator of the Treasury 5H lies in its exclusive components, developed in-house and unavailable on any other platform. The Treasury Oscillator is an innovation that allows you to compare the normalized performance of the main asset you are analyzing with up to three other assets of your choice, such as treasury bonds (Treasuries), currencies, or other relevant indices. By calculating a standard deviation score for each asset relative to its averages, the oscillator identifies performance divergences and convergences, offering valuable insights into relative strength and potential inflection points that isolated indicators might miss.
Additionally, the Multi-Asset Correlation indicator offers another layer of exclusive intermarket analysis. It calculates and compares the normalized percentage change of the main asset with up to three other user-selected assets over a defined period. This performance correlation analysis helps understand how the main asset is moving relative to other correlated (or uncorrelated) markets or instruments, providing crucial context about capital flow and overall market sentiment. The combination of these two proprietary indicators offers unprecedented analytical depth.
Unmatched Flexibility and Customization
We understand that every trader and every asset is unique. Therefore, the Treasury 5H was designed with an exceptional level of flexibility. You have full control to individually enable or disable each of the five components (DMI, MACD, Moving Average, Treasury Oscillator, Multi-Asset Correlation), allowing you to tailor the analysis to your specific preferences and strategies. Furthermore, all parameters are adjustable, from the calculation periods of each indicator (DMI, MACD, MAs, Oscillator and Correlation Periods) to reference levels (like the minimum ADX level) and the symbols of the assets to be compared in the proprietary modules. This fine-tuning capability ensures the indicator can be optimized for different assets, timeframes, and market conditions.
To further refine your strategy and increase signal precision, the Treasury 5H includes a powerful configurable trading session filter. This feature allows you to define up to three specific time periods during the day when the indicator's signals will be completely inactive. Use this strategic tool to avoid receiving signals and trading during hours known for low liquidity, unwanted excessive volatility, or simply outside your preferred operating window, ensuring you only act when market conditions are more favorable to your approach. Visual settings are also customizable, allowing you to adjust the colors for buy and sell signals, the transparency of the bar coloring, and the option to show or hide the Moving Average on the chart.
Clear and Integrated Signals
The Treasury 5H generates clear buy or sell signals when all selected and active indicators point in the same direction, ensuring a confluence-based approach for greater robustness. If the time filter is active, signals will only be generated during permitted operating periods. The signal state is visually represented by bar coloring: one color for the initial entry candle (buy or sell), a lighter shade for signal continuation, and optionally, a neutral color for periods defined as inactive. To facilitate monitoring, the indicator includes configurable alerts for new signal entries and when an existing signal is invalidated. Additionally, an information table in the corner of the chart displays the current status (buy, sell, or neutral) of each individual component and the final integrated signal, offering full transparency into the indicator's logic.
Acquire Your Competitive Edge
The Treasury 5H is not just another indicator; it's a comprehensive analysis system that integrates standard tools with exclusive, proprietary intermarket analyses. Its high degree of customization allows it to be adapted to virtually any trading style and asset. By incorporating the Treasury Oscillator and Multi-Asset Correlation, you gain insights simply unavailable in other tools. Elevate your technical analysis and make more informed trading decisions with the Treasury 5H.
How to Use the Treasury 5H Indicator
The Treasury 5H is designed as a powerful tool to complement and confirm your own market analysis, not as a standalone trading system. The key to extracting maximum value from this indicator lies in its intelligent integration with your personal analytical approach, whether focused on technical, fundamental, macroeconomic aspects, or a combination thereof.
The recommended workflow begins with your in-depth analysis of the asset and market context. Identify potential opportunities, support and resistance levels, trends, and relevant patterns based on your preferred methods. Once you have a clear view and a trade hypothesis, patiently wait for the Treasury 5H to generate a buy or sell signal that aligns with and corroborates your analysis. Always remember: the indicator provides a possible entry signal based on the confluence of active components, but the final decision to execute the trade must always be yours, validated by your own market reading.
When a signal is generated, it is visually highlighted by the bar's color (blue for buy, red for sell, by default). This first opaque colored bar indicates the initial moment of signal confluence. Subsequent bars, with the same color but more transparent, signal that the conditions that generated the initial signal still persist, and the asset is theoretically continuing in the indicated direction. However, how you act after the signal depends on your strategy. Many traders prefer not to enter immediately on the first signal bar but rather wait for additional confirmation, such as a pullback towards the signal bar or a clear breakout above the high (for buys) or below the low (for sells) of that bar. Test and adapt your entry strategy to find what works best for you in conjunction with the Treasury 5H signals.
DualWave Trend Signal [Auto1491]📘 English Description
DualWave Trend Signal is a trend-following indicator based on dual-layer dynamic price zones.
It computes two independent high/low ranges:
Outer Range (Z): a longer-term view of market extremes
Inner Range (Z1): a shorter-term perspective to refine entry/exit signals
The indicator dynamically adjusts two trend lines, then determines whether the price action confirms a bullish, bearish, or neutral trend. BUY and SELL signals are visualized on the chart, and bar colors reflect trend direction for quick reference.
✅ Features:
Dual-band price range logic for trend detection
Dynamic trend line adjustment based on historical highs/lows
Visual buy/sell signals at key inflection points
Color-coded bars: green (bullish), red (bearish), unchanged (neutral)
Real-time label showing the current market condition
🎯 How to Use:
Bullish when close > outer trend AND inner trend
Bearish when close < outer trend AND inner trend
Neutral otherwise
Entry signals appear on the first bar confirming a trend change
Suitable for intraday traders and scalpers in high-volatility markets like gold, forex, and indices.
📙 中文說明
DualWave Trend Signal 是一款基於雙重區間邏輯的趨勢判斷指標,透過動態高低區間辨識市場多空狀態。
本指標計算兩組不同比例的區間:
外層區間(Z):長期波動參考,捕捉趨勢主幹
內層區間(Z1):短期變化參考,用於精準進出點
當價格突破這兩條趨勢線,即顯示「多頭」或「空頭」訊號,並將K棒上色,方便用戶快速判斷目前市場狀態。
✅ 特點:
採用雙趨勢帶邏輯(內層+外層)
根據高低價動態調整趨勢線
明確的買賣訊號圖示
自動變色K棒:綠(多)、紅(空)、不變(盤整)
圖表右上實時顯示「目前趨勢狀態」
🎯 使用方式:
多頭:當收盤價 > 內層與外層趨勢線
空頭:當收盤價 < 內層與外層趨勢線
盤整:未同時突破上述趨勢線
當趨勢轉變時會出現首次進場訊號
適用於黃金、外匯、指數等高波動性市場的日內交易者。
Candle Range 915Candle Range 915 (CR915) is a multi-session visualization tool designed for traders applying Candle Range Theory to intraday decision-making.
This script highlights key range zones formed by the following session-specific candles (based on New York time):
• 9:00 PM – Asia session
• 1:00 AM – London expansion candle
• 5:00 AM – NY continuation/reversal candle
• 8:00 AM – CRT staging candle
• 9:00 AM – CRT decision candle
• 5:00 PM – CBDR (Central Bank Dealers Range)
For each session, the high, low, and optional equilibrium (EQ) levels are plotted with customizable extensions. Labels are placed at the end of each range, and breakout alerts are available for the 8:00 AM and 5:00 PM CRT zones.
The script also includes:
Previous Day High/Low reference lines
EQ toggle per session
Dynamic Daylight Saving Time (DST) adjustment
Optional labeling and color control
This tool is built with a time-based narrative in mind and supports traders analyzing structure, order flow, and key liquidity windows across intraday sessions.
Note: This is a visualization tool only. It does not generate signals or make buy/sell recommendations.
Enhanced Market StructureThe Enhanced Market Structure (EMS) indicator is a powerful technical tool designed to visually detect and annotate shifts in market structure based on swing highs and lows. By identifying Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL), this indicator helps traders determine the prevailing trend direction and important structural levels on any timeframe.
Core Logic:
Uses pivot detection with configurable swing strength to identify significant highs and lows.
Tracks the three most recent swing highs and lows to establish trend conditions:
Uptrend: Higher High + Higher Low
Downtrend: Lower High + Lower Low
Neutral: No clear structure
Features:
✅ Structure Lines:
Draws horizontal lines at the latest structural highs and lows.
✅ Dynamic Labels:
Displays “HH”, “HL”, “LH”, or “LL” based on the current market trend. Labels update in real-time as structure changes (can be turned on/off via settings).
✅ Trend Table:
A live trend status panel in the top-right of the chart displays the current structure status:
🔼 Bullish
🔽 Bearish
◼️ Neutral
✅ Customizable Parameters:
Swing Strength: Number of candles to detect pivots.
Line Width: Thickness of structure lines.
Toggle Labels: Option to display or hide structural labels.
🛠 Best Use Cases:
Trend Confirmation: Quickly assess the directional bias of the market.
Entry/Exit Planning: Use structural breaks (e.g., LL or HH) as confirmation signals.
Swing Trading: Identify key levels for pullbacks and reversals.
🧩 How to Use:
Add the indicator to your chart on any timeframe.
Adjust the “Swing Strength” to suit your trading style (default = 5).
Observe the trend label and structure lines to guide trading decisions.
Trapper Support & ResistanceOverview
Trapper Support & Resistance Zones is a precision-based tool designed to automatically identify key horizontal levels where price has historically shown reaction. These levels often serve as critical decision zones for traders assessing trend continuation or reversal potential.
Functionality
Plots support and resistance zones using recent swing highs and lows.
Optional retest confirmation before zones are validated.
Works dynamically across timeframes and asset types.
Zones adapt in real time as price action evolves.
Levels are clearly extended and priced for immediate use on the chart.
Designed for confluence with supply/demand, breakouts, and trend reversal strategies.
Who It’s For
This indicator is useful for traders seeking structured visual guidance to navigate consolidation, breakouts, and pullback areas. It serves scalpers, swing traders, and long-term investors alike across crypto, equities, forex, or indices.
How to Use the “Trapper Support & Resistance Zones” Indicator
Apply to Any Chart or Timeframe.
Works best on 5m to Daily charts, but dynamically adapts to any timeframe.
Zone Interpretation
Green lines = Support zones (bottom of prior candle bodies).
Red lines = Resistance zones (top of prior candle bodies).
These zones highlight key levels where price historically reacted.
Retest Filter (Optional)
Enable “Retest Filter” in settings to only show levels that have been respected again after formation.
Customization
Use the input panel to adjust pivot strength and retest logic.
Set line thickness or duration (extend right) for better visual clarity.
Trade Ideas
Zones can be used for breakout confirmation or mean reversion setups.
Combine with volume or momentum indicators for higher-confidence trades.
Disclaimer
This tool is intended solely for educational and informational purposes. It does not constitute financial advice, and no outcome or profitability is guaranteed. By using this script, you acknowledge that the author makes no claim of investment performance and assumes no liability. The script is not exclusively for qualified or institutional investors.
Essa - Multi-Timeframe LevelsEnhanced Multi‐Timeframe Levels
This indicator plots yearly, quarterly and monthly highs, lows and midpoints on your chart. Each level is drawn as a horizontal line with an optional label showing “ – ” (for example “Apr 2025 High – 1.2345”). If two or more timeframes share the same price (within two ticks), they are merged into a single line and the label lists each timeframe.
A distance table can be shown in any corner of the chart. It lists up to five active levels closest to the current closing price and shows for each level:
level name (e.g. “May 2025 Low”)
exact price
distance in pips or points (calculated according to the instrument’s tick size)
percentage difference relative to the close
Alerts can be enabled so that whenever price comes within a user-specified percentage of any level (for example 0.1 %), an alert fires. Once price decisively crosses a level, that level is marked as “broken” so it does not trigger again. Built-in alertcondition hooks are also provided for definite breaks of the current monthly, quarterly and yearly highs and lows.
Monthly lookback is configurable (default 6 months), and once the number of levels exceeds a cap (calculated as 20 + monthlyLookback × 3), the oldest levels are automatically removed to avoid clutter. Line widths and colours (with adjustable opacity for quarterly and monthly) can be set separately for each timeframe. Touches of each level are counted internally to allow future extension (for example visually emphasising levels with multiple touches).
23/35 SR Channels (Hitchhikers Guide To Goldbach)This indicator highlights potential short-term support and resistance zones based on the 23rd and 35th minute of each hour. At each of these time points, it draws a zone from the high to the low of the candle, extending it forward for a fixed number of bars.
Key features:
🔸 Orange zones mark the 23-minute candle
🔹 Blue zones mark the 35-minute candle
📏 Zones extend for a customizable number of bars (channelLength)
🔄 Existing zones are removed if they overlap significantly with a new one
🏷️ Optional labels show when a 23 or 35 zone is created
This tool is ideal for traders looking to identify time-based micro-structures and intraday reaction zones.
Support and Resistance MTFSupport and Resistance MTF
Support and Resistance MTF is a powerful tool that automatically detects and visualizes key support and resistance levels based on pivot highs and lows, using a higher timeframe of your choice. It is designed for traders who focus on price action and market structure, and want an adaptive, clean, and customizable indicator that helps identify important market zones.
The script uses configurable pivot logic to identify levels, with user-defined parameters for pivot strength and timeframe. Once a support or resistance level is detected, it is displayed on the chart either as a horizontal line, a shaded box, or both, depending on your display settings. You can fully customize the visual appearance including color, transparency, and line thickness. Levels are automatically extended into the future, and optionally into the past, to give better context.
Each level is monitored for breakout behavior. If price breaks through a level, it can change its role — a former resistance may become support, and vice versa. After a certain number of breakouts (which you define), the level is considered invalid and is automatically removed from the chart. This helps to maintain a clean visual layout and ensures only relevant levels are shown.
The indicator supports multi-timeframe analysis, allowing you to overlay higher-timeframe structure directly on your lower-timeframe trading chart. It is also compatible with Heikin Ashi candles internally for reference, without affecting your main chart type.
Support and Resistance MTF is ideal for traders looking to align intraday setups with higher-timeframe zones, manage risk around structural levels, or simply highlight market turning points in a clear and automated way. Built with Pine Script v5 and optimized for performance, it is both powerful and lightweight.
⚙️ Input Parameters – Description
[Time-Frame
Defines the higher timeframe used for detecting support and resistance levels. For example, you can set this to 1h, 4h, or D to visualize significant levels from a broader market perspective on a lower-timeframe chart.
Left / Right (Pivot Left / Pivot Right)
These parameters control the sensitivity of the pivot detection. A pivot high/low is confirmed if it is higher/lower than the defined number of candles to its left and right. Higher values reduce noise but may miss smaller turning points.
Extend Left
When enabled, the drawn levels (lines and/or boxes) are extended to the left side of the chart, allowing you to see the historical alignment of these levels.
Max Breaks Before Delete
Defines how many times a level can be broken by price before it is removed from the chart. This helps to avoid clutter from outdated or invalidated levels and keeps your chart relevant to current price action.
Draw Lines Only
If enabled, the indicator will draw only horizontal lines for support and resistance zones, omitting the colored background boxes. Useful for a cleaner chart appearance.
Line Width Broken Level
Sets the thickness of the support/resistance lines. Thicker lines can emphasize key levels, especially after a breakout.
Transparency Boxes
Controls the transparency (0–100) of the background boxes representing the zones. A higher value makes the boxes more transparent, lower values make them more opaque.
Transparency Lines
Controls the transparency (0–100) of the horizontal support and resistance lines. This allows for visual fine-tuning based on chart background and personal preference.
Support (Color, Group: Display)
Lets you choose the color used for support zones and lines. By default, it's green, but you can change it to fit your theme or visual preference.
Resistance (Color, Group: Display)
Defines the color for resistance zones and lines. The default is red, but it can be customized freely.
Two Candle Theory (Filtered) - Labels & ColorsOverview
This Pine Script classifies each candle into one of nine sentiment categories based on how the candle closes within its own range and in relation to the previous candle’s high and low. It optionally filters the strongest bullish and bearish signals based on volume spikes.
The script is designed to help traders visually interpret market sentiment through configurable labels and candle colors.
⸻
Classification Logic
Each candle is assessed using two metrics:
1. Close Position – where the candle closes within its own high-low range (High, Mid, Low).
2. Close Comparison – how the current close compares to the previous candle’s high and low (Bull, Bear, or Range).
Based on this, a short label is assigned:
• Bullish Bias: Strongest (SBu), Moderate (MBu), Weak (WBu), Slight (SlB)
• Neutral: Neutral (N)
• Bearish Bias: Slight (SlS), Weak (WBa), Moderate (MBa), Strongest (SBa)
⸻
Volume Filter
A volume spike filter can be applied to the strongest signals:
• SBu and SBa are only shown if volume is significantly higher than the average (SMA × threshold).
• The filter is optional and user-configurable.
⸻
Display Options
Users can control:
• Whether to show labels, bar colors, or both.
• Which of the nine label types are visible.
• Custom colors for each label and corresponding bar.
⸻
Visual Output
• Labels appear above or below candles depending on bullish or bearish classification.
• Bar colors reflect sentiment for quicker visual scanning.
⸻
Use Case
Ideal for identifying momentum shifts, validating trade entries, and highlighting candles that break out of previous ranges with conviction and/or volume.
⸻
Summary
This script simplifies price action by translating each candle into an interpretable sentiment label and color. With optional volume filtering and full display customization, it offers a practical tool for discretionary and systematic traders alike.
MÈGAS ALGO : MÈGAS Signals [INDICATOR]Overview
The MÈGAS Signals is a cutting-edge, multi-functional trading tool designed for advanced traders seeking to identify high-probability trade setups. This script combines price action analysis, machine learning techniques, and real-time signal generation across multiple timeframes to provide actionable insights. The indicator is optimized for both bullish and bearish market conditions and includes features like backtesting metrics, take-profit tools, and customizable alerts.
Key Features
1. Machine Learning and Statistical Clustering
The script implements the K-Means clustering algorithm , a widely used unsupervised machine learning technique, to segment historical price movements into distinct clusters based on magnitude and distribution characteristics. These clusters represent quantized levels of bullish and bearish momentum, enabling the system to adaptively model market behavior across varying volatility regimes.
By applying this statistical clustering approach to real-time price data, the algorithm dynamically identifies meaningful thresholds for key Smart Money Concepts (SMC) such as Break of Structure (BOS) and Change of Character (CHOCH) . This integration enhances classical SMC logic with a data-driven, self-adjusting mechanism that responds to evolving market conditions, effectively bridging traditional price action analysis with modern machine learning methodologies.
2.Multi-Timeframe Table:
A dynamic, real-time multi-timeframe table displayed on the chart that provides at-a-glance insight into:
-Current trend or signal status per timeframe
-Percentage price change relative to the previous bar
-Countdown to the next bar open , updated every second
This table empowers traders with cross-timeframe context , helping them identify confluence, reversals, or divergences across multiple horizons — from scalping (1m) to long-term trends (1D).
3.Dynamic Trailing Stops with Enhanced Visualization
The dynamic trailing stop mechanism adjusts based on volatility clusters, ensuring tighter risk
management during low-volatility periods and wider stops during high-volatility phases.
The feed speed feature enhances visualization by adjusting the transparency of candle
coloring relative to the trailing stop. This makes it easier to interpret trend strength and
momentum, allowing traders to stay ahead of price action.
4.Customizable Alerts for Seamless Execution
Sublimia Signals offers highly customizable alerts that can be tailored to specific timeframes
and trading preferences.
With the intra-bar calculation feature, alerts can be triggered on every tick rather than just
on bar close, empowering traders to act swiftly in fast-moving markets.
Personalized alert messages allow you to create clear and concise notifications for entry and
exit points, streamlining your trading workflow.
5.Comprehensive Backtesting Metrics
The built-in performance metrics table provides detailed backtesting results, including total
trades, win rates, cumulative profit/loss, profit factor, best profit, and worst loss for both
long and short positions.
These metrics enable traders to evaluate the effectiveness of their strategies and optimize
input parameters for better performance.
6.Non-Standard Candle Integration for Smoother Price Action Analysis
The optional Non-Standard Candle toggle allows users to switch between "Traditional", "Heikin-Ashi", "Volume-Weighted" and "Hybrid" candles.
This feature is particularly useful for identifying trends and filtering out market noise, while
backtesting remains based on normal candles to ensure accuracy.
7.Intra-Bar Calculation for Granular Insights
When enabled, the intra-bar calculation feature provides granular insights into price
movements within each bar, offering traders a deeper understanding of market dynamics.
This feature also modifies the algorithm's logic, triggering alerts on every tick rather than just
on bar close, making it ideal for scalpers and day traders who need ultra-responsive tools.
8.Take-Profit/Trailing-Profit Tools: Precision and Flexibility
This feature allows you to set multiple profit levels with customizable percentage
distances, giving you unparalleled control over your trades.
Selectable Type of exit mode : Take-Profit or Trailing-Profit.
Selectable Number of Profit Levels: Define as many profit targets as you need,
ensuring you can capture profits at different stages of price movement.
Percentage-Based Distance: Set each profit level based on a percentage distance from
your entry point. This ensures precise positioning tailored to your risk-reward preferences.
Integrated Alerts: Never miss an opportunity! The tool includes built-in alerts that notify you
when each take-profit level is reached, keeping you informed in real-time.
9.Optimized Visualization
The script ensures optimized visualization of trend strength through smooth transitions in
candle transparency, making it easier to interpret market momentum.
The feed speed parameter calculates how quickly the candle coloring adjusts relative to the
trailing stop, enhancing clarity and decision-making.
How it work
Identify the Primary Trend Using Multi-Timeframe Analysis :
Focus on Higher Timeframes : Start by analyzing the 4h, 8h, or 24h timeframes to determine the primary trend. These higher timeframes provide a clearer picture of long-term momentum.
The built-in table provides real-time updates across all primarly timeframes. Look for confluence—when multiple timeframes align in the same direction.
Confirm Entry Points Using Lower Timeframes :
Fine-Tune Entries with Shorter Timeframes : Once you’ve identified the primary trend, use lower timeframes (e.g., 1m, 5m, or 15m ) to confirm entry points.
Set Take-Profit Levels Based on Percentage Distances :
Customizable Take-Profit Tools : Use the take-profit feature to set multiple levels based on percentage distances from your entry point.
Use Customizable Alerts for Real-Time Updates :
Enable alerts for specific timeframes (e.g., 4h, 8h, 15m) to stay informed about changes in the primary trend or short-term opportunities.
For fast-moving markets, enable the intra-bar calculation feature to receive alerts on every tick, ensuring you don’t miss critical entries or exits.
Backtesting for Strategy Optimization :
Performance Metrics : Use the backtesting metrics table to evaluate how well your trend-following strategy performs over time. Analyze win rates, profit factor, and best/worst trades to refine your approach.
Adjust Inputs : Fine-tune settings like slippage and commission(%) to optimize the indicator for your prefer pair.
Please Note:
This indicator is provided for informational and educational purposes only. It is not financial advice, and it should not be considered a recommendation to buy, sell, or trade any financial instrument. Trading involves significant risks, including the potential loss of your entire investment. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
The results and images provided are based on algorithms and historical/paid real-time market data but do not guarantee future results or accuracy. Use this tool at your own risk, and understand that past performance is not indicative of future outcomes.
MirPapa:ICT:HTF: FVG OB Threeple# MirPapa:ICT:HTF: FVG OB (Fair Value Gap Order Block)
**Version:** Pine Script® v6
**Author:** © goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
“FVG OB” (Fair Value Gap Order Block) identifies higher-timeframe candle ranges where a gap (imbalance) exists between two non-consecutive candles, signaling potential institutional order blocks. This module draws bullish or bearish FVG OB boxes on your lower-timeframe chart, extends them until price interacts a specified number of times, and then finalizes (recolors) the box.
---
## Inputs
- **Enable FVG OB Boxes** (`bool`)
Toggle drawing of HTF FVG OB boxes on the chart.
- **Enable FVG OB Midlines** (`bool`)
Toggle drawing of a midpoint line inside each FVG OB box.
- **FVG OB Close Count** (`int` 1–10)
Number of HTF closes beyond the FVG range required to finalize (recolor) the box.
- **FVG OB Bull Color** (`color`)
Fill & border color for bullish FVG OB boxes.
- **FVG OB Bear Color** (`color`)
Fill & border color for bearish FVG OB boxes.
- **FVG OB Box Transparency** (`int` 1–100)
Opacity level for FVG OB box fills (higher = more transparent).
---
## How It Works
1. **HTF Data Retrieval**
- The script uses `request.security()` (via `GetHTFrevised()`) to fetch HTF OHLC and historical values:
- `_htfHigh3` (high three bars ago) and `_htfLow1` (low one bar ago) for bullish FVG OB.
- `_htfLow3` (low three bars ago) and `_htfHigh1` (high one bar ago) for bearish FVG OB.
- It also tracks the HTF `bar_index` on the lower timeframe to align drawing.
2. **FVG OB Detection**
- **Bullish FVG OB**: Occurs when the HTF low of the previous bar (`low `) is strictly above the HTF high of three bars ago (`high `), creating a gap.
- **Bearish FVG OB**: Occurs when the HTF high of the previous bar (`high `) is strictly below the HTF low of three bars ago (`low `), creating a gap.
3. **Box Creation**
- On each new HTF bar (`ta.change(time(HTF)) != 0`), if a bullish or bearish FVG OB condition is met, the script calls `CreateBoxData()` with:
- **Bullish**: `bottom = HTF low `, `top = HTF high `, `_isBull = true`.
- **Bearish**: `bottom = HTF low `, `top = HTF high `, `_isBull = false`.
- Midline toggled by input.
- A `BoxData` struct is created and stored in either the Bull or Bear array.
4. **Box Extension & Finalization**
- On **every LTF bar**, `ProcessBoxDatas(...)` iterates over all active FVG OB boxes:
1. **Extend Right Edge**: `box.set_right(bar_index)` ensures the box follows the latest bar.
2. **Record Volume Delta**: Tracks buy/sell volume inside the box.
3. **Touch Stage Update**: `modBoxUpdateStage()` increments `_stage` when price touches its “basePoint” (for FVG OB, the basePrice is one side of the gap).
4. **Finalize**: `setBoxFinalize()` checks if the configured number of closes beyond the FVG gap (`FVG OB Close Count`) has occurred. If so:
- `_isActive := false`
- Border and background colors are changed to the “Box Close Color” (input).
- Finalized boxes remain on screen semi-transparent, indicating that the FVG OB zone has been tested.
5. **Midline (Optional)**
- If “Enable FVG OB Midlines” is checked, `ProcessBoxDatas()` also extends a horizontal midpoint line inside the box with `line.set_x2(bar_index)`.
---
## Usage Instructions
1. **Installation**
- Copy the FVG OB section of the Pine Script into TradingView’s Pine Editor (ensure the library import is included).
- Click “Add to Chart.”
2. **Configure Inputs**
- Choose a Higher Time Frame via the dropdown (e.g., “4시간” maps to a 4H timeframe).
- Toggle “Enable FVG OB Boxes” and “Enable FVG OB Midlines.”
- Select colors for bullish and bearish boxes and set transparency.
- Adjust “FVG OB Close Count” to control how many closes beyond the gap finalize the box.
3. **Interpretation**
- **Active FVG OB Boxes** extend to the right until price closes beyond the gap range the specified number of times.
- When finalized, each box changes to the “Box Close Color,” signaling that institutional orders in that gap have likely been filled.
Enjoy precise visualization of higher-timeframe Fair Value Gap Order Blocks on your lower-timeframe chart!
MirPapa:ICT:HTF: FVG Threeple# MirPapa:ICT:FVG Double HTF
**Version:** Pine Script® v6
**Author:** © goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
“MirPapa:ICT:FVG Double HTF” is a TradingView indicator that identifies and visualizes Fair Value Gaps (FVG) on two higher time frames (HighTF and MidTF) simultaneously. It can also draw FVG boxes on the current chart’s time frame. When “Overlap Mode” is enabled, the indicator displays only the intersection of HighTF and MidTF FVG areas.
---
## Key Features
- **HighTF FVG**
- Detects bullish and bearish FVGs on a user-selected upper time frame (e.g., 4H).
- Draws colored boxes around gap ranges, optionally with a midpoint line.
- Automatically extends boxes on every bar and finalizes (recolors) them after a specified number of closes beyond the gap.
- **MidTF FVG**
- Same as HighTF FVG but for a second, intermediate time frame (e.g., 1H).
- Runs in parallel to HighTF logic, with separate color and transparency settings.
- **CurrentTF FVG (Optional)**
- If enabled, draws FVG boxes using the chart’s own time frame.
- Behaves identically: extends until broken by price, then finalizes.
- **Overlap Mode**
- When enabled, hides all individual HighTF and MidTF boxes.
- Instead, computes and displays only their overlapping rectangle(s)—separate for bullish and bearish gaps.
---
## Inputs & Configuration
- **Common Inputs**
- **Enable High/Mid Overlap Mode** (`boolean`): Show only overlapping HighTF + MidTF FVG areas.
- **Box Close Color** (`color`): Color applied to any FVG box when it is finalized.
- **HighTF FVG Settings**
- **HighTF Label** (`dropdown`): Choose a Korean label (e.g., “4시간”) that maps to a Pine timeframe (e.g., “240”).
- **Enable HighTF FVG Boxes** (`boolean`): Toggle drawing of HighTF FVG boxes.
- **Enable HighTF FVG Midlines** (`boolean`): Toggle midpoint line inside each HighTF box.
- **HighTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **HighTF FVG Bull Color** (`color`): Fill & border color for bullish HighTF gaps.
- **HighTF FVG Bear Color** (`color`): Fill & border color for bearish HighTF gaps.
- **HighTF Box Transparency** (`integer` 1–100): Opacity level for HighTF box fills.
- **MidTF FVG Settings**
- **MidTF Label** (`dropdown`): Choose a Korean label (e.g., “1시간”) mapped to a Pine timeframe.
- **Enable MidTF FVG Boxes** (`boolean`): Toggle drawing of MidTF FVG boxes.
- **Enable MidTF FVG Midlines** (`boolean`): Toggle midpoint line inside each MidTF box.
- **MidTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **MidTF FVG Bull Color** (`color`): Fill & border color for bullish MidTF gaps.
- **MidTF FVG Bear Color** (`color`): Fill & border color for bearish MidTF gaps.
- **MidTF Box Transparency** (`integer` 1–100): Opacity level for MidTF box fills.
- **CurrentTF FVG Settings**
- **Enable CurrentTF FVG Boxes** (`boolean`): Draw FVG boxes on the chart’s own timeframe.
- **Enable CurrentTF FVG Midlines** (`boolean`): Toggle midpoint line inside each CurrentTF box.
- **CurrentTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **CurrentTF FVG Bull Color** (`color`): Fill & border color for bullish CurrentTF gaps.
- **CurrentTF FVG Bear Color** (`color`): Fill & border color for bearish CurrentTF gaps.
- **CurrentTF Box Transparency** (`integer` 1–100): Opacity level for CurrentTF box fills.
---
## How It Works
1. **Time Frame Conversion**
Korean labels (e.g., “4시간”, “1시간”) are converted internally to Pine timeframe strings via `GetHtfFromLabel()`.
2. **Data Retrieval**
For each chosen TF (HighTF, MidTF, and optionally CurrentTF), the script fetches OHLC and historical values using `GetHTFrevised()`.
- Tracks `bar_index` from that TF to align box drawing on the chart’s base timeframe.
3. **Box Lifecycle**
- **Creation**: On each new TF bar, if a bullish gap (`low > high `) or bearish gap (`low > high `) is detected, `CreateBoxData()` registers a new `BoxData` struct and draws an initial box.
- **Extension**: On every chart bar, `ProcessBoxDatas()` extends each active box’s right edge and updates internal “touch stage” and volume.
- **Finalization**: After the specified number of closes beyond the gap, `setBoxFinalize()` disables the box and changes its border & fill to the “Box Close Color”.
4. **Overlap Mode**
- When enabled, HighTF and MidTF boxes are not drawn individually.
- Instead, at each bar, the script iterates over all active HighTF boxes and all active MidTF boxes, computes their intersection rectangle (if any), and draws only that overlapping area (distinct handling for bullish vs. bearish gaps).
---
## Installation & Usage
1. **Copy & Paste**
Copy the entire Pine Script code into TradingView’s Pine Editor.
Click “Add to Chart.”
2. **Configure Inputs**
- Choose your HighTF and MidTF via the dropdown menus.
- Enable or disable FVG boxes/midlines for each TF.
- Adjust colors, transparency, and “Close Count” settings to taste.
- Toggle “Overlap Mode” if you only want to see common areas between HighTF and MidTF gaps.
3. **Interpretation**
- **Active Boxes** extend to the right as new bars form. When price closes beyond a gap (per “Close Count”), the box is finalized and recolored to the close color.
- In **Overlap Mode**, you’ll see only the overlapping region between HighTF and MidTF gaps, updated on every bar.
Enjoy precise FVG visualization across multiple time frames!
Shooting Star Detector[cryptovarthagam]🌠 Shooting Star Detector
The Shooting Star Detector is a powerful price action tool that automatically identifies potential bearish reversal signals using the well-known Shooting Star candlestick pattern.
Ideal for traders who rely on candlestick psychology to spot high-probability short setups, this script works across all markets and timeframes.
🔍 What is a Shooting Star?
A Shooting Star is a single-candle pattern that typically forms at the top of an uptrend or resistance zone. It’s characterized by:
A small body near the candle's low,
A long upper wick, and
Little or no lower wick.
This pattern suggests that buyers pushed price higher but lost control by the close, hinting at potential bearish momentum ahead.
✅ Indicator Features:
🔴 Accurately detects Shooting Star candles in real-time
🔺 Plots a red triangle above every valid signal candle
🖼️ Optional background highlight for visual clarity
🕵️♂️ Strict ratio-based detection using:
Wick-to-body comparisons
Upper wick dominance
Optional bearish candle confirmation
⚙️ Detection Logic (Rules Used):
Upper wick > 60% of total candle range
Body < 20% of total candle
Lower wick < 15% of candle range
Bearish candle (optional but included for accuracy)
These rules ensure high-quality signals that filter out false positives.
📌 Best Use Cases:
Spotting trend reversals at swing highs
Confirming entries near resistance zones
Enhancing price action or supply/demand strategies
Works on: Crypto, Forex, Stocks, Commodities
🧠 Trading Tip:
Pair this detector with volume confirmation, resistance zones, or bearish divergence for higher-probability entries.
📉 Clean, minimal, and non-repainting — designed for traders who value accuracy over noise.
Created with ❤️ by Cryptovarthagam
Follow for more real-time price action tools!
MarketMastery Suite by DGTAll-in-One Trading Framework for Price Action, Smart Money, and Market Structure
Unlock a complete, institutional-grade toolkit built for modern traders. The MarketMastery Suite blends advanced price action logic, multi-timeframe structure detection, capital flow analytics, and liquidation-based risk tools — empowering you to decode market behavior with confidence.
Whether you're identifying smart money zones, anticipating structural shifts, or managing position risk, MarketMastery Suite delivers actionable and adaptive insights.
KEY FEATURES
---------------------------------------------------------------------------------------------------------------
⯌ Dynamic Support & Resistance Zones
Automatically detects major Support and Resistance zones based on adaptive logic derived from ICT-style OBs and BBs. Rather than using fixed lookbacks, the script applies swing-based detection to reveal significant levels across Local, Regional, Global, and Macro structures — pinpointing areas of likely institutional interest.
⯌ Trend Stop & Range Detection
Tracks market bias with a smart 3-tier trailing stop that filters noise and identifies potential breakouts, traps, or directional flips — even in ranging conditions.
⯌ Fractal Market Structure & Shift Detection
Detects real-time Break of Structure (BoS) and Change of Character (CHoCH) events across fractal structure levels — Local to Macro — helping confirm or anticipate market shifts.
⯌ Volume & Capital Flow Analysis
Highlights volume spikes and overlays Cumulative Volume Delta (CVD) and Open Interest (OI) to uncover buyer/seller intent and momentum pressure shifts.
⯌ Trend Snapshot Dashboard
A clean, mobile-friendly dashboard that shows live trend strength, directional flow (Price, OI, CVD), and key capital activity, anchored to the latest swing evaluation window.
⯌ Liquidation Risk Zones
Visualizes liquidation and margin thresholds based on leverage, entry price, and maintenance margin — essential for futures risk planning.
ALERT MESSAGES
---------------------------------------------------------------------------------------------------------------
Support & Resistance Events
"Rejection {count} at Support · Support ≈ {value}"
"Support Retest {count} After Break · Support ≈ {value}"
"Rejection {count} at Resistance · Resistance ≈ {value}"
"Resistance Retest {count} After Break · Resistance ≈ {value}"
Support & Resistance Transitions
"Support Broken · {value} → Becomes Resistance"
"Resistance Broken · {value} → Becomes Support"
Market Structure Alerts
"{fractal depth} {Bullish|Bearish} Break of Structure detected."
"{fractal depth} {Bullish|Bearish} Change of Character detected."
Bias Transitions
"{Bullish|Bearish} Bias — Trailing stop flipped {upward|downward} {volume activity}"
"Potential {Bullish|Bearish} Flip — Early signs of {upward|downward} pressure {volume activity}"
"Ranging or Transitioning — Market lacks a clear trend {volume activity}"
Volume Spike
"Extreme volume spike detected!"
DISCLAIMER
---------------------------------------------------------------------------------------------------------------
This script is intended for informational and educational purposes only. It does not constitute financial, investment, or trading advice. All trading decisions made based on its output are solely the responsibility of the user.
Candle Reversal Matrix TFFCandle Reversal Matrix TFF
This "Engulfing + Shooting Star + Evening Star + Hanging Man + Dark Cloud Cover" indicator is a comprehensive candlestick pattern scanner designed to identify key bearish and bullish reversal signals on your TradingView charts.
Key Features:
Bullish Engulfing: Detects strong bullish reversals where a green candle fully engulfs the previous red candle, signaling potential upward momentum.
Bearish Engulfing: Flags bearish reversals where a red candle engulfs the prior green candle, indicating possible downtrend beginnings.
Shooting Star: Identifies candles with a small body near the low and a long upper wick, commonly marking a bearish reversal after an uptrend.
Evening Star: Detects a three-candle bearish reversal pattern characterized by a large green candle, followed by a small indecisive candle, and a strong red candle closing well into the first candle’s body.
Hanging Man: Spots small-bodied candles with long lower shadows after an uptrend, warning of potential bearish reversals.
Dark Cloud Cover: Recognizes a two-candle bearish reversal where a red candle gaps above and closes below the midpoint of the previous green candle.
Visual Cues:
Each pattern is marked on the chart with distinct colored shapes and labels for easy identification:
Green arrows and labels for bullish signals
Red, orange, purple, yellow, and maroon shapes for bearish patterns, each with unique symbols (↓, ☆, EV, HM, DC)
RTI Shifting Band Oscillator | QuantMAC📊 RTI Shifting Band Oscillator | QuantMAC - Revolutionary Adaptive Trading Indicator
🎯 Overview
The RTI Shifting Band Oscillator represents a breakthrough in adaptive technical analysis, combining the innovative Range Transition Index (RTI) with dynamic volatility bands to create an oscillator that automatically adjusts to changing market conditions. This cutting-edge indicator goes beyond traditional static approaches by using RTI to dynamically shift band width based on market volatility transitions, providing superior signal accuracy across different market regimes.
🔧 Key Features
Revolutionary RTI Technology : Proprietary Range Transition Index that measures volatility transitions in real-time
Dynamic Adaptive Bands : Self-adjusting volatility bands that expand and contract based on RTI readings
Dual Trading Modes : Flexible Long/Short or Long/Cash strategies for different trading preferences
Advanced Performance Analytics : Comprehensive metrics including Sharpe, Sortino, and Omega ratios
Smart Visual System : Dynamic color coding with 9 professional color schemes
Precision Backtesting : Date range filtering with detailed historical performance analysis
Real-time Signal Generation : Clear entry/exit signals with customizable threshold sensitivity
Position Sizing Intelligence : Half Kelly criterion for optimal risk management
📈 How The RTI Technology Works
The Range Transition Index (RTI) is the heart of this indicator's innovation. Unlike traditional volatility measures, RTI analyzes the transitions between different volatility states, providing early warning signals for market regime changes.
RTI Calculation Process:
Calculate True Range for each period using high, low, and previous close
Compute Average True Range over the RTI Length period
Sum absolute differences between consecutive True Range values
Normalize by dividing by ATR to create the raw RTI
Apply smoothing to reduce noise and create the final RTI value
Use RTI to dynamically adjust standard deviation multipliers
The genius of RTI lies in its ability to detect when markets are transitioning between calm and volatile periods before traditional indicators catch up. This provides traders with a significant edge in timing entries and exits.
⚙️ Comprehensive Parameter Control
RTI Settings:
RTI Length : Controls the lookback period for volatility analysis (default: 25)
RTI Smoothing : Reduces noise in RTI calculations (default: 12)
Base MA Length : Foundation moving average for band calculations (default: 40)
Source : Price input selection (close, open, high, low, etc.)
Oscillator Settings:
Standard Deviation Length : Period for volatility measurement (default: 27)
SD Multiplier : Base band width adjustment (default: 1.5)
Oscillator Multiplier : Scaling factor for oscillator values (default: 100)
Signal Thresholds:
Long Threshold : Bullish signal trigger level (default: 82)
Short Threshold : Bearish signal trigger level (default: 55)
🎨 Advanced Visual System
Main Chart Elements:
Dynamic Shifting Bands : Upper and lower bands that automatically adjust width based on RTI
Adaptive Fill Zone : Color-coded area between bands showing current market state
Basis Line : Moving average foundation displayed as subtle reference points
Smart Bar Coloring : Candles change color based on oscillator state for instant visual feedback
Oscillator Pane:
Normalized RTI Oscillator : Main signal line centered around zero with dynamic coloring
Threshold Lines : Horizontal reference lines for entry/exit levels
Zero Line : Central reference for oscillator neutrality
Color State Indication : Line colors change based on bullish/bearish conditions
📊 Professional Performance Metrics
The built-in analytics suite provides institutional-grade performance measurement:
Net Profit % : Total strategy return percentage
Maximum Drawdown % : Worst peak-to-trough decline
Win Rate % : Percentage of profitable trades
Profit Factor : Ratio of gross profits to gross losses
Sharpe Ratio : Risk-adjusted return measurement
Sortino Ratio : Downside-focused risk adjustment
Omega Ratio : Probability-weighted performance ratio
Half Kelly % : Optimal position sizing recommendation
Total Trades : Complete transaction count
🎯 Strategic Trading Applications
Long/Short Mode: ⚡
Maximizes profit potential by capturing both upward and downward price movements. The RTI technology helps identify when trends are strengthening or weakening, allowing for optimal position switches between long and short.
Long/Cash Mode: 🛡️
Conservative approach ideal for retirement accounts or risk-averse traders. The indicator's adaptive nature helps identify the best times to be invested versus sitting in cash, protecting capital during adverse market conditions.
🚀 Unique Advantages
Traditional Indicators vs RTI Shifting Bands:
Static vs Dynamic : While most indicators use fixed parameters, RTI bands adapt in real-time
Lagging vs Leading : RTI detects volatility transitions before they fully manifest
One-Size vs Adaptive : The same settings work across different market conditions
Simple vs Intelligent : Advanced volatility analysis provides superior market insight
💡 Professional Setup Guide
For Day Trading (Short-term):
RTI Length: 15-20
RTI Smoothing: 8-10
Base MA Length: 20-30
Thresholds: Long 80, Short 60
For Swing Trading (Medium-term):
RTI Length: 25-35 (default range)
RTI Smoothing: 12-15
Base MA Length: 40-50
Thresholds: Long 83, Short 55 (defaults)
For Position Trading (Long-term):
RTI Length: 40-50
RTI Smoothing: 15-20
Base MA Length: 60-80
Thresholds: Long 85, Short 50
🧠 Advanced Trading Techniques
RTI Divergence Analysis:
Watch for divergences between price action and RTI readings. When price makes new highs/lows but RTI doesn't confirm, it often signals upcoming reversals.
Band Width Interpretation:
Expanding Bands : Increasing volatility, expect larger price moves
Contracting Bands : Decreasing volatility, prepare for potential breakouts
Band Touches : Price touching outer bands often signals reversal opportunities
Multi-Timeframe Analysis:
Use RTI on higher timeframes for trend direction and lower timeframes for precise entry timing.
⚠️ Important Risk Disclaimers
Past performance is not indicative of future results. This indicator represents advanced technical analysis but should never be used as the sole basis for trading decisions.
Critical Risk Factors:
Market Conditions : No indicator performs equally well in all market environments
Backtesting Limitations : Historical performance may not reflect future market behavior
Volatility Risk : Adaptive indicators can be sensitive to extreme market conditions
Parameter Sensitivity : Different settings may produce significantly different results
Capital Risk : Always use appropriate position sizing and stop-loss protection
📚 Educational Benefits
This indicator provides exceptional learning opportunities for understanding:
Advanced volatility analysis and measurement techniques
Adaptive indicator design and implementation
The relationship between volatility transitions and price movements
Professional risk management using Kelly Criterion principles
Modern oscillator interpretation and signal generation
🔍 Market Applications
The RTI Shifting Band Oscillator works across various markets:
Forex : Excellent for currency pair volatility analysis
Stocks : Individual equity and index trading
Commodities : Adaptive to commodity market volatility cycles
Cryptocurrencies : Handles extreme volatility variations effectively
Futures : Professional derivatives trading applications
🔧 Technical Innovation
The RTI Shifting Band Oscillator represents years of research into adaptive technical analysis. The proprietary RTI calculation method has been optimized for:
Computational Efficiency : Fast calculation even on high-frequency data
Noise Reduction : Advanced smoothing without excessive lag
Market Adaptability : Automatic adjustment to changing conditions
Signal Clarity : Clear, actionable trading signals
🔔 Updates and Evolution
The RTI Shifting Band Oscillator | QuantMAC continues to evolve with regular updates incorporating the latest research in adaptive technical analysis. The code is thoroughly documented for transparency and educational purposes.
Trading Notice: Financial markets involve substantial risk of loss. The RTI Shifting Band Oscillator is a sophisticated technical analysis tool designed to assist in trading decisions but cannot guarantee profitable outcomes. Always conduct thorough testing, implement proper risk management, and consider seeking advice from qualified financial professionals. Only trade with capital you can afford to lose.
---
Master The Markets With Adaptive Intelligence! 🎯📈