MasterEdge v4 — Trend & Momentum Presets with Filters & ATR RiskMasterEdge v4 — Trend & Momentum with Filters & ATR Risk
MasterEdge v4 is a multi‑timeframe trend and momentum indicator designed to help you stay on the right side of the market while controlling risk. It combines two classic signal engines—Donchian channel breakouts (à la Turtle Traders) and moving‑average crosses—with a suite of filters and risk tools to reduce false signals and keep you disciplined.
## Core features
- **Auto/manual presets:** Automatically adjusts look‑back lengths and thresholds based on the instrument (crypto, forex, indices, etc.) and chart timeframe, or lets you set them manually.
- **Higher‑timeframe bias:** Uses a non‑repainting higher‑timeframe EMA to determine whether the market is trending up or down and gates signals accordingly. You can choose the HTF yourself or let the auto‑engine pick one.
- **Dual signal modes:**
- *Donchian (Turtle)* mode enters on breakouts of an N‑bar channel and exits on a shorter channel.
- *MA Cross* mode buys when a fast EMA/SMA crosses above a slow EMA/SMA and sells on the opposite cross.
- **Advanced filters:** RSI momentum and ADX trend‑strength filters help avoid trades during choppy conditions. Optional volume and HTF‑slope filters require participation and higher‑timeframe momentum. A configurable **quality score** combines these filters so you only take higher‑probability setups.
- **ATR risk rails & position sizing:** Visual stop‑loss and target rails are calculated from ATR to adapt to volatility. An optional position‑size suggestion uses your account size and risk percentage to estimate how much to trade (for informational purposes only).
- **Session gating & status table:** Restrict signals to specific trading sessions. A live table shows your current settings, filter status, quality score and recommended position size, so you always know why a signal fired—or didn’t.
- **Alerts:** Separate long and short alerts with static JSON payloads let you hook the indicator into your notification or webhook workflow.
## How to use
1. **Select auto or manual:** Use the *Preset Mode* input. Auto mode adjusts lengths and thresholds to the ticker and timeframe; manual mode lets you set them explicitly.
2. **Choose a signal mode:** Pick between Donchian breakout or MA cross. Donchian is often better for lower‑timeframe breakouts; MA crosses smooth out noise on higher timeframes.
3. **Enable filters:** Turn on RSI, ADX, volume and/or slope filters and set your desired quality‑score threshold. Higher thresholds yield fewer, cleaner signals.
4. **Define risk:** If you want visual risk guides and position‑size suggestions, leave ATR rails on and input your account size, risk percentage and value per point.
5. **Timeframe pairing:** For intraday trading, try a 5 min chart with a 60 min bias; for swing trading, use a 1 h chart with a 4 h bias. The auto‑engine selects sensible higher‑timeframe defaults, but you can override them.
6. **Confirm signals:** The indicator plots green triangles below bars for long signals and red triangles above bars for short signals. The status table updates each bar with filter states and whether a signal is active.
**Disclaimer:** This script is for educational and analysis purposes only and is not financial advice. Always test on a demo account before trading live and tailor the settings to your strategy, risk tolerance and market behaviour.
在腳本中搜尋"smart"
MSTY-WNTR Rebalancing SignalMSTY-WNTR Rebalancing Signal
## Overview
The **MSTY-WNTR Rebalancing Signal** is a custom TradingView indicator designed to help investors dynamically allocate between two YieldMax ETFs: **MSTY** (YieldMax MSTR Option Income Strategy ETF) and **WNTR** (YieldMax Short MSTR Option Income Strategy ETF). These ETFs are tied to MicroStrategy (MSTR) stock, which is heavily influenced by Bitcoin's price due to MSTR's significant Bitcoin holdings.
MSTY benefits from upward movements in MSTR (and thus Bitcoin) through a covered call strategy that generates income but caps upside potential. WNTR, on the other hand, provides inverse exposure, profiting from MSTR declines but losing in rallies. This indicator uses Bitcoin's momentum and MSTR's relative strength to signal when to hold MSTY (bullish phases), WNTR (bearish phases), or stay neutral, aiming to optimize returns by switching allocations at key turning points.
Inspired by strategies discussed in crypto communities (e.g., X posts analyzing MSTR-linked ETFs), this indicator promotes an active rebalancing approach over a "set and forget" buy-and-hold strategy. In simulated backtests over the past 12 months (as of August 4, 2025), the optimized version has shown potential to outperform holding 100% MSTY or 100% WNTR alone, with an illustrative APY of ~125% vs. ~6% for MSTY and ~-15% for WNTR in one scenario.
**Important Disclaimer**: This is not financial advice. Past performance does not guarantee future results. Always consult a financial advisor. Trading involves risk, and you could lose money. The indicator is for educational and informational purposes only.
## Key Features
- **Momentum-Based Signals**: Uses a Simple Moving Average (SMA) on Bitcoin's price to detect bullish (price > SMA) or bearish (price < SMA) trends.
- **RSI Confirmation**: Incorporates MSTR's Relative Strength Index (RSI) to filter signals, avoiding overbought conditions for MSTY and oversold for WNTR.
- **Visual Cues**:
- Green upward triangle for "Hold MSTY".
- Red downward triangle for "Hold WNTR".
- Yellow cross for "Switch" signals.
- Background color: Green for MSTY, red for WNTR.
- **Information Panel**: A table in the top-right corner displays real-time data: BTC Price, SMA value, MSTR RSI, and current Allocation (MSTY, WNTR, or Neutral).
- **Alerts**: Configurable alerts for holding MSTY, holding WNTR, or switching.
- **Optimized Parameters**: Defaults are tuned (SMA: 10 days, RSI: 15 periods, Overbought: 80, Oversold: 20) based on simulations to reduce whipsaws and capture trends effectively.
## How It Works
The indicator's logic is straightforward yet effective for volatile assets like Bitcoin and MSTR:
1. **Primary Trigger (Bitcoin Momentum)**:
- Calculate the SMA of Bitcoin's closing price (default: 10-day).
- Bullish: Current BTC price > SMA → Potential MSTY hold.
- Bearish: Current BTC price < SMA → Potential WNTR hold.
2. **Secondary Filter (MSTR RSI Confirmation)**:
- Compute RSI on MSTR stock (default: 15-period).
- For bullish signals: If RSI > Overbought (80), signal Neutral (avoid overextended rallies).
- For bearish signals: If RSI < Oversold (20), signal Neutral (avoid capitulation bottoms).
3. **Allocation Rules**:
- Hold 100% MSTY if bullish and not overbought.
- Hold 100% WNTR if bearish and not oversold.
- Neutral otherwise (e.g., during choppy or extreme markets) – consider holding cash or avoiding trades.
4. **Rebalancing**:
- Switch signals trigger when the hold changes (e.g., from MSTY to WNTR).
- Recommended frequency: Weekly reviews or on 5% BTC moves to minimize trading costs (aim for 4-6 trades/year).
This approach leverages Bitcoin's influence on MSTR while mitigating the risks of MSTY's covered call drag during downtrends and WNTR's losses in uptrends.
## Setup and Usage
1. **Chart Requirements**:
- Apply this indicator to a Bitcoin chart (e.g., BTCUSD on Binance or Coinbase, daily timeframe recommended).
- Ensure MSTR stock data is accessible (TradingView supports it natively).
2. **Adding to TradingView**:
- Open the Pine Editor.
- Paste the script code.
- Save and add to your chart.
- Customize inputs if needed (e.g., adjust SMA/RSI lengths for different timeframes).
3. **Interpretation**:
- **Green Background/Triangle**: Allocate 100% to MSTY – Bitcoin is in an uptrend, MSTR not overbought.
- **Red Background/Triangle**: Allocate 100% to WNTR – Bitcoin in downtrend, MSTR not oversold.
- **Yellow Switch Cross**: Rebalance your portfolio immediately.
- **Neutral (No Signal)**: Panel shows "Neutral" – Hold cash or previous position; reassess weekly.
- Monitor the panel for key metrics to validate signals manually.
4. **Backtesting and Strategy Integration**:
- Convert to a strategy script by changing `indicator()` to `strategy()` and adding entry/exit logic for automated testing.
- In simulations (e.g., using Python or TradingView's backtester), it has outperformed buy-and-hold in volatile markets by ~100-200% relative APY, but results vary.
- Factor in fees: ETF expense ratios (~0.99%), trading commissions (~$0.40/trade), and slippage.
5. **Risk Management**:
- Use with a diversified portfolio; never allocate more than you can afford to lose.
- Add stop-losses (e.g., 10% trailing) to protect against extreme moves.
- Rebalance sparingly to avoid over-trading in sideways markets.
- Dividends: Reinvest MSTY/WNTR payouts into the current hold for compounding.
## Performance Insights (Simulated as of August 4, 2025)
Based on synthetic backtests modeling the last 12 months:
- **Optimized Strategy APY**: ~125% (by timing switches effectively).
- **Hold 100% MSTY APY**: ~6% (gains from BTC rallies offset by downtrends).
- **Hold 100% WNTR APY**: ~-15% (losses in bull phases outweigh bear gains).
In one scenario with stronger volatility, the strategy achieved ~4533% APY vs. 10% for MSTY and -34% for WNTR, highlighting its potential in dynamic markets. However, these are illustrative; real results depend on actual BTC/MSTR movements. Test thoroughly on historical data.
## Limitations and Considerations
- **Data Dependency**: Relies on accurate BTC and MSTR data; delays or gaps can affect signals.
- **Market Risks**: Bitcoin's volatility can lead to false signals (whipsaws); the RSI filter helps but isn't perfect.
- **No Guarantees**: This indicator doesn't predict the future. MSTR's correlation to BTC may change (e.g., due to regulatory events).
- **Not for All Users**: Best for intermediate/advanced traders familiar with ETFs and crypto. Beginners should paper trade first.
- **Updates**: As of August 4, 2025, this is version 1.0. Future updates may include volume filters or EMA options.
If you find this indicator useful, consider leaving a like or comment on TradingView. Feedback welcome for improvements!
SmartMind2The MACD (Moving Average Convergence Divergence) is a popular technical indicator in trading, primarily used to detect trends and possible reversal points.
How is the MACD structured?
The MACD indicator consists of three components:
MACD Line:
Calculated as the difference between two exponential moving averages (EMAs), commonly 12 and 26 periods.
Formula:
MACD Line
=
𝐸
𝑀
𝐴
12
(
Price
)
−
𝐸
𝑀
𝐴
26
(
Price
)
MACD Line=EMA
12
(Price)−EMA
26
(Price)
Signal Line:
An exponential moving average (usually 9 periods) of the MACD line.
Formula:
Signal Line
=
𝐸
𝑀
𝐴
9
(
MACD Line
)
Signal Line=EMA
9
(MACD Line)
Histogram:
Graphically represents the difference between the MACD line and the Signal line.
Formula:
Histogram
=
MACD Line
−
Signal Line
Histogram=MACD Line−Signal Line
Interpretation of MACD:
Buy Signal: Occurs when the MACD line crosses above the signal line (bullish signal).
Sell Signal: Occurs when the MACD line crosses below the signal line (bearish signal).
Trend Reversal: A divergence between price movements and the MACD indicates a potential reversal (e.g., rising prices with a falling MACD).
SmartMind1Stochastic is a momentum indicator in trading, used to determine whether a price is overbought or oversold. It comes in two main variants:
1. Fast Stochastic
It consists of two lines:
%K line: Shows where the closing price is relative to the trading range of the recent periods.
%D line: A moving average of the %K line (typically 3 periods).
Characteristics:
Very responsive to price changes.
Generates numerous trading signals, but also more false signals.
2. Slow Stochastic
Also consists of two lines:
Slow %K line: Corresponds to the %D line of the Fast Stochastic.
Slow %D line: A moving average of the slow %K line (usually 3 periods).
Characteristics:
Produces fewer signals, but more precise and reliable.
Reduces false signals, making it preferable for identifying overbought or oversold conditions.
Practical Usage:
Values above 80 indicate overbought conditions (prices may soon fall).
Values below 20 indicate oversold conditions (prices may soon rise).
Traders generally prefer the Slow Stochastic for its greater reliability.
Financial Conditions Composite Z-Score1. Inputs and Data Sources
The script pulls data for the following financial metrics using TradingView's request.security function:
CBOE:VIX (Volatility Index): A measure of market volatility.
MOVE Index: A measure of bond market volatility (or Treasury volatility).
BAMLH0A0HYM2 (High-Yield Spread): The spread between high-yield corporate bonds and Treasury yields.
BAMLC0A0CM (Credit Spread): The spread for investment-grade corporate bonds.
Each of these metrics represents a key aspect of financial conditions:
VIX: Equity market risk.
MOVE: Bond market risk.
High-Yield Spread and Credit Spread: Perception of risk in corporate debt.
2. Z-Score Calculation
A z-score standardizes each metric to show how far it deviates from its average over a specified period (lookback = 160, or 160 days):
Positive z-scores indicate the metric is higher than average.
Negative z-scores indicate the metric is lower than average.
The formula for the z-score:
Z-Score = Metric − Mean
Standard Deviation Z-Score = Standard Deviation Metric−Mean
3. Combined Z-Score
The script combines the four individual z-scores into a single Composite Z-Score, equally weighted across the metrics:
Combined Z-Score = (Z VIX + Z MOVE + Z High-Yield Spread + Z Credit Spread) / 4
This Combined Z-Score provides an overall measure of financial conditions:
Positive combined z-scores indicate tighter or riskier financial conditions.
Negative combined z-scores indicate looser or less risky financial conditions.
4. Visual Elements on the Chart
A. Colorful Lines: Individual Z-Scores
Each of the four metrics is plotted as a separate line:
Red: Z-score of the VIX.
Green: Z-score of the MOVE index.
Orange: Z-score of the high-yield spread.
Purple: Z-score of the credit spread.
These lines show how each metric contributes to the overall financial conditions. For example:
A rising red line means increasing equity market volatility (risk).
A rising green line means increasing bond market volatility (risk).
B. Blue Line: Combined Z-Score
The blue line represents the Combined Z-Score. It aggregates the individual z-scores into a single measure:
A rising blue line suggests financial conditions are tightening (greater risk across markets).
A falling blue line suggests financial conditions are loosening (lower risk across markets).
C. Red and Green Background: Z-Score Regions
Red Background: When the Combined Z-Score is positive (>0), it indicates riskier or tighter financial conditions.
Green Background: When the Combined Z-Score is negative (<0), it indicates less risky or looser financial conditions.
This background coloring helps visually distinguish periods of riskier financial conditions from less risky ones.
5. Purpose of the Visualization
This indicator provides a comprehensive view of financial conditions across multiple asset classes:
Traders can use it to gauge the level of systemic market stress.
Investors can use it to assess when risk is elevated (positive z-scores) or subdued (negative z-scores).
It helps in decision-making for strategies that depend on market volatility or risk appetite.
Summary of What You See:
Colorful Lines (Red, Green, Orange, Purple): Individual z-scores for each metric (VIX, MOVE, high-yield spread, credit spread).
Blue Line: The aggregated Combined Z-Score that summarizes financial conditions.
Red and Green Background:
Red: Tight or risky financial conditions (Combined Z-Score > 0).
Green: Loose or low-risk financial conditions (Combined Z-Score < 0).
This visualization provides a multi-dimensional view of financial conditions at a glance, helping to identify periods of high or low risk in the markets.
SMTV IndicatorThis indicator uses the ATR set to 2 to indicate Dynamic Support and Resistance levels. It also uses VWAP set to Weekly and a 50 Moving Average to indicate additional trend and support and resistance levels.
ATR x 2
View the Indicator on the 1H to Identify the Daily Support and Resistance levels.
This will be the Green and Red channel lines.
Red Line will indicate the daily Resistance Level.
Green Line will indicate the daily Support Level.
This is where prices are most likely to go to and either reverse or breakthrough, if it breaks either the Support or Resistance level then the next Support and Resistance Level will be marked out.
VWAP
The indicator is set to weekly, and it will indicate a Key Support or Resistance Level.
If price is above the VWAP it will indicate a Bullish Bias.
If price is below VWAP it will indicate a Bearish Bias.
You will often see bounces from this level, depending on if the Market is Bullish or Bearish.
If the VWAP is broken through and a bounce takes places then you can often see Trend reversal
Break of Structure
The indicator will also indicate when a Bullish or Bearish break off structure has occurred, which generally will indicate a trend change.
Green meaning Bullish.
Red meaning Bearish.
There is also an option to check the Buy and Sell signals box in the input, these signals will occur when a Break of Structure has taken place and the next candle after the BOS closes in the same direction as the BOS signal.
You can use this indicator on anytime frame, however you will get more false signals on lower time frames, if you wish in these times, you can set the ATR to 3 or 4 to get less false signals. It is important to view the Daily Support and Resistance levels and the VWAP and 50MA these will be the main levels with highest Risk to Reward entries. You can then use lower time frames like the 5 or 1min to find break of structure indication to indicate the direction around the daily support and resistance, VWAP and 50MA.
SMC Order Block [Truth Indie]Smart Money Concept (SMC)
For me, SMC is a trading philosophy that stems from those with knowledge and understanding of the structure of the Smart Money group's trading system. It is developed through the observation of price behavior.
SMC is related to the Smart Money group or those entities that can influence the market, such as financial institutions, banks, or funds. Market movements are often driven by market fundamentals or economics. The Smart Money group possesses extensive research data for analyzing the market's fundamentals and has the ability to steer the market in various directions based on market and economic fundamentals at a given time.
The SMC concept is adapted from the ICT concept, and it was developed and shared by The Inner Circle Trader.
I have been studying and trying to understand SMC for some time, and I have many questions I would like to explore. The challenge lies in the fact that different sources of knowledge on this topic often have varying teachings, and my proficiency in the English language is limited. As a result, I haven't had the opportunity to study from the primary source, The Inner Circle Trader.
This indicator was created for the purpose of researching Market Structure and Order Blocks, which are integral parts of the SMC Concept.
The fundamental principle for identifying Order Blocks is as follows:
1.Locate swings that create candlestick imbalances.
2.An imbalance refers to a candlestick that is larger than the preceding one and contains a Fair Value Gap (FVG).
This indicator categorizes Order Blocks into four types, and you are encouraged to customize them to suit your preferences.
OB Type1
1.The closing price of candle has an opposite direction to the candle .
2.Candle has a wick longer than its body, by at least 1 times or more (adjustable).
3.Candle has a wick longer than candle , by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type1_HTF
-This condition is the same as OB Type1, but it involves analyzing 6 candles instead. This means looking at a larger time frame, twice as big as the original one.
OB Type2
1.The closing price of candle has the opposite direction to candle .
2.Candle has a body larger than its wick by at least 1 times or more (adjustable).
3.Candle has a body larger than candle by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type2_HTF means observing a larger time frame, specifically twice as big as the previous one.
OB Type3
1.The closing price of candle has the same direction as candle .
2.Candle has a wick longer than its body, by at least 1 times or more (adjustable).
3.Candle has a wick longer than candle , by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type3_HTF means observing a larger time frame, specifically twice as big as the previous one.
OB Type4
1.The closing price of candle has the same direction as candle .
2.Candle has a body larger than its wick by at least 1 times or more (adjustable).
3.Candle has a body larger than candle by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type4_HTF is an indicator that involves looking at a larger time frame, specifically twice as big as the original one.
Order Block Setting
1.Click to activate the OB search in different Types.
2.Adjust the body of the candle .
3.Adjust the strength of the candle or the Imbalance candle.
4.You can change the name of OB.
5.Adjust the font size and color.
6.Adjust the color of the OB BOX and History BOX.
7.Adjust the font of OB HTF.
1.It refers to the value of W for a specific candle.
2.It refers to the value of Im for a specific candle.
3.It refers to the values of W and Im in the HTF.
4.For OB Type1 and Type3, a higher W value will search for candles with a larger wick and a smaller body. When the W value is lower, it will search for candles with a smaller wick and a larger body, moving from low to high.
5.For OB Type2 and Type4, a lower W value will search for candles with a smaller wick and a larger body. When the W value is higher, it will search for candles with a larger wick and a smaller body, moving from high to low.
Market Structure
Comprising the process of breaking the price structure, resulting in BOS (Breakout of Structure) or CHoCH (Change of Character High), and creating new High or Low based on the price structure.
1.When the market forms a price structure with High and Low, when the price moves to disrupt the structure in either direction, it will lead to BOS or CHoCH, resulting in a new High or Low. You can adjust the method of breaking the structure using the close, high, or low.
2.When you break the price structure, a High or Low will be formed on one side, and it will lead to an Inducement Swing. When the price moves and collides, it will create a price range of High and Low. You can adjust the method of breaking the structure using the close, high, or low.
3.There is an option for testing Fibonacci (Fibo). Its function is similar to the Inducement Swing. You can adjust the Fibonacci settings.
Premium & Discount Zone
1.The Premium & Discount Zone will appear based on the current price structure. It helps you see the price zones you are interested in.
2.You can adjust the %Premium & Discount as needed.
3.The OB (Order Block) will be displayed when a price structure of High and Low forms within the Premium & Discount Zone. The OB in this indicator is not a recommendation to buy or sell. You need to research and test various conditions before making trading decisions.
Everyone's trading strategies are different, and it comes down to backtesting and selecting the strategy that suits your individual needs. Hopefully, this indicator will assist the TradingView community of traders in their trading endeavors.
Correlation Pro
Smart Correlation Pro is an indicator for assessing the correlation between two assets in the market. It analyzes correlation over a selected period and provides traders with flexible tools for making informed decisions.
Key Features:
1. Correlation coefficient (-1 to 1):
• 1: Perfect positive correlation (movement in the same direction).
• 0: No correlation (assets are independent).
• -1: Perfect negative correlation (movement in opposite directions).
2. Dynamic analysis:
• Changes the color of the line depending on the strength of the correlation:
• Green — high positive correlation.
• Red — high negative correlation.
• Gray — weak or no correlation.
3. Trading signals:
• Automatic alerts when important correlation levels are reached (> 0.8 or < -0.8).
• Visual cues for identifying potential entry points or risk diversification.
4. Customizable settings:
• Compare any two assets (e.g., BTC and ETH).
• Ability to choose the correlation calculation period.
Who it’s for:
• Traders analyzing coin movements in the cryptocurrency market.
• Investors looking for the strongest or weakest assets for their portfolio.
• Those working with hedging or diversification strategies.
How to Use:
1. Set the second asset in the indicator settings.
2. Analyze the correlation change on the chart:
• High positive correlation → similar price movement, opportunity for hedging.
• High negative correlation → opposite movement, suitable for diversification.
• Low correlation → independence of assets, opportunity to choose the stronger asset.
Benefits:
• Easy to use.
• Instant analysis of asset correlations.
• Increases decision-making accuracy in the market.
(Опис:
Smart Correlation Pro — це індикатор для оцінки взаємозв’язку між двома активами на ринку. Він аналізує кореляцію за обраним періодом та надає трейдерам гнучкі інструменти для ухвалення обґрунтованих рішень.
Основні можливості:
1. Коефіцієнт кореляції (-1 до 1):
• 1: Ідеальна позитивна кореляція (рух в одному напрямку).
• 0: Відсутність кореляції (активи незалежні).
• -1: Ідеальна негативна кореляція (рух у протилежних напрямках).
2. Динамічний аналіз:
• Змінює колір лінії залежно від сили кореляції:
• Зелений — висока позитивна кореляція.
• Червоний — висока негативна кореляція.
• Сірий — слабка або відсутня кореляція.
3. Сигнали для трейдингу:
• Автоматичні оповіщення при досягненні важливих рівнів кореляції (> 0.8 або < -0.8).
• Візуальні підказки для визначення можливих точок входу або диверсифікації ризиків.
4. Гнучкість налаштувань:
• Порівнюйте будь-які два активи (наприклад, BTC та ETH).
• Можливість обирати період розрахунку кореляції.
Кому підходить:
• Трейдерам, які аналізують рух монет на криптовалютному ринку.
• Інвесторам, що шукають найсильніші або найслабші активи для портфеля.
• Тих, хто працює з хеджуванням або диверсифікацією.
Як використовувати:
1. Встановіть другий актив у параметрах індикатора.
2. Аналізуйте зміну кореляції на графіку:
• Висока позитивна кореляція → схожий рух цін, можливість хеджування.
• Висока негативна кореляція → протилежний рух, підходить для диверсифікації.
• Низька кореляція → незалежність активів, можливість вибору сильнішого активу.
Переваги:
• Простота у використанні.
• Миттєвий аналіз взаємозв’язків між активами.
• Підвищує точність рішень на ринку.)
SMT Divergence [TFO]Smart Money Technique ( SMT ) Divergence is meant to annotate divergences between closely correlated assets. This indicator works by finding local lows and highs for both the current chart symbol and the symbol defined in the settings. It compares both symbols' pivots and evaluates whether they indicate a valid divergence (based on where they're located, whether they make opposing highs/lows, whether a clean connection can be made, etc.).
Take $ES_F and $NQ_F for example ( S&P 500 and Nasdaq 100 U.S. index futures ). These two names normally track each other very closely (and in the same direction, versus something like $DXY ), but if $ES_F is steadily rising towards a large institutional level and making higher highs, while $NQ_F is approaching a similarly important level and making lower highs on that same timeframe, this would indicate a divergence between the two assets that could foreshadow a “Smart Money Reversal.”
We can look at diverging highs at resistance as potential reason to look for low timeframe reversal structure to get short, and likewise look at diverging lows near support as potential reason to look for reversal structure to get long. As with most trading concepts, the higher timeframes here are key in this analysis. Divergence on a 4h chart can be much more telling than divergence on a 1m chart; but assuming a higher timeframe bias is already formulated, then SMT could simply act as an additional confluence tool to enter a trade.
Smart Fair Value Gaps (FVG) + MTF [Intelligent]This indicator elevates the standard Fair Value Gap (FVG) concept by introducing an intelligent classification system, advanced filtering, and integrated Multi-Timeframe (MTF) analysis. It is designed to move beyond simple FVG detection, providing traders with a deeper, more contextual understanding of market imbalances. By analyzing the characteristics of each FVG relative to recent historical data, the script helps to distinguish between high-momentum gaps and potential exhaustion points.
What is a Fair Value Gap (FVG)?
A Fair Value Gap, or price imbalance, is a three-candle pattern where the wick of the first candle does not overlap with the wick of the third candle. This creates an inefficient price delivery area that the market often seeks to revisit or "mitigate" in the future.
Bullish FVG: The space between the high of the first candle and the low of the third candle in a strong upward move.
Bearish FVG: The space between the low of the first candle and the high of the third candle in a strong downward move.
Key Features
Intelligent FVG Classification: This is the core of the indicator. Instead of treating all FVGs equally, it classifies them into four distinct types based on their size and the volume on which they formed, relative to a dynamic historical baseline.
🟡 Power FVG: High Size & High Volume Ratio. Indicates a gap formed with strong conviction and momentum, often a good continuation signal.
🟣 Exhaustion FVG: Low Size & High Volume Ratio. Suggests a high amount of effort (volume) for little price movement, which may indicate a trend is losing steam.
🟠 Absorption FVG: High Size & Low Volume Ratio. A significant price gap was created with relatively little volume, suggesting a lack of resistance and potential for price to move easily through that area.
🔵 Normal FVG: Any FVG that does not meet the criteria for the other classifications.
Multi-Timeframe (MTF) Analysis: Plot FVGs from a higher timeframe directly onto your current chart. These HTF zones often act as powerful areas of support or resistance and provide crucial context for lower-timeframe price action.
Advanced Filtering Suite: Gain complete control over which FVGs are displayed to reduce chart noise and focus on what matters.
Minimum Size Filter: Ignores insignificant micro-gaps by setting a minimum size requirement as a percentage of price.
EMA Trend Filter: Only display FVGs that align with the broader market trend (e.g., only show Bullish FVGs when price is above the 200 EMA).
Volume Filter: Qualify FVGs by requiring them to form on volume that is a specified multiple of its moving average, ensuring they are backed by significant market participation.
Comprehensive Customization: Tailor every aspect of the indicator to fit your personal trading style and chart aesthetic.
Mitigation Rules: Define precisely when an FVG is considered "mitigated" and no longer valid. Choose from a full fill, a 50% fill (Consequent Encroachment), or a simple wick touch.
Visuals & Data: Customize colors, borders, and box extensions. Toggle visuals for partial fills and the 50% CE line.
Data Labels: Display key information directly on the FVG boxes, including size in percentage and ticks, the volume of the FVG candle, and the volume ratio compared to the average.
Institutional level Indicator V5Smart money concept indicator with added VWAP for better understanding for fair price with relation to movement of price.
Smart Confluence + WinRateTwo EMAs (Fast/Slow)
Scoring Signal System (≥ 2 conditions = Buy/Sell)
Display Buy/Sell Arrows on Chart
Backtest System
Results Table: Trades, Wins, Losses, Win Rate %
Smart Price Divergence (MACD Filter) + EMA📌 Purpose
This indicator detects Price Divergences with MACD filtered by a 200 EMA trend condition.
It helps identify high-probability reversal zones aligned with market trend context.
🧠 How It Works
1. MACD Divergence Logic
Bearish Divergence:
Price makes a higher high.
MACD makes a lower high.
Price is above EMA (indicating possible exhaustion in bullish trend).
Bullish Divergence:
Price makes a lower low.
MACD makes a higher low.
Price is below EMA (indicating possible exhaustion in bearish trend).
2. EMA Trend Filter
EMA(200) is used as a directional filter:
Bearish divergences considered above EMA (extended bullish conditions).
Bullish divergences considered below EMA (extended bearish conditions).
3. Visual & Alerts
EMA(200) plotted on chart in orange.
Red triangles for Bearish Divergence.
Green triangles for Bullish Divergence.
Alerts fire for both divergence types.
📈 How to Use
Look for divergence signals as potential reversal alerts.
Combine with support/resistance or price action for confirmation.
EMA ensures signals occur in extended zones, increasing reliability.
Recommended Timeframes: 1h, 4h, D.
Markets: Forex, Crypto, Stocks.
⚙️ Inputs
MACD Fast / Slow / Signal Length
EMA Length (default 200)
⚠️ Disclaimer
This script is for educational purposes only. It does not constitute financial advice.
Always test thoroughly before live trading.
Smart Deviation Trend Bands PRO + MTF Filter📌 Purpose
This indicator combines multi-level Deviation Bands (±1, ±2, ±3 standard deviations from SMA) with a Higher Timeframe (HTF) Trend Filter.
It helps traders identify potential bounce and breakout setups aligned with the dominant market trend.
🧠 How It Works
1. Deviation Bands
SMA(Length) is calculated as the centerline.
Standard deviations (±1, ±2, ±3) define multiple dynamic support and resistance zones.
Outer bands (±3) often mark overextended zones; inner bands (±1, ±2) show active trading areas.
2. HTF Trend Filter
A higher timeframe SMA (HTF SMA) acts as a trend confirmation tool.
Default filter timeframe: 1 Day.
Trend Up: Price > HTF SMA
Trend Down: Price < HTF SMA
3. Entry Signals
Long Signal: Price crosses above lower deviation band (+1) when HTF trend is UP.
Short Signal: Price crosses below upper deviation band (−1) when HTF trend is DOWN.
4. Visuals & Alerts
Bands plotted in red (upper) and green (lower).
Centerline = SMA in blue.
HTF SMA in orange.
Circles on chart mark entry points; alerts trigger automatically.
📈 How to Use
In trending markets: Trade with the HTF direction, using band touches for entries.
In mean-reversion setups: Outer bands can be used to spot potential overbought/oversold zones.
Combine with volume or price action for confirmation.
Recommended Timeframes: 1h, 4h, D.
Markets: Forex, Crypto, Stocks.
⚙️ Inputs
SMA Length
StdDev Multiplier 1 / 2 / 3
HTF Timeframe (default: D1)
⚠️ Disclaimer
This script is for educational purposes only. It does not constitute financial advice.
Always test thoroughly before live trading.
Smart Volatility Squeeze + Trend Filter📌 Purpose
This indicator detects volatility squeeze conditions when Bollinger Bands contract inside Keltner Channels and signals potential breakout opportunities.
It also includes an optional EMA-based trend filter to align signals with the dominant market direction.
🧠 How It Works
1. Squeeze Condition
Bollinger Bands (BB): Length = 20, StdDev = 2.0 (default)
Keltner Channels (KC): EMA Length = 20, ATR Multiplier = 1.5 (default)
Squeeze ON: Occurs when BB Upper < KC Upper and BB Lower > KC Lower (low volatility zone).
2. Breakout Signals
Long Breakout: Price crosses above BB Upper after squeeze.
Short Breakout: Price crosses below BB Lower after squeeze.
3. Trend Filter (optional)
EMA(50) used to confirm breakout direction:
Long signals allowed only if price > EMA(50)
Short signals allowed only if price < EMA(50)
Toggle Use Trend Filter to enable/disable.
4. Visual & Alerts
Green circle at chart bottom indicates Squeeze ON.
Green/Red triangles mark breakouts.
Background gradually brightens during squeeze buildup.
Alerts available for long and short breakouts.
📈 How to Use
Look for Squeeze ON → then wait for breakout arrows.
Trade in breakout direction, preferably with trend filter ON.
Works best on higher timeframes (1h, 4h, D) and trending markets.
Markets: Crypto, Forex, Stocks — effective in volatile assets.
⚙️ Inputs
BB Length / StdDev
KC EMA Length / ATR Multiplier
Use Trend Filter
Trend EMA Length
⚠️ Disclaimer
This script is for educational purposes only. It does not constitute financial advice.
Always test thoroughly before live trading.
Smart RSI Divergence PRO | Auto Lines + Alerts📌 Purpose
This indicator automatically detects Regular and Hidden RSI Divergences between price action and the RSI oscillator.
It plots divergence lines directly on the chart, labels signals, and includes alerts for automated monitoring.
🧠 How It Works
1. RSI Calculation
RSI is calculated using the selected Source (default: Close) and RSI Length (default: 14).
2. Divergence Detection via Fractals
Swing points on both price and RSI are detected using fractal logic (5-bar patterns).
Regular Divergence:
Bearish: Price forms a higher high, RSI forms a lower high.
Bullish: Price forms a lower low, RSI forms a higher low.
Hidden Divergence:
Bearish: Price forms a lower high, RSI forms a higher high.
Bullish: Price forms a higher low, RSI forms a lower low.
3. Auto Drawing Lines
Lines are drawn automatically between divergence points:
Red = Regular Bearish
Green = Regular Bullish
Orange = Hidden Bearish
Blue = Hidden Bullish
Line width and transparency are adjustable.
4. Labels and Alerts
Labels mark divergence points with up/down arrows.
Alerts trigger for each divergence type.
📈 How to Use
Use Regular Divergences to anticipate trend reversals.
Use Hidden Divergences to confirm trend continuation.
Combine with support/resistance, trendlines, or volume for higher probability setups.
Recommended Timeframes: Works on all timeframes; more reliable on 1h, 4h, and Daily.
Markets: Forex, Crypto, Stocks.
⚙️ Inputs
Source (Close, HL2, etc.)
RSI Length
Toggle Regular / Hidden Divergence visibility
Toggle Lines / Labels
Line Width & Line Transparency
⚠️ Disclaimer
This script is for educational purposes only. It does not constitute financial advice.
Always test thoroughly before using in live trading.
Smart Impulse Exhaustion Finder (ATR + ADX Filter)📌 Purpose
This indicator detects potential exhaustion of strong bullish or bearish impulses at fresh swing highs/lows by combining multiple price action and volatility-based filters.
🧠 How It Works
A signal is triggered only when all core conditions are satisfied:
1. Swing High/Low Detection
Current high (or low) must be the highest (or lowest) over the last Extremum Lookback bars (default: 50).
This ensures the move is significant relative to recent price action.
2. Impulse Confirmation
Price must extend by at least 1 × ATR from the previous swing point.
This filters out minor fluctuations.
3. Exhaustion Conditions (at least 2 out of 3 must be met)
RSI Extreme: RSI > Overbought Level (default: 80) for bearish signals, RSI < Oversold Level (default: 20) for bullish signals.
Volume Spike: Volume > SMA(Volume, Volume SMA Length) × Volume Spike Multiplier.
Candle Wick Rejection: Upper wick ≥ Wick Threshold % for bearish setups, Lower wick ≥ Wick Threshold % for bullish setups.
4. Trend Filter
ADX > ADX Threshold ensures the market is trending and filters out sideways conditions.
5. Candle Body Filter
Candle body must be ≥ Body Size ATR Factor × ATR.
This avoids weak signals from small candles or doji formations.
📈 How to Use
Bearish Signal:
Appears at fresh swing highs with exhaustion conditions met. Useful for tightening stops, taking partial profits, or counter-trend shorts.
Bullish Signal:
Appears at fresh swing lows with exhaustion conditions met. Useful for trailing stops, profit-taking, or counter-trend longs.
Recommended Timeframes: Works best on 1h, 4h, and Daily charts.
Markets: Crypto, Forex, Stocks — wherever volatility and trends are present.
⚙️ Inputs
RSI Length / Overbought / Oversold
Volume SMA Length & Volume Spike Multiplier
Wick Threshold %
Extremum Lookback (bars for highs/lows)
ADX Length & Threshold
Body Size ATR Factor
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice.
Always test thoroughly and apply proper risk management before live trading.
💡 Tip: Combine this tool with your own market context and confluence factors for higher probability setups.
Smart SetupHelp to find out best entry and exit
Opening range breakout setup
Previous high low daily weekly monthly
Pivot point
Moving averages
Smart Directional Fib Zone (Selectable Session)🎯 Overview
This indicator plots a dynamic Fibonacci zone between the 0.5 and 0.618 levels , calculated from the previous day’s price action , and is designed specifically for intraday traders.
It visually highlights key retracement or reaction areas where the market often pauses or reverses.
🔍 How it works
At the start of each day, the script automatically captures:
the previous day’s open (pdo),
high (pdh),
low (pdl),
and close (pdc).
It then determines if the previous day was bullish (Close > Open) or bearish (Close < Open).
Based on that:
If the previous day was bullish, it projects the Fibonacci levels down from the high (typical for expecting retracements).
If bearish, it projects them up from the low.
The two key levels are:
0.5 (50%) retracement / projection
0.618 (61.8%) retracement / projection
A colored zone is plotted between these levels to act as a leading guide for intraday setups.
⏰ Time filtering & session customization
A unique feature is the dynamic session filtering:
By default, the zone is only plotted during active market hours, keeping your chart clean outside trading hours.
The script provides a dropdown selector so you can quickly switch between:
India session (9:15 to 15:30)
Europe session (9:00 to 17:30)
US session (9:30 to 16:00)
Or even define your own custom session times.
This makes it ideal for intraday traders in any region.
🎨 Visual features
The fill zone changes color based on the previous day’s sentiment:
Green zone if the previous day was bullish
Red zone if the previous day was bearish
🚨 Alerts
The script includes an alert condition, so you can easily set up TradingView alerts to notify you when:
Price enters the Fibonacci zone.
This is extremely helpful for catching retracements or reversals without staring at the screen all day.
⚙️ How to use
✅ Works on any intraday timeframe (1 min, 5 min, 15 min, etc.).
✅ Simply add it to your chart, pick your session in the dropdown, and watch the Fibonacci zone automatically adjust to your selected market hours.
Use it as a confluence tool alongside other indicators like VWAP, EMAs, Bollinger Bands, or price action patterns to time entries and exits.
💪 Why this is powerful
This is more than a simple Fib retracement tool:
It dynamically adapts to the previous day’s sentiment, helping you trade in alignment with recent market psychology.
The session filtering ensures your charts are focused only on the periods
Smart S/R ZonesThis is not your average S/R script.
It combines proximity, bounce frequency, and volume clustering to automatically identify the most reliable support and resistance zones on your chart — no guesswork needed.
How It Works:
• Scans for recent highs/lows, SMA50 & SMA200, and pivot swing points
• Ranks each potential level using a weighted scoring system:
• Proximity to current price (50%)
• Bounce Count (30%) — how many times price respected that level
• Volume Score (20%) — how much volume traded around that level
• The top support and resistance levels are plotted with:
• Clear dashed lines
• Color-filled zones
• Simple percentage distance labels
Why This Script Stands Out:
• No settings to tweak — it just works
• Helps you react faster with high-confidence levels
• Adapts to any market: crypto, forex, stocks, indexes
• Ideal for both intraday and swing trading setups
Built-in Intelligence. Clean Visuals. Zero Noise.
DXY-XAUUSD Correlation with ThresholdsIndicator Description: "DXY-XAUUSD Correlation with Thresholds"
This indicator tracks the dynamic correlation between the US Dollar Index (DXY) and gold prices (XAUUSD) over a user-defined period, expressed as a percentage. It calculates the rolling correlation coefficient between the closing prices of these two assets, scaled to ±100%, and visualizes it as a histogram.
Key Features:
Adjustable correlation period (default: 30 bars) and configurable positive/negative thresholds (default: ±70%).
Color-coded histogram: Intense green/red highlights correlations exceeding thresholds, signaling strong positive/negative relationships.
Horizontal dotted lines mark threshold levels, aiding in identifying overextended "overbought" or "oversold" correlation conditions.
An info table displays the current correlation value and active thresholds for quick reference.
Designed for traders analyzing the inverse relationship between the dollar and gold, this tool helps spot periods of extreme correlation divergence or convergence. The visual alerts and customizable parameters make it adaptable to various trading strategies and timeframes.
Note: The indicator is plotted in a separate pane (non-overlay) for clarity.
Smart Mean Reversion DashboardThis indicator is designed to help traders identify potential mean reversion opportunities using a combination of Bollinger Bands, RSI, and deviation from the moving average. It provides a clean, visually appealing dashboard that displays key metrics and signals in real-time.
How to Read and Use:
Deviation from Mean:
Displays the percentage deviation of the current price from the moving average.
A high positive or negative deviation may indicate overextension and a potential mean reversion opportunity.
Bollinger Band Status:
Indicates whether the price is inside or outside the Bollinger Bands.
"Outside Upper" suggests overbought conditions, while "Outside Lower" suggests oversold conditions.
RSI Status:
Shows whether the RSI is in overbought (>70), oversold (<30), or neutral conditions.
Overbought and oversold levels can confirm potential reversal zones.
Signal:
BUY: Triggered when the price is outside the lower Bollinger Band and RSI is in the oversold zone.
SELL: Triggered when the price is outside the upper Bollinger Band and RSI is in the overbought zone.
WAIT: No clear signal; wait for better conditions.
Important Notes:
This is NOT a buy or sell recommendation. This indicator is a tool to assist in identifying potential trading opportunities. Always use it in conjunction with your own analysis and risk management.
The signals generated by this indicator are based on historical data and do not guarantee future performance.
It is recommended to use this indicator alongside other technical analysis tools and confirm signals with price action or other strategies.
Features:
Dashboard: Displays deviation, Bollinger Band status, RSI status, and signals in a clean, movable interface.
Customizable Settings: Adjust Bollinger Band length, RSI length, and moving average length to suit your trading style.
Visual Enhancements: Color-coded signals and metrics for easy interpretation in both light and dark modes.
Disclaimer:
Trading involves significant risk, and past performance is not indicative of future results. This indicator is for educational purposes only and should not be considered financial advice. Always consult with a financial advisor before making trading decisions.
Time Marker Pro: Vertical Line at Key Times)Smart Vertical Line at Specific Time (with Timezone, Color, and Width Controls)
This script draws a vertical line on your chart at a user-defined time once per day, based on the selected timezone.
🕒 Key Features:
Set your target hour and minute
Choose from a list of common timezones (Tehran, UTC, New York, etc.)
Customize the line color and thickness
Works across all intraday timeframes (1min, 5min, 15min, etc.)
Adjusts automatically to bar intervals — no need for exact time matching
This is perfect for traders who want to:
Highlight the start of a session
Mark specific news times, breakouts, or routine entries
Visualize key time-based levels on the chart