Wx Stop Loss BetaWx Stop Loss Beta is an adaptive stop-loss overlay intended for discretionary entry management in medium- to long-term trades. It integrates a volatility filter, support-based logic, and capital protection constraints.
• Manual Entry Price: User inputs their actual entry point
• Volatility Anchor: Stop-loss adjusts using ATR (customizable length and multiplier)
• Support Reference: Based on swing low over a configurable lookback period
• Loss Cap: Maximum allowable loss percentage from entry price (hard floor)
• Trailing Logic: Stop-loss only moves upward (never lowers), adapting to favorable price action
• Output: Displays a horizontal line at the stop-loss level and renders its value in the data window
Warning: This tool is experimental and has not been formally backtested. It is provided as-is for manual strategy enhancement. Use at your own discretion, and validate thoroughly in a paper or sandbox environment before relying on it in live trading. Feedback and critique are encouraged.
Indicators and strategies
Machine Learning: ARIMA + SARIMADescription
The ARIMA (Autoregressive Integrated Moving Average) and SARIMA (Seasonal ARIMA) are advanced statistical models that use machine learning to forecast future price movements. It uses autoregression to find the relationship between observed data and its lagged observations. The data is differenced to make it more predictable. The MA component creates a dependency between observations and residual errors. The parameters are automatically adjusted to market conditions.
Differences
ARIMA - This excels at identifying trends in the form of directions
SARIMA - Incorporates seasonality. It's better at capturing patterns previously seen
How To Use
1. Model: Determine if you want to use ARIMA (better for direction) or SARIMA (better for overall prediction). You can click on the 'Show Historic Prediction' to see the direction of the previous candles. Green = forecast ending up, red = forecast ending down
2. Metrics: The RMSE% and MAPE are 10 day moving averages of the first 10 predictions made at candle close. They're error metrics that compare the observed data with the predicted data. It is better to use them when they're below 8%. Higher timeframes will be higher, as these models are partly mean-reverting and higher TFs tend to trend more. Better to compare RMSE% and MAPE with similar timeframes. They naturally lag as data is being collected
3. Parameter selection: The simpler, the better. Both are used for ARIMA(1,1,1) and SARIMA(1,1,1)(1,1,1)5. Increasing may cause overfitting
4. Training period: Keep at 50. Because of limitations in pine, higher values do not make for more powerful forecasts. They will only criminally lag. So best to keep between 20 and 80
[blackcat] L3 Adaptive Trend SeekerOVERVIEW
The indicator is designed to help traders identify dynamic trends in various markets efficiently. It employs advanced calculations including Dynamic Moving Averages (DMAs) and multiple moving averages to filter out noise and provide clear buy/sell signals 📈✨. By utilizing innovative algorithms that adapt to changing market conditions, this tool enables users to make informed decisions across different timeframes and asset classes.
This versatile indicator serves both novice and experienced traders seeking reliable ways to navigate volatile environments. Its primary objective is to simplify complex trend analysis into actionable insights, making it an indispensable addition to any trader’s arsenal ⚙️🎯.
FEATURES
Customizable Dynamic Moving Average: Calculates an adaptive moving average tailored to specific needs using customizable coefficients.
Trend Identification: Utilizes multi-period moving averages (e.g., short-term, medium-term, long-term) to discern prevailing trends accurately.
Crossover Alerts: Provides visual cues via labels when significant crossover events occur between key indicators.
Adjusted MA Plots: Displays steplines colored according to the current trend direction (green for bullish, red for bearish).
Historical Price Analysis: Analyzes historical highs and lows over specified periods, ensuring robust trend identification.
Conditional Signals: Generates bullish/bearish conditions based on predefined rules enhancing decision-making efficiency.
HOW TO USE
Script Installation:
Copy the provided code and add it under Indicators > Add Custom Indicator within TradingView.
Choose an appropriate name and enable it on your desired charts.
Parameter Configuration:
Adjust the is_trend_seeker_active flag to activate/deactivate the core functionality as needed.
Modify other parameters such as smoothing factors if more customized behavior is required.
Interpreting Trends:
Observe the steppled lines representing the long-term/trend-adjusted moving averages:
Green indicates a bullish trend where prices are above the dynamically calculated threshold.
Red signifies a bearish environment with prices below respective levels.
Pay attention to labels marked "B" (for Bullish Crossover) and "S" (for Bearish Crossover).
Signal Integration:
Incorporate these generated signals within broader strategies involving support/resistance zones, volume data, and complementary indicators for stronger validity.
Use crossover alerts responsibly by validating them against recent market movements before execution.
Setting Up Alerts:
Configure alert notifications through TradingView’s interface corresponding to crucial crossover events ensuring timely responses.
Backtesting & Optimization:
Conduct extensive backtests applying diverse datasets spanning varied assets/types verifying robustness amidst differing conditions.
Refine parameters iteratively improving overall effectiveness and minimizing false positives/negatives.
EXAMPLE SCENARIOS
Swing Trading: Employ the stepline crossovers coupled with momentum oscillators like RSI to capitalize on intermediate trend reversals.
Day Trading: Leverage rapid adjustments offered by short-medium term MAs aligning entries/exits alongside intraday volatility metrics.
LIMITATIONS
The performance hinges upon accurate inputs; hence regular recalibration aligning shifting dynamics proves essential.
Excessive reliance solely on this indicator might lead to missed opportunities especially during sideways/choppy phases necessitating additional filters.
Always consider combining outputs with fundamental analyses ensuring holistic perspectives while managing risks effectively.
NOTES
Educational Resources: Delve deeper into principles behind dynamic moving averages and their significance in technical analysis bolstering comprehension.
Risk Management: Maintain stringent risk management protocols integrating stop-loss/profit targets safeguarding capital preservation.
Continuous Learning: Stay updated exploring evolving financial landscapes incorporating new methodologies enhancing script utility and relevance.
THANKS
Thanks to all contributors who have played vital roles refining and optimizing this script. Your valuable feedback drives continual enhancements paving way towards superior trading experiences!
Happy charting, and here's wishing you successful ventures ahead! 🌐💰!
BTC vs ALT Lag Detector [MEXC Overlay]This indicator monitors the price movement of Bitcoin (BTC) and compares it in real time to a customizable list of major altcoins on the MEXC exchange.
It helps you identify lagging altcoins — tokens that are underperforming or overperforming BTC’s price action over a selected timeframe. These temporary deviations can offer profitable entry or rotation opportunities, especially for scalpers, day traders, and arbitrage-style strategies.
Key Features:
- Real-time deviation detection between BTC and altcoins
- Customizable comparison timeframe: 1m, 6m, 12m, 30m, 1h, 4h, or 1d
- Deviation threshold alert: Highlights coins that lag BTC by more than 0.5%, 1%, 2%, or 3%
- Compact stats table embedded in the price chart
- Fully adjustable layout: Table position (Top/Bottom/Center + Left/Right), Font size (Tiny, Small, Medium)
- Built-in alert system when deviation exceeds your chosen threshold
How to Use It:
Set your desired timeframe for comparison (e.g., 1 hour).
Select a deviation threshold (e.g., 1.0%).
The table will show:
Each altcoin’s % change
BTC’s % change
The delta (deviation) vs BTC
Red highlights indicate alts whose deviation exceeded the threshold.
When at least one alt lags beyond your threshold, the indicator can trigger an alert — helping you capitalize on potential catch-up trades.
Please provide any feedback on it.
Trend Classifier [ChartPrime]Trend Classifier
This is a multi-level trend classification tool that detects bullish, bearish, and ranging conditions using an adaptive smoothing method. It highlights trend strength through color-coded candles and layered bands, making it easy to interpret market momentum visually.
⯁ KEY FEATURES
Classifies trend strength using 3 bullish and 3 bearish levels relative to an adaptive trend line.
Neutral (range) zones are marked when price stays between key bands, often signaling low volatility or consolidation.
Automatically filters band visibility based on current trend direction:
In uptrends, only levels below the price are displayed.
In downtrends, only levels above the price are shown.
Color-coded candles:
Aqua candles for bullish conditions.
Red candles for bearish conditions.
Orange candles during neutral or ranging conditions.
Includes a trend direction change marker (diamond), plotted when a shift in trend is detected.
Plots a central smoothed trend line to anchor the trend bands dynamically.
Displays a trend strength dashboard in the top-right corner with real-time bull and bear scores (0 to 3).
Labels with arrows (▲/▼) show current trend direction and strength on the chart.
⯁ HOW TO USE
Use bull and bear levels (1–3) to assess the momentum of the current trend.
When bull = 0 and bear = 0 , market is considered ranging or consolidating – consider fading or waiting for breakout confirmation.
Trend bands can be used as dynamic support/resistance during trending phases.
Monitor the trend change diamonds to spot potential early reversals.
Combine with volume or oscillator tools for confirmation of strength shifts.
⯁ CONCLUSION
Trend Classifier helps traders stay aligned with the dominant trend while visually breaking down market momentum into levels. Its clean color-coded design and strength dashboard make it ideal for both trend following and range trading strategies.
Dynamic Liquidity Depth [BigBeluga]
Dynamic Liquidity Depth
A liquidity mapping engine that reveals hidden zones of market vulnerability. This tool simulates where potential large concentrations of stop-losses may exist — above recent highs (sell-side) and below recent lows (buy-side) — by analyzing real price behavior and directional volume. The result is a dynamic two-sided volume profile that highlights where price is most likely to gravitate during liquidation events, reversals, or engineered stop hunts.
🔵 KEY FEATURES
Two-Sided Liquidity Profiles:
Plots two separate profiles on the chart — one above price for potential sell-side liquidity , and one below price for potential buy-side liquidity . Each profile reflects the volume distribution across binned zones derived from historical highs and lows.
Real Stop Zone Simulation:
Each profile is offset from the current high or low using an ATR-based buffer. This simulates where traders might cluster their stop-losses above swing highs (short stops) or below swing lows (long stops).
Directional Volume Analysis:
Buy-side volume is accumulated only from bullish candles (close > open), while sell-side volume is accumulated only from bearish candles (close < open). This directional filtering enhances accuracy by capturing genuine pressure zones.
Dynamic Volume Heatmap:
Each liquidity bin is rendered as a horizontal box with a color gradient based on volume intensity:
- Low activity bins are shaded lightly.
- High-volume zones appear more vividly in red (sell) or lime (buy).
- The maximum volume bin in each profile is emphasized with a brighter fill and a volume label.
Extended POC Zones:
The Point of Control (PoC) — the bin with the most volume — is extended backwards across the entire lookback period to mark critical resistance (sell-side) or support (buy-side) levels.
Total Volume Summary Labels:
At the center of each profile, a summary label displays Total Buy Liquidity and Total Sell Liquidity volume.
This metric helps assess directional imbalance — when buy liquidity is dominant, the market may favor upward continuation, and vice versa.
Customizable Profile Granularity:
You can fine-tune both Resolution (Bins) and Offset Distance to adjust how far profiles are displaced from price and how many levels are calculated within the ATR range.
🔵 HOW IT WORKS
The indicator calculates an ATR-based buffer above highs and below lows to define the top and bottom of the liquidity zones.
Using a user-defined lookback period, it scans historical candles and divides the buffered zones into bins.
Each bin checks if bullish (or bearish) candles pass through it based on price wicks and body.
Volume from valid candles is summed into the corresponding bin.
When volume exists in a bin, a horizontal box is drawn with a width scaled by relative volume strength.
The bin with the highest volume is highlighted and optionally extended backward as a zone of importance.
Total buy/sell liquidity is displayed with a summary label at the side of the profile.
🔵 USAGE/b]
Identify Stop Hunt Zones: High-volume clusters near swing highs/lows are likely liquidation zones targeted during fakeouts.
Fade or Follow Reactions: Price hitting a high-volume bin may reverse (fade opportunity) or break with strength (confirmation breakout).
Layer with Other Tools: Combine with market structure, order blocks, or trend filters to validate entries near liquidity.
Adjust Offset for Sensitivity: Use higher offset to simulate wider stop placement; use lower for tighter scalping zones.
🔵 CONCLUSION
Dynamic Liquidity Depth transforms raw price and volume into a spatial map of liquidity. By revealing areas where stop orders are likely hidden, it gives traders insight into price manipulation zones, potential reversal levels, and breakout traps. Whether you're hunting for traps or trading with the flow, this tool equips you to navigate liquidity with precision.
Session + FVG + Order Blocks + EMAs1. Overall Purpose
This indicator combines four key functions into one pane to help you:
Highlight major market sessions (Asia, London, New York)
Plot Fair Value Gaps (FVG) and Order Blocks
Display up to four fully customizable Exponential Moving Averages (EMAs)
Shift all times via a configurable UTC offset
Together, these features let you see session activity zones, price imbalances, and underlying trend direction all at a glance.
2. Time Zone
Input: “Time Zone”
Set your chart’s UTC offset (e.g. “UTC+2”) so that each session box aligns with your local clock.
3. Market Sessions
Each session is drawn as a shaded rectangle labeled by name:
Session Default UTC Hours Color Toggle Visibility
Asia 00:00 – 08:15 Light blue fill ☑️ Show Asia session
London 09:00 – 12:00 Light green fill ☑️ Show London session
New York 14:30 – 18:00 Soft red fill ☑️ Show NY session
Enable or disable each session via its checkbox.
Adjust start/end times and the fill color for any session.
Border style and thickness are set in “Box Line Style” and “Box Line Thickness.”
4. Fair Value Gaps & Order Blocks
Controls for identifying imbalances and institutional zones:
Setting Description
Max Blocks Maximum number of gaps/order-blocks to display
Filter Gaps by % Only show gaps larger than this percentage
Lookback Bars How many bars back to scan for gaps and blocks
Bullish OB/FVG Color Fill color for bullish blocks & gaps
Bearish OB/FVG Color Fill color for bearish blocks & gaps
Show Fair Value Gaps Toggle visibility of FVG rectangles
Show Order Blocks Toggle visibility of Order Block rectangles
Fair Value Gaps mark small untraded price areas.
Order Blocks highlight previous zones of major buying or selling.
5. EMAs (Exponential Moving Averages)
Up to four EMAs can be displayed independently:
EMA Enable? Length (periods) Color
EMA 1 ☑️ Show EMA 1 20 Orange
EMA 2 ☑️ Show EMA 2 50 Blue
EMA 3 ☑️ Show EMA 3 100 Green
EMA 4 ☑️ Show EMA 4 200 Red
Tick the box to plot an EMA on your chart.
Change its length to match your strategy’s lookback.
Pick a color that stands out against your background.
6. Recommended Workflow
Set your Time Zone so session boxes align with your local trading hours.
Enable only the sessions you trade (e.g. deselect Asia if you focus on London & NY).
Tweak FVG/Order Block parameters:
Adjust Lookback Bars and Filter Gaps by % to fine-tune the number of zones.
Customize your EMAs (periods and colors) to suit your trend-following or mean-reversion approach.
Combine the layers: watch how price behaves within session boxes, around FVG/Order Blocks, and relative to your EMAs to plan entries and exits.
Liquidity Sweep Detector – PDH/PDL LevelsPrevious Day High/Low Liquidity Sweep Detector (Intraday Accurate)
This indicator tracks the previous day's high and low using intraday data, rather than the daily candle, ensuring precise sweep detection across lower timeframes (15m to 4H).
It monitors for liquidity sweeps—moments when price briefly moves above the previous high or below the previous low—and visually marks these events on the chart.
Key Features
Intraday-accurate PDH/PDL tracking
Real-time sweep detection
On-chart labels marking sweep events
Toggleable table showing sweep status
Alert conditions for PDH/PDL sweep triggers
Best For
Traders who use Smart Money Concepts (SMC), liquidity-based strategies, or look for stop hunts and reversal zones tied to key prior-day levels.
Works well across FX, crypto, and indices on 15m, 1H, and 4H charts.
BTC Fair Value via Global Liquidity📈 BTC Fair Value via Global Liquidity
This indicator estimates Bitcoin's fair value based on a regression model using Global Liquidity (GLI) data from major central banks.
🔍 How it works:
Fair Value Line (orange): Calculated using a power-law model: Fair Value = e^b * (GLI)^a, where a and b are user-defined parameters based on historical regression.
Global Liquidity (GLI): Combines liquidity metrics from central banks (Fed, ECB, PBoC, BoJ, etc.), including adjustments for the RRP and TGA.
Deviation Bands (green/red dashed): Optional upper and lower bands showing % deviation from fair value (default ±25%). These help identify overbought/oversold conditions.
Delta Plot (gray dots): Displays the % deviation of BTC’s price from its modeled fair value.
⚙️ How to use:
Tune a and b for better model fitting (e.g., via log-log regression).
Use the deviation bands to identify potential entry/exit zones or periods of market inefficiency.
Ideal for macro-level BTC valuation and long-term strategic analysis.
Volume Nodes Probability Gauge[VIO]Volume Nodes Probability Gauge
This indicator helps identify and analyze significant volume nodes on the chart. It visualizes the probability of these key price levels holding based on how many times price has interacted with them. Additionally, it provides a dynamic volatility pressure gauge next to nearby volume nodes, offering insight into the current market volatility as price approaches these levels. The indicator also includes customizable alerts for level crossings combined with specific volatility conditions.
Key Features:
Significant Volume Node Identification: Automatically detects price levels with notable volume activity.
Probability Visualization: Displays a probability percentage next to each volume node, which decreases as the level is touched more frequently.
Volatility Pressure Gauge: Shows a visual gauge next to nearby volume nodes, indicating the current volatility pressure (bullish/green or bearish/red) and its intensity.
Customizable Alerts: Set alerts for price crossing significant volume nodes based on increasing/decreasing average volatility, high volatility levels, or any volatility.
Adjustable Sensitivity: Control the strength and number of volume nodes detected.
Customizable Visuals: Configure the appearance of volume nodes based on their "touched" state (Naked, Dirty, Faded).
Okay, I can explain how you might use the "Volume Nodes Probability Gauge " indicator in a trading context. The indicator provides several pieces of information that can be combined to inform potential trading decisions.
Here's a breakdown of how to interpret and potentially trade using its features:
Volume Nodes as Support/Resistance:
Interpretation: The core of the indicator is identifying price levels where significant volume has traded in the past. These levels often act as areas of support (where buying pressure might step in) or resistance (where selling pressure might emerge).
Trading Idea: Look for price reactions around these visualized volume nodes.
Long Entry: Consider long positions if price approaches a volume node from above and shows signs of support (e.g., bullish price action, rejection candles).
Short Entry: Consider short positions if price approaches a volume node from below and shows signs of resistance (e.g., bearish price action, rejection candles).
Probability Gauge:
Interpretation: The probability percentage next to each node gives you an idea of how "fresh" or "tested" the level is. A higher percentage (less touches) suggests the level hasn't been heavily traded since it formed, potentially making it a stronger barrier on the first few tests. A lower percentage (more touches) indicates the level has been revisited multiple times, which could mean it's weakening or acting as a magnet.
Trading Idea:
Higher Probability (e.g., 80%+): These "Naked" or "Dirty" levels (0-1 touches) might offer stronger initial reactions. You might look for bounce trades off these levels with tighter stops.
Lower Probability (e.g., < 50%): These "Faded" levels (2+ touches) might be more prone to breaking. You might look for breakout trades through these levels, or anticipate price consolidating around them.
Volatility Pressure Gauge:
Interpretation: This gauge shows the current volatility pressure (increasing/decreasing average volatility) as price gets close to a specific volume node.
Green Gauge (Increasing Average Volatility): Suggests volatility is expanding as price nears the node. This can indicate potential for a strong move or a breakout.
Red Gauge (Decreasing Average Volatility): Suggests volatility is contracting as price nears the node. This might precede consolidation or a less impulsive reaction at the level.
Trading Idea:
Green Gauge at a Node: If price is at a volume node with a green volatility gauge, it could signal an impending breakout or a strong impulsive bounce/rejection. This might increase confidence in a breakout trade (if other factors align) or suggest a potentially volatile reaction if trading a bounce.
Red Gauge at a Node: If price is at a volume node with a red volatility gauge, it might suggest consolidation around the level or a less aggressive reaction. This could be useful for range-bound strategies or anticipating a slower move.
Volatility Crossing Alerts:
Interpretation: These alerts notify you when price crosses a volume node and a specific volatility condition is met (increasing average volatility, high volatility level, or any volatility).
Trading Idea: Use these alerts as potential entry signals or confirmation of a move.
An alert with "Increasing Average Volatility" or "High Volatility Level" when price crosses a node could signal a high-momentum breakout or breakdown.
You can configure the alerts to notify you based on the volatility condition that best suits your trading style.
Combining Signals:
The most effective way to use this indicator is likely by combining the signals. For example:
A high-probability (Naked/Dirty) volume node + price showing rejection + Green Volatility Pressure Gauge could be a strong confluence for a bounce trade.
A low-probability (Faded) volume node + price breaking through + Green Volatility Pressure Gauge could indicate a higher likelihood of a successful breakout trade.
Remember that no indicator is perfect, and it's crucial to use this in conjunction with your overall trading strategy, risk management, and other analysis tools. Experiment with the different input settings to find what works best for the instruments and timeframes you trade.
SessionBarThis PineScript is designed to display various visual elements on a chart to help traders track session activity within the lower time frames, specifically for the USA main session. Here's a breakdown of the script's functionality:
Session Tracking
The script tracks the USA main session, defined as 9:30 AM to 4:00 PM ET, Monday through Friday.
Visual Elements
The script displays various visual elements, including:
1. Session Open and Close Lines: Lines marking the open and close of the USA main session.
2. Session High and Low Lines: Lines marking the high and low of the USA sessions.
3. Active Session Bar: A Realtime Candle as the current session bar.
4. Overnight Session Bar: A Realtime Candle as the overnight session bar.
5. Session Timer: A label displaying the time left until the next session.
6. Background Colors: Colors indicating different session periods, such as pre-market, post-market, and active session.
Customization
The script allows users to customize various aspects, including:
1. Session Time: Users can adjust the session time.
2. Colors: Users can choose colors for different visual elements.
3. Display Options: Users can toggle the display of various visual elements.
Overall, this script provides a educational tool for traders to track session activity and visualize key market data.
Directional Movement Index (DMI) + AlertsThis is a Study with associated visual indicators and Bullish/Bearish Alerts for Directional Movement (DMI). It consists of an Average Directional Index (ADX), Plus Directional Indicator (+DI) and Minus Directional Indicator (-DI).
Published by J. Welles Wilder in 1978 for use with currencies and commodities which are typically more volatile than stocks and have stronger trends.
Development Notes
---------------------------
This indicator, and most of the descriptions below, were derived largely from the TradingView reference manual. Feedback and suggestions for improvement are more than welcome, as well are recommended Input settings and best practices for use.
tradingview.com/chart/?solution=43000502250
Strategy Description
---------------------------
ADX defines whether or not there is a trend present; +DI and -DI compliment the ADX by taking direction into account. An ADX above 25 indicates a strong trend, and a Bullish alert is subsequently triggered when +DI is above -DI and a Bearish alert when -DI is above +DI.
Note that the Bullish or Bearish crossover alert will only trigger if ADX is simultaneously above 25 during the crossover event. If ADX later rises to 25 and +DI is still greater than -DI, or -DI greater than +DI, then a delayed alert will not trigger by design.
Basic Use
---------------------------
Acceptable DMI values are up to the trader's interpretation and may change depending on the financial instrument being examined. Recommend not changing any default values without being first familiar with their purpose and impact on the indicator at large.
Confidence in price action and trend is higher when two or more indicators are in agreement -- therefore we recommend not using this indicator by itself to determine entry or exit trade opportunities.
Recommend also choosing 'Once Per Bar Close' when creating alerts.
Inputs
---------------------------
ADX Smoothing - the time period to be used in calculating the ADX which has a smoothing component (14 is the Default).
DI Length - the time period to be used in calculating the DI (14 is the Default).
Key Level - any trade with the ADX above the key level is a strong indicator that it is trending (23 to 25 is the suggested setting).
Sensitivity - an incremental variable to test whether the past n candles are in the same bullish or bearish state before triggering a delayed crossover alert (3 is the Default). Filter out some noise and reduces active alerts.
Show ADX Option - two visual styles are provided for user preference, a visible ADX line or a background overlay (green or red when ADX is above the key level, for bullish or bearish, and gray when below).
Color Candles - an option to transpose the bullish and bearish crossovers to the main candle bars. Can be turned off in the Style Tab by deselecting 'Bar Colors'. Dark blue is bullish, dark purple is bearish, and the black inner color is neutral. Note that the outer red and green border will still be distinguished by whether each individual candle is bearish or bullish during the specified timeframe.
Indicator Visuals
---------------------------
Bullish or Bearish plot based on DMI strategy (ADX and +/-DI values).
Visual cues are intended to improve analysis and decrease interpretation time during trading, as well as to aid in understanding the purpose of this study and how its inclusion can benefit a comprehensive trading strategy.
Trend Strength
---------------------------
To analyze trend strength, the focus should be on the ADX line and not the +DI or -DI lines. An ADX reading above 25 indicates a strong trend, while a reading below 20 indicates a weak or non-existent trend. A reading between those two values would be considered indeterminable. Though what is truly a strong trend or a weak trend depends on the financial instrument being examined; historical analysis can assist in determining appropriate values.
Bullish DI Cross
---------------------------
1. ADX must be over 25 (strong trend) (value is determined by the trader)
2. +DI cross above -DI
3. Set Stop Loss at the current day's low (any +DI cross-backs below -DI should be ignored)
4. Set trailing stop if ADX strengthens (i.e., signal rises)
Bearish DI Cross
---------------------------
1. ADX must be over 25 (strong trend) (value is determined by the trader)
2. -DI cross above +DI
3. Set Stop Loss at the current day's high (any -DI cross-backs below +DI should be ignored)
4. Set trailing stop if ADX strengthens (i.e., signal rises)
Disclaimer
---------------------------
This post and the script are not intended to provide any financial advice. Trade at your own risk.
No known repainting.
Version 1.1
-------------------------
- Added multi-timeframe resolution using PineCoders secure security function to eliminate repainting.
- Cleaned up option for selecting ADX view; and added a colored line as a choice, based on same bullish, bearish, or neutral colors as the background.
- Added exit crossover indicator to aid in an overall strategy development. This ability pairs better with my CHOP Zone Entry Strategy which relies on DMI Exits. Note that exit conditions don't employ the sensitivity variable. Green labels are for Bullish exits and red are for Bearish.
-- Exit condition is triggered if in an active Bullish or Bearish position and ADX drops below 25, Or if either the -DI crosses above +DI (for previously Bullish) or +DI crosses above -DI (for previously Bearish).
- Added reverse position determination. Triggers when a Bullish entry occurs on the same candle as a Bearish exit, or vice versa. Green labels are for Bullish reverses and red are for Bearish.
- Added selectable option to choose visible labels -- Bearish, Bullish, Both, Exits, Reverses, or All.
-- Note that a reverse label will only show if the opposing entry and exit labels are set to show, otherwise the reverse will revert to the appropriate entry or exit on the chart.
- Added alerts to account for new conditions.
-- Note that alerts for crossovers, exits, and reverses will only be triggered if the associated labels are selected to be shown (i.e., what you choose to see on the chart is what you will be alerted to).
Version 1.2
-------------------------
- Changed exit condition to be decided on by whether ADX is below 25 and on a +/-DI crossover. Versus being either or. The previous version had too many false triggers. This variety can now show multiple Bullish or Bearish alerts before an Exit condition too. I'm tempted to simply make this condition based on ADX, and not DI … thoughts? See lines 138 and 139.
- Updated the Background view to have deeper shades of colors dependent upon the ADX trend strength.
- Added an Oscillator view for the ADX and momentum computations to color the histogram by trend. DI lines are hidden.
-- If ADX is Bullish, then the oscillator is colored light green in an uptrend and dark green in a downtrend; if Bearish, then its light red in an uptrend and dark redin a downtrend; if adx is below key level, then it is light gray in a downtrend and dark grey in the uptrend.
- Added option to Hide ADX in case only the Directional lines are desired. This could be useful if you would like to have the ADX oscillator in one panel and +/-DI crossovers in another.
- Added a Columnar view for the ADX. DI lines are hidden. This view is really simple and compact, with the trend strength still easily understood. Colors are the same as for the oscillator -- the deeper the shade of green or red, then the higher the ADX trend strength level.
- Added a Trend Strength label.
ADX Trend Strength Trade (Y/N) Setup Types
0 to 10 = Barely Breathing N N/A
10 to 20 = Weak Trend Y Range/Pre-Breakout
20 to 30 = Potentially Starting to Trend Y Early Stage Trend
30 to 50 = Strong Trend Y Ride the Wave
50 to 75 = Very Strong Trend N Exhaustion
75 to 100 = Extremely Strong Trend N N/A
Version 1.3
-------------------------
Updated to Pine Script v5 to resolve errors from the deprecated v4 version.
This is a reissue of a previously published script that was hidden due to a v4 compatibility issue.
'https://www.tradingview.com/script/9OoEHrv5-Directional-Movement-Index-DMI-Alerts/'
BK AK-9I am incredibly proud to introduce my fourth indicator to the TradingView community:
BK AK-9 — a next-level momentum-volatility hybrid, built for traders who demand precision.
🔥 Why “AK-9”? The Meaning Behind the Name
This indicator is deeply personal to me.
The “AK” in the name represents the initials of my mentor — the man whose guidance shaped my journey in trading, discipline, and strategy.
His wisdom is woven into every line of code, every design choice, and every purpose behind this tool.
The “9” holds its own powerful meaning:
9 is the number of completion and breakthrough — the moment where preparation meets opportunity.
The AK-9 weapon itself is a suppressed variant of the legendary AK platform, built for stealth, precision, and maximum impact in close-quarters combat.
It’s quiet, adaptive, and deadly effective — just like this indicator cuts through market noise, adapts to volatility, and pinpoints moments of maximum opportunity.
✨ About the BK AK-9 Indicator
The BK AK-9 is not just an oscillator.
It’s a multi-layered trading weapon combining:
✅ RSI → Stochastic → Bollinger Bands on Stoch RSI → momentum measured inside volatility.
✅ Dynamic or Static Background Flash → when extremes hit, you get instant visual alerts.
✅ Color-coded %K zones →
🔴 Red: oversold
🟢 Green: overbought
🔵 Blue: neutral
✅ Volatility-adaptive bands → instead of relying on static levels, the bands expand and contract dynamically using standard deviation.
🛡️ Why This Indicator Matters
Pinpoints exhaustion zones statistically, not emotionally.
Confirms breakouts with volatility evidence, not just price action.
Filters noise and helps you wait for high-probability setups.
Gives you visual edge with color-coded momentum and background flash.
Perfect for:
🔹 Breakout traders confirming momentum surges.
🔹 Mean-reversion traders catching exhaustion pivots.
🔹 Swing traders using multi-layered momentum analysis.
🔹 Momentum traders hunting volatility-backed entries.
💥 How to Use BK AK-9
Breakout Confirmation → when Stoch RSI breaks above upper Bollinger Band (green zone, flash ON), ride the trend.
Mean Reversion Trades → when Stoch RSI drops below lower Bollinger Band (red zone, flash ON), look for reversals.
Noise Filtering → stay patient inside the blue zone, wait for extremes.
Advanced Sync → align it with Gann levels, harmonic patterns, Fibonacci clusters, or Elliott waves for maximum edge.
🙏 Final Thoughts
This isn’t just another tool — it’s a weapon in your trading arsenal.
🔹 Dedicated to my mentor, A.K., whose wisdom and legacy guide my work.
🔹 Designed around the number 9, the number of completion, transition, and breakthrough.
🔹 Built to help traders act with precision, discipline, and clarity.
But above all, I give praise and glory to Gd — the true source of wisdom, insight, and success.
Markets will test your patience and your skill, but faith tests your soul. Through every challenge, every victory, and every setback, Gd remains the constant.
This tool is simply another way to use the gifts He has given — to help others rise.
⚡ Stay Ready, Stay Sharp
The markets are a battlefield. But with the right tools, the right strategy, and the right mindset — you will always stay 10 steps ahead.
🔥 Stay locked. Stay loaded. Trade with precision. 🔥
Gd bless, and may He guide us all to wisdom and success. 🙏
[T] FVG Size MarkerThis scripts marks the size of the FVG on the chart. As well as lets you place custom text based on gap size. Custom text lets you overlay contract size risk based on the gap size.
CoffeeShopCrypto Supply Demand PPO AdvancedCoffeeShopCrypto PPO Advanced is a structure-aware momentum oscillator and price-trend overlay designed to help traders interpret momentum strength, exhaustion, and continuation across evolving market conditions. It’s not a “buy/sell” signal tool — it's a momentum context tool that helps confirm trend intent.
Original Code derived from the Price Oscillator Indicators (PPO) found in the TradingView Technical Indicators categories. You can view the info and calculation for the original PPO here
www.tradingview.com
Much like the MACD, the PPO uses a couple lagging indicators to present Momentum as a percentage. But it lacks context to market structure.
What It’s Based On
This tool is based on a dual-moving-average PPO oscillator structure (Percentage Price Oscillator) enhanced by:
Oscillator pivot structure: detection of Lower Highs (LH) and Higher Lows (HL) inside the oscillator.
Detection of Supply and Demand Trends via Market Absorption
Ability to transfer its average plots to price action
Detection of Trend Exhaustion
Real-time price-based exhaustion levels: projecting potential future supply and demand using trendlines from weakening momentum.
Integrated fast and slow Moving Averages on price using the same inputs as the oscillator, to visualize alignment between short- and long-term trends.
These elements combine momentum context with price action in a visual, intuitive system.
How It Works
1. Oscillator Structure
LHs (above zero): momentum weakening in uptrends.
HLs (below zero): momentum strengthening in downtrends.
Only valid pivots are shown (e.g., an LH must be preceded by a valid LL).
2. Exhaustion Levels
Green demand lines: price is making new lows, but oscillator prints HL → potential exhaustion.
Red supply lines: price is making new highs, but oscillator prints LH → potential exhaustion.
These lines are future-facing, projecting likely reaction zones based on momentum weakening.
3. Moving Averages on Price
Two MAs are drawn on the price chart:
Fast MA (same length as PPO short input)
Slow MA (same length as PPO long input)
These are not signal lines — they're visual guides for trend alignment.
MA crossover = PO crosses zero. This indicates short- and long-term momentum are syncing — a powerful signal of trend conviction.
When price is above both MAs, and the PO is rising above zero, bullish momentum is dominant.
When price is below both MAs, and the PO is falling below zero, bearish momentum dominates.
How Traders Can Use It
✅ Spot Trend Initiation
Wait for clear trend confirmation in price.
Use PPO Momentum+ to confirm momentum structure is aligned (e.g., HH/HL in oscillator + price above both MAs).
🔁 Track Continuations
In uptrends, look for oscillator HH and HL sequences with price holding above both MAs.
In downtrends, seek LL and LH sequences with price below both MAs.
⚠️ Watch for Exhaustion
Price breaking below red (supply) lines after oscillator LH = bearish exhaustion signal.
Price breaking above green (demand) lines after oscillator HL = bullish exhaustion signal.
These levels act like pre-mapped S/R zones, showing where momentum previously failed and price may react.
Why This Is Different
Momentum tools often lag or mislead when used blindly. This tool visualizes structural failure in momentum and maps potential outcomes. The integration of oscillator and price-based tools ensures traders are always reading context, not just raw signals.
Demand Trendlines
Demand trendlines show us Wykoff's law of "Absorbed Supply Reversal" In real time.
When aggressive selling pressure is persistently absorbed by passive buying interest without significant downward price continuation, and supply becomes exhausted, the market structure shifts as demand regains control—resulting in a directional reversal to the upside.
This commonly happens in a 3 phase interaction of price.
1. Selling pressure is absorbed quickly by buyers.
This PPO tool will calculate the trend of this absorption process
2. After there is a notable Bearish Exhaustion of price action, the PPO tool will draw a trendline of this absorption showing us the potential future prices where aggressive buyers will want to step in at lower prices.
3. After higher lows are defined in the oscillator, you'll see prices react in a strong bullish pattern at this trendline where aggressive buyers stepped in to reverse price action to the upside.
Supply Trendlines
Supply trendlines show us Wykoff's law of "Absorbed Demand Reversal" In real time.
When aggressive buying pressure is persistently absorbed by passive selling interest without significant downward price continuation, and demand becomes exhausted, the market structure shifts as supply regains control—resulting in a directional reversal to the downside.
This commonly happens in a 3 phase interaction of price.
1. Buying pressure is absorbed quickly by sellers.
This PPO tool will calculate the trend of this absorption process.
2. After there is a notable Bullish Exhaustion of price action, the PPO tool will draw a trendline of this absorption showing us the potential future prices where aggressive sellers will want to step in at higher prices.
3. After lower highs are defined in the oscillator, you'll see prices react in a strong bearish pattern at this trendline where aggressive sellers stepped in to reverse price action to the downside.
Lower High and Higher Low Signals
When the oscillator signals Lower Highs or High Lows its only noting that momentum in that trend direction is slowing. THis indicates a coming pause in the market and the proceeding longs of an uptrend or shorts of a downtrend should be taken with caution.
**These LH and HL markers are not reading as divergences in price vs momentum.**
They are simply registering against the highs and lows of itself..
Moving Averages on Price Action
The Oscillator will cross over its ZERO level the same time your Short and Long MAs cross each other. This will indicate that the short term average trend is moving ahead of the long term.
Crossovers are not an entry signal. It's a method in determining you current timeframe trend strength. Always observe price action as it passes through each of your moving averages and compare it to the positioning and direction of the oscillator.
If price dips in between the moving averages while the oscillator still shows a strong trend strength, you can wait for price to move ahead of your fast moving average.
Bar Colors and Signal Line for Trend Strength
Good Bullish Trend = Oscillator above zero + Signal rising below Oscillator
Weak Bullish Trend = Oscillator above zero + Signal above Oscillator
Good Bearish Trend = Oscillator below zero + Signal falling above Oscillator
Weak Bearish Trend = Oscillator below zero + Signal below Oscillator
Bar Colors
Bars are colored to match Oscillator Momentum Strength. Colors are set by user.
Why alter the known PPO (Percentage Price Oscillator) in this manner?
The PPO tool is great for measuring the strength as percentage of price action over and average amount of candles however, with these changes,
you know have the ability to correlate:
Wycoff theory of supply and demand,
Measure the depth of reversals and pullback by price positioning against moving averages,
Project potential reversal and exhaustion pricing,
Visibly note the structure of momentum much like you would note market structure,
Its not enough to know there is momentum. Its better to know
A) Is it enough
B) Is there something in the way which will cause price to push back
C) Does this momentum correlate to the prevailing trend
Smart Range DetectorSmart Range Detector
What It Does
This indicator automatically detects and validates significant trading ranges using pivot point analysis combined with logarithmic fibonacci relationships. It operates by identifying specific pivot patterns (High-Low-High and Low-High-Low) that meet fibonacci validation criteria to filter out noise and highlight only the most reliable trading ranges. Each range is continuously monitored for potential mitigation (breakout) events.
Key Features
Identifies both High-Low-High and Low-High-Low range patterns
Validates each range using logarithmic fibonacci relationships (more accurate than linear fibs)
Detects range mitigations (breakouts) and visually differentiates them
Shows fibonacci levels within ranges (25%, 50%, 75%) for potential reversal points
Visualizes extension levels beyond ranges for breakout targets
Analyzes volume profile with customizable price divisions (default: 60)
Displays Point of Control (POC) and Value Area for traded volume analysis
Implements performance optimization with configurable range limits
Includes user-adjustable safety checks to prevent Pine Script limitations
Offers fully customizable colors, line widths, and transparency settings
How To Use It
Identify Valid Ranges : The indicator automatically detects and highlights trading ranges that meet fibonacci validation criteria
Monitor Fibonacci Levels : Watch for price reactions at internal fib levels (25%, 50%, 75%) for potential reversal opportunities
Track Extension Targets : Use the extension lines as potential targets when price breaks out of a range
Analyze Volume Structure : Enable the volume profile mode to see where most volume was traded within mitigated ranges
Trade Range Boundaries : Look for reactions at range highs/lows combined with volume POC for higher probability entries
Manage Performance : Adjust the maximum displayed ranges and history bars settings for optimal chart performance
Settings Guide
Left/Right Bars Look Back : Controls how far back the indicator looks to identify pivot points (higher values find more ranges but may reduce sensitivity)
Max History Bars : Limits how far back in history the indicator will analyze (stays within Pine Script's 10,000 bar limitation)
Max Ranges to Display : Restricts the total number of ranges kept in memory for improved performance (1-50)
Volume Profile : When enabled, shows volume distribution analysis for mitigated ranges
Volume Profile Divisions : Controls the granularity of the volume analysis (higher values show more detail)
Display Options : Toggle visibility of range lines, fibonacci levels, extension lines, and volume analysis elements
Transparency & Color Settings : Fully customize the visual appearance of all indicator elements
Line Width Settings : Adjust the thickness of lines for better visibility on different timeframes
Technical Details
The indicator uses logarithmic fibonacci calculations for more accurate price relationships
Volume profile analysis creates 60 price divisions by default (adjustable) for detailed volume distribution
All timestamps are properly converted to work with Pine Script's bar limitations
Safety checks prevent "array index out of bounds" errors that plague many complex indicators
Time-based coordinates are used instead of bar indices to prevent "bar index too far" errors
This indicator works well on all timeframes and instruments, but performs best on 5-minute to daily charts. Perfect for swing traders, range traders, and breakout strategists.
What Makes It Different
Most range indicators simply draw boxes based on recent highs and lows. Smart Range Detector validates each potential range using proven fibonacci relationships to filter out noise. It then adds sophisticated volume analysis to help traders identify the most significant price levels within each range. The performance optimization features ensure smooth operation even on lower timeframes and extended history analysis.
Precision Stochastic DivergenceThis indicator is designed to identify potential market turning points and continuations by detecting Regular and Hidden divergences between closing price action and the Stochastic momentum oscillator. It utilizes specific default parameters (Stochastic: 40,4,3; Pivot Lookback: 5,5 based on close) and incorporates specialized filtering logic for signal qualification.
Core Functionality & Features:
Divergence Detection: Identifies standard Regular (potential reversal) and Hidden (potential continuation) divergence patterns. Logic has been optimized for accurate detection of both types.
Precision Filter Mechanism (Regular Divergences): Employs a unique dual-level validation process:
Requires the initial pivot's Stochastic value (%D) to meet Overbought (>80) or Oversold (<20) criteria.
Requires the subsequent pivot's Stochastic value (%D) to reside within a precisely defined range (Default parameterization: Bullish 19-30, Bearish 70-81). This aims to filter divergences based on specific momentum conditions following an initial extreme reading.
Standard Filter (Hidden Divergences): Filters Hidden Divergence signals by requiring both associated Stochastic pivot values to remain outside the primary Overbought/Oversold zones (i.e., >20 for Bullish, <80 for Bearish).
Signal Plotting: Displays 'R' (Regular) and 'H' (Hidden) markers on the chart upon confirmation of filtered divergence conditions. Relevant Stochastic threshold levels and filter range boundaries are plotted for visual reference.
Configuration & Usage Notes:
Parameterization: The default settings (Stochastic: 40,4,3; Pivots: 5,5; Levels: 80/20; Ranges: 19-30 / 70-81) have been specifically calibrated. For optimal performance according to the intended methodology, modification of these core parameters is strongly discouraged.
EMA Filter: Note that EMA trend filtering functionality has been intentionally removed from this version of the indicator.
Applicable Timeframes: While adaptable, performance consistency has been observed on the Hourly (1H) timeframe. Lower intervals such as 6m and 10m are considered optimal secondary timeframes, with 5m and 15m also demonstrating viability depending on market conditions.
Instrument Applicability & Validation:
!!!WARNING FOR GOLD TRADERS!!!
Low time frame spot gold (xauusd) mysteriously proves to give more incorrect signals than every other asset I have tested although higher timeframes like hourlies still signal as intended. The reason MAY be because of not enough testing.
The underlying principle of Stochastic divergence is applicable to various instruments, including Cryptocurrencies (Bitcoin, Ethereum) and Major Indices (SP500, NASDAQ, etc.).
However, the efficiency of this indicator's specific parameterization is contingent upon the volatility profile and price dynamics of the selected instrument.
Mandatory Validation: Rigorous backtesting and/or simulated trading on the specific instrument and timeframe is imperative prior to live deployment. This validation is crucial to ascertain performance characteristics and confirm alignment with individual trading plans and risk management protocols.
By Matthew James
Disclaimer:
Trading involves substantial risk. This indicator serves as an analytical tool and does not constitute financial advice or a guarantee of future results. Users assume full responsibility for their trading decisions. Always employ robust risk management practices.
Guppy Multiple Moving Average (GMMA)The GMMA Momentum Indicator plots 12 EMAs on your chart, divided into two groups:
Short-term EMAs (6 lines, default periods: 3, 5, 8, 10, 12, 15): Represent short-term trader sentiment and momentum.
Long-term EMAs (6 lines, default periods: 30, 35, 40, 45, 50, 60): Reflect long-term investor behavior and broader market trends.
By analyzing the interaction between these two groups, the indicator identifies:
Bullish and bearish trends based on the relative positions of the short- and long-term EMAs.
Momentum strength through the spread or convergence of the EMAs.
Potential reversals or breakouts via compression signals.
This PineScript version enhances the traditional GMMA by adding visual cues like background colors, bearish signals, and compression detection, making it ideal for swing traders seeking clear, actionable insights.
The GMMA Momentum Indicator provides several key features:
1. Trend Identification
Bullish Trend: When the short-term EMAs (green lines) are above the long-term EMAs (blue lines) and spreading apart, it signals strong upward momentum. The chart background turns light green to highlight this condition.
Bearish Trend: When the short-term EMAs cross below the long-term EMAs and converge, it indicates downward momentum. The background turns light red, and an orange downward triangle appears above the bar to mark a new bearish signal.
2. Momentum Analysis
The spread between the short-term EMAs reflects the strength of short-term momentum. A wide spread suggests strong momentum, while a tight grouping indicates weakening momentum or consolidation. Similarly, the long-term EMAs act as dynamic support or resistance, guiding traders on the broader trend.
3. Compression Detection
Compression occurs when both the short-term and long-term EMAs converge, signaling low volatility and a potential breakout or reversal. A yellow upward triangle appears below the bar when compression is detected, alerting traders to watch for price action.
4. Visual Cues
Green short-term EMAs: Show short-term trader activity.
Blue long-term EMAs: Represent long-term investor sentiment.
Background colors: Light green for bullish trends, light red for bearish trends, and transparent for neutral conditions.
Orange downward triangles: Mark new bearish trends.
Yellow upward triangles: Indicate compression, hinting at potential breakouts.
How to Use the GMMA Momentum Indicator for Swing Trading
Swing trading involves capturing price moves over days to weeks, and the GMMA Momentum Indicator is an excellent tool for this strategy. Here’s how to use it effectively:
1. Identifying Trade Entries
Buy Opportunities:
Look for a bullish trend (green background) where the short-term EMAs are above the long-term EMAs and spreading apart, indicating strong momentum.
A compression signal (yellow triangle) followed by a breakout above resistance or a bullish candlestick pattern can confirm an entry.
Example: On a daily chart, if the short-term EMAs cross above the long-term EMAs and the background turns green, consider entering a long position, especially if volume supports the move.
Sell Opportunities:
Watch for a bearish signal (orange downward triangle) or a bearish trend (red background) where the short-term EMAs cross below the long-term EMAs.
Example: If the short-term EMAs collapse below the long-term EMAs and an orange triangle appears, it may signal a shorting opportunity or a time to exit longs.
2. Managing Trades
Use the long-term EMAs as dynamic support (in uptrends) or resistance (in downtrends) to set stop-loss levels or trail stops.
Monitor the spread of the short-term EMAs. A widening spread suggests the trend is strong, while convergence may indicate it’s time to take profits or tighten stops.
3. Anticipating Reversals
Compression signals (yellow triangles) highlight periods of low volatility, often preceding significant price moves. Combine these with price action (e.g., breakouts or reversals) or other indicators (e.g., RSI or volume) for confirmation.
Example: If a compression signal appears near a key support level and the price breaks upward, it could signal the start of a new bullish swing.
4. Best Practices
Timeframes: The indicator works well on daily or 4-hour charts for swing trading, but you can adjust the EMA periods for shorter (e.g., 1-hour) or longer (e.g., weekly) timeframes.
Confirmation: Combine the GMMA with other tools like support/resistance levels, candlestick patterns, or oscillators (e.g., MACD) to reduce false signals.
Risk Management: Always use proper position sizing and stop-losses, as EMAs are lagging indicators and may produce delayed signals in choppy markets.
Sector 50MA vs 200MA ComparisonThis TradingView indicator compares the 50-period Moving Average (50MA) and 200-period Moving Average (200MA) of a selected market sector or index, providing a visual and analytical tool to assess relative strength and trend direction. Here's a detailed breakdown of its functionality:
Purpose: The indicator plots the 50MA and 200MA of a chosen sector or index on a separate panel, highlighting their relationship to identify bullish (50MA > 200MA) or bearish (50MA < 200MA) trends. It also includes a histogram and threshold lines to gauge momentum and key levels.
Inputs:
Resolution: Allows users to select the timeframe for calculations (Daily, Weekly, or Monthly; default is Daily).
Sector Selection: Users can choose from a list of sectors or indices, including Tech, Financials, Consumer Discretionary, Utilities, Energy, Communication Services, Materials, Industrials, Health Care, Consumer Staples, Real Estate, S&P 500 Value, S&P 500 Growth, S&P 500, NASDAQ, Russell 2000, and S&P SmallCap 600. Each sector maps to specific ticker pairs for 50MA and 200MA data.
Data Retrieval:
The indicator fetches closing prices for the 50MA and 200MA of the selected sector using the request.security function, based on the chosen timeframe and ticker pairs.
Visual Elements:
Main Chart:
Plots the 50MA (blue line) and 200MA (red line) for the selected sector.
Fills the area between the 50MA and 200MA with green (when 50MA > 200MA, indicating bullishness) or red (when 50MA < 200MA, indicating bearishness).
Threshold Lines:
Horizontal lines at 0 (zero line), 20 (lower threshold), 50 (center), 80 (upper threshold), and 100 (upper limit) provide reference points for the 50MA's position.
Fills between 0-20 (green) and 80-100 (red) highlight key zones for potential overbought or oversold conditions.
Sector Information Table:
A table in the top-right corner displays the selected sector and its corresponding 50MA and 200MA ticker symbols for clarity.
Alerts:
Generates alert conditions for:
Bullish Crossover: When the 50MA crosses above the 200MA (indicating potential upward momentum).
Bearish Crossover: When the 50MA crosses below the 200MA (indicating potential downward momentum).
Use Case:
Traders can use this indicator to monitor the relative strength of a sector's short-term trend (50MA) against its long-term trend (200MA).
The visual fill between the moving averages and the threshold lines helps identify trend direction, momentum, and potential reversal points.
The sector selection feature allows for comparative analysis across different market segments, aiding in sector rotation strategies or market trend analysis.
This indicator is ideal for traders seeking to analyze sector performance, identify trend shifts, and make informed decisions based on moving average crossovers and momentum thresholds.
DDDDD: ATR & ADR Table + Suggested Time-based Exit📈 DDDDD: ATR & ADR Table + Suggested Time-based Exit
This indicator provides a simple yet powerful table displaying key volatility metrics for any timeframe you apply it to. It is designed for traders who want to assess the volatility of an asset, estimate the average time required for a potential move, and define a time-based exit strategy.
🔍 Features:
Displays ATR (Average True Range) for the selected length
Shows Average Range (High-Low) and Maximum Range over a configurable number of bars
Calculates Avg Bars/Move → average number of bars needed to achieve the maximum range
Calculates Recommended Exit Bars → suggested maximum holding period (in bars) before considering an exit if price hasn’t moved as expected
All values dynamically adjust based on the chart’s current timeframe
Outputs values directly in a table overlay on your main chart for quick reference
📝 How to interpret the table:
Field Meaning
ATR (14) Average True Range over the last 14 bars (volatility indicator)
Avg Range (20) Average High-Low range over the last 20 bars
Max Range Maximum High-Low range observed in the last 20 bars
Avg Bars/Move Average number of bars it takes to achieve a Max Range move
Rec. Exit Bars Suggested max holding period (bars) → consider exit if move hasn’t occurred
✅ How to use:
Apply this indicator to any chart (works on minutes, hourly, daily, weekly…)
It will automatically calculate based on the chart’s current timeframe
Use ATR & Avg Range to gauge volatility
Use Avg Bars/Move to estimate how long the market usually takes to achieve a big move
Use Rec. Exit Bars as a soft stop — if price hasn’t moved by this time, consider exiting due to declining probability of a breakout
⚠️ Notes:
All values are relative to your current chart timeframe. For example:
→ On a daily chart, ATR represents daily volatility
→ On a 1H chart, ATR represents hourly volatility
“Bars” refers to the bars of the current timeframe. Always interpret time accordingly.
Perfect for traders who want to:
Time their trades based on average volatility
Avoid overholding losing positions
Set time-based exit rules to complement price-based stoplosses
Spent Output Profit Ratio Z-Score | Vistula LabsOverview
The Spent Output Profit Ratio (SOPR) Z-Score indicator is a sophisticated tool designed by Vistula Labs to help cryptocurrency traders analyze market sentiment and identify potential trend reversals. It leverages on-chain data from Glassnode to calculate the Spent Output Profit Ratio (SOPR) for Bitcoin and Ethereum, transforming this metric into a Z-Score for easy interpretation.
What is SOPR?
Spent Output Profit Ratio (SOPR) measures the profit ratio of spent outputs (transactions) on the blockchain:
SOPR > 1: Indicates that, on average, coins are being sold at a profit.
SOPR < 1: Suggests that coins are being sold at a loss.
SOPR = 1: Break-even point, often seen as a key psychological level.
SOPR provides insights into holder behavior—whether they are locking in profits or cutting losses—making it a valuable gauge of market sentiment.
How It Works
The indicator applies a Z-Score to the SOPR data to normalize it relative to its historical behavior:
Z-Score = (Smoothed SOPR - Moving Average of Smoothed SOPR) / Standard Deviation of Smoothed SOPR
Smoothed SOPR: A moving average (e.g., WMA) of SOPR over a short period (default: 30 bars) to reduce noise.
Moving Average of Smoothed SOPR: A longer moving average (default: 180 bars) of the smoothed SOPR.
Standard Deviation: Calculated over a lookback period (default: 200 bars).
This Z-Score highlights how extreme the current SOPR is compared to its historical norm, helping traders spot significant deviations.
Key Features
Data Source:
Selectable between BTC and ETH, using daily SOPR data from Glassnode.
Customization:
Moving Average Types: Choose from SMA, EMA, DEMA, RMA, WMA, or VWMA for both smoothing and main averages.
Lengths: Adjust the smoothing period (default: 30) and main moving average length (default: 180).
Z-Score Lookback: Default is 200 bars.
Thresholds: Set levels for long/short signals and overbought/oversold conditions.
Signals:
Long Signal: Triggered when Z-Score crosses above 1.02, suggesting potential upward momentum.
Short Signal: Triggered when Z-Score crosses below -0.66, indicating potential downward momentum.
Overbought/Oversold Conditions:
Overbought: Z-Score > 2.5, signaling potential overvaluation.
Oversold: Z-Score < -2.0, indicating potential undervaluation.
Visualizations:
Z-Score Plot: Teal for long signals, magenta for short signals.
Threshold Lines: Dashed for long/short, solid for overbought/oversold.
Candlestick Coloring: Matches signal colors.
Arrows: Green up-triangles for long entries, red down-triangles for short entries.
Background Colors: Magenta for overbought, teal for oversold.
Alerts:
Conditions for Long Opportunity, Short Opportunity, Overbought, and Oversold.
Usage Guide
Select Cryptocurrency: Choose BTC or ETH.
Adjust Moving Averages: Customize types and lengths for smoothing and main averages.
Set Thresholds: Define Z-Score levels for signals and extreme conditions.
Monitor Signals: Use color changes, arrows, and background highlights to identify opportunities.
Enable Alerts: Stay informed without constant chart watching.
Interpretation
High Z-Score (>1.02): SOPR is significantly above its historical mean, potentially indicating overvaluation or strong bullish momentum.
Low Z-Score (<-0.66): SOPR is below its mean, suggesting undervaluation or bearish momentum.
Extreme Conditions: Z-Scores above 2.5 or below -2.0 highlight overbought or oversold markets, often preceding reversals.
Conclusion
The SOPR Z-Score indicator combines on-chain data with statistical analysis to provide traders with a clear, actionable view of market sentiment. Its customizable settings, visual clarity, and alert system make it an essential tool for both novice and experienced traders seeking an edge in the cryptocurrency markets.
EMA Cross w/ RSI & Volume Spike (Full Setup)📈 EMA Cross w/ RSI & Volume Spike (Full Setup)
This custom indicator is designed for traders seeking precise buy/sell signals based on a powerful combination of Exponential Moving Averages (EMAs), RSI, and Volume Spikes. It is optimized for both spot and futures trading, especially effective on lower timeframes (like 5m–15m) and swing trading charts.
🔧 Key Features
✅ EMA Stack – Includes 6 EMAs:
Short-Term: EMA 9, 21
Mid-Term: EMA 26, 50
Long-Term: EMA 100, 200
✅ Cross Alerts –
BUY signals: When faster EMAs cross above slower EMAs
SELL signals: When faster EMAs cross below slower EMAs
Covers short-, mid-, and long-term crossovers
✅ Confluence Signals –
BUY+ / SELL+ signals trigger only when an EMA cross is confirmed by:
• RSI (Relative Strength Index) confirmation
• Volume spike above 1.5× 20-period volume average
✅ Visual Markers on Chart –
📗 BUY – Basic EMA cross up
📘 BUY+ – EMA cross + RSI > 50 + volume spike
📕 SELL – Basic EMA cross down
🟧 SELL+ – EMA cross + RSI < 50 + volume spike
✅ Built-in Alerts –
All signal types (BUY, SELL, BUY+, SELL+) can be used with TradingView alerts.
🧠 Best Use Case
This indicator is perfect for:
Scalping (5m / 15m charts)
Spot trading pullbacks
Futures momentum breakouts
Identifying early trend shifts or confirmations
Market Warning Dashboard Enhanced📊 Market Warning Dashboard Enhanced
A powerful macro risk dashboard that tracks and visualizes early signs of market instability across multiple key indicators—presented in a clean, professional layout with a real-time thermometer-style danger gauge.
🔍 Included Macro Signals:
Yield Curve Inversion: 10Y-2Y and 10Y-3M spreads
Credit Spreads: High-yield (HYG) vs Investment Grade (LQD)
Volatility Structure: VIX/VXV ratio
Breadth Estimate: SPY vs 50-day MA (as a proxy)
🔥 Features:
Real-time Danger Score: 0 (Safe) to 100 (Extreme Risk)
Descriptive warnings for each signal
Color-coded thermometer gauge
Alert conditions for each macro risk
Background shifts on rising systemic risk
⚠️ This dashboard can save your portfolio by alerting you to macro trouble before it hits the headlines—ideal for swing traders, long-term investors, and anyone who doesn’t want to get blindsided by systemic risk.
Volumatic S/R Levels [VIO]Volumatic S/R Levels Indicator: A Trader's Guide
This indicator is designed to help you identify potentially significant support and resistance levels based on areas of high trading volume. It focuses on bars where there was a notable price movement accompanied by strong volume, suggesting conviction behind that move.
What the Indicator Shows:
Volume Levels: The core of the indicator is the horizontal lines and boxes drawn on the chart. These represent price levels where a significant volume node was detected on a historical bar. The height of the box is proportional to the normalized volume at that level.
Level States (Naked, Dirty, Faded): The indicator visually differentiates the levels based on how many times price has interacted with them since their creation:
Naked Levels (0 Touches): These are levels that price has not returned to since they were formed. They are often considered "fresh" and potentially more significant support/resistance. They are typically displayed with a prominent line style and color.
Dirty Levels (1 Touch): These levels have been tested once by price. They are still considered potentially relevant but have lost some of their "naked" quality. They have a different visual style (e.g., dotted line).
Faded Levels (2+ Touches): These levels have been interacted with multiple times. While they represent areas of past significance, their repeated testing suggests they may be less reliable as strong support or resistance in the future. They are visually faded out to reduce chart clutter while still providing historical context.
Volatility Proximity Bubbles: When price is near a naked or dirty level, small colored bubbles may appear. These bubbles provide information about the current volatility state (Increasing, Decreasing, or Average Volatility) based on the ATR Delta compared to its signal line. This helps you see how market activity is behaving as price approaches a key level.
Volume/Percentage Labels: Labels next to the levels show the absolute volume of the node and its percentage relative to the total volume of all currently displayed levels. The color of the label text matches the original color of the volume node (green for upward volume, orange for downward volume).
Alerts: The indicator can trigger alerts when price crosses a naked or dirty Volumatic level, notifying you of potential trading opportunities or significant price action at these key areas.
How to Use It as a Trader:
Identify Potential Support and Resistance: Look for the Naked (solid line) and Dirty (dotted line) levels as potential areas where price might find support or resistance.
Observe Price Action at Levels: Pay close attention to how price behaves when it reaches a Volumatic level. Is it bouncing off the level, consolidating around it, or breaking through with conviction?
Gauge Volatility: Use the Proximity Volatility Bubbles to understand the market's energy as it approaches a level. Increasing volatility might suggest a potential breakout or strong reaction, while decreasing volatility could indicate consolidation or a weaker response.
Combine with Other Confluences: Use these levels in conjunction with other technical analysis tools (e.g., candlestick patterns, chart patterns, other indicators) to build stronger trading hypotheses.
Manage Risk: Plan your entries and exits around these levels, considering them as potential areas for stop losses or take profits.
Utilize Alerts: Set up alerts for Naked and Dirty level crossings to be notified when price reaches these important zones, allowing you to react quickly.
Understand Faded Levels: While not primary trading levels, faded levels provide historical context and show areas where price has previously reacted. They can still be useful for understanding the overall market structure.
By understanding the different components and states of the Volumatic S/R Levels indicator, you can gain valuable insights into market structure and potential price reactions at significant volume-based levels. Remember to always use this indicator as part of a comprehensive trading plan and risk management strategy.