ATR TargetsMark daily ATR levels above and below the current price. Pick the multiples you prefer. Useful for setting profit targets and stop losses based on ATR
Indicators and strategies
RVOL - Relative Volume IntradayIn the context of intraday trading, RVOL stands for Relative Volume. It is a technical indicator that compares the current volume of a stock to its average volume over a specified period. A RVOL above 1 suggests higher than average trading volume, potentially indicating increased interest and volatility.
The precise definition of real time relative volume is current cumulative volume up to the time of day divided by average cumulative volume up to this time of day. It means for example taking the volume from 09:45 to 10:00 and comparing it to what it does from 09:45 to 10:00 every day.
This indicator supports all timeframes from1 minute to 4 hours.
ATR Rays with Daily and WeeklyDraws rays at 1 daily ATR and 1 weekly ATR above and below the current price
Tribal Trades StrategyTribal Trades Stoch RSI: Beginner's Guide 🚀
This tool helps spot potential ⬆️ (buy) & ⬇️ (sell) moments using the Stoch RSI! Think of it like seeing if something's getting too cheap (oversold) or too expensive (overbought).
Key Signals:
* Aqua Circle (↑): Approaching Oversold: This light blue circle with an upward arrow suggests the price might be heading down but could bounce upwards soon. It's an early warning.
* Fuchsia Circle (↓): Approaching Overbought: This bright pink circle with a downward arrow suggests the price might be heading up but could drop downwards soon. It's an early warning.
* 🟢 Triangle Up (🟢⬆️ Bullish Reversal): A green triangle pointing upwards with a green circle indicates a strong potential upward turn after the indicator was in oversold territory. Consider this a stronger buy signal.
* 🔴 Triangle Down (🔴⬇️ Bearish Reversal): A red triangle pointing downwards with a red circle indicates a strong potential downward turn after the indicator was in overbought territory. Consider this a stronger sell signal.
* Green Triangle Up (⬆️ Buy Signal): A green triangle pointing upwards signals a potential buying opportunity as momentum shifts upwards within a normal range.
* Red Triangle Down (⬇️ Sell Signal): A red triangle pointing downwards signals a potential selling opportunity as momentum shifts downwards within a normal range.
* Blue Triangle Up (↑ Strong Buy): A blue triangle pointing upwards suggests a high-confidence buying opportunity based on stronger momentum.
* Orange Triangle Down (↓ Strong Sell): An orange triangle pointing downwards suggests a high-confidence selling opportunity based on stronger momentum.
Quick Tips for Beginners:
* Focus on the 🟢⬆️ Buy & 🔴⬇️ Sell triangles. 👍
* Use the Aqua & Fuchsia circles as early warnings. 🔔
* Reversal signals (with emojis!) can be key turning points. 🔄
* "Strong" signals are worth noting but confirm with other things! 💪
* Combine with other tools! 🤝 This isn't a magic ball. ✨
* Start with default settings.⚙️ Explore later!
* Practice on paper first! ✍️ No real $ yet! 💰
* It gives hints, not guarantees. Manage your risk! ⚠️
Basically: Green and blue upward triangles ⬆️ suggest potential buys, red and orange downward triangles ⬇️ suggest potential sells. The circles give you earlier hints. Good luck!
PhenLabs - Market Fluid Dynamics📊 Market Fluid Dynamics -
Version: PineScript™ v6
📌 Description
The Market Fluid Dynamics - Phen indicator is a new thinking regarding market analysis by modeling price action, volume, and volatility using a fluid system. It attempts to offer traders control over more profound market forces, such as momentum (speed), resistance (thickness), and buying/selling pressure. By visualizing such dynamics, the script allows the traders to decide on the prevailing market flow, its power, likely continuations, and zones of calmness and chaos, and thereby allows improved decision-making.
This measure avoids the usual difficulty of reconciling multiple, often contradictory, market indications by including them within a single overarching model. It moves beyond traditional binary indicators by providing a multi-dimensional view of market behavior, employing fluid dynamic analogs to describe complex interactions in an accessible manner.
🚀 Points of Innovation
Integrated Fluid Dynamics Model: Combines velocity, viscosity, pressure, and turbulence into a single indicator.
Normalized Metrics: Uses ATR and other normalization techniques for consistent readings across different assets and timeframes.
Dynamic Flow Visualization: Main flow line changes color and intensity based on direction and strength.
Turbulence Background: Visually represents market stability with a gradient background, from calm to turbulent.
Comprehensive Dashboard: Provides an at-a-glance summary of key fluid dynamic metrics.
Multi-Layer Smoothing: Employs several layers of EMA smoothing for a clearer, more responsive main flow line.
🔧 Core Components
Velocity Component: Measures price momentum (first derivative of price), normalized by ATR. It indicates the speed and direction of price changes.
Viscosity Component: Represents market resistance to price changes, derived from ATR relative to its historical average. Higher viscosity suggests it’s harder for prices to move.
Pressure Component: Quantifies the force created by volume and price range (close - open), normalized by ATR. It reflects buying or selling pressure.
Turbulence Detection: Calculates a Reynolds number equivalent to identify market stability, ranging from laminar (stable) to turbulent (chaotic).
Main Flow Indicator: Combines the above components, applying sensitivity and smoothing, to generate a primary signal of market direction and strength.
🔥 Key Features
Advanced Smoothing Algorithm: Utilizes multiple EMA layers on the raw flow calculation for a fluid and responsive main flow line, reducing noise while maintaining sensitivity.
Gradient Flow Coloring: The main flow line dynamically changes color from light to deep blue for bullish flow and light to deep red for bearish flow, with intensity reflecting flow strength. This provides an immediate visual cue of market sentiment and momentum.
Turbulence Level Background: The chart background changes color based on calculated turbulence (from calm gray to vibrant orange), offering an intuitive understanding of market stability and potential for erratic price action.
Informative Dashboard: A customizable on-screen table displays critical metrics like Flow State, Flow Strength, Market Viscosity, Turbulence, Pressure Force, Flow Acceleration, and Flow Continuity, allowing traders to quickly assess current market conditions.
Configurable Lookback and Sensitivity: Users can adjust the base lookback period for calculations and the sensitivity of the flow to viscosity, tailoring the indicator to different trading styles and market conditions.
Alert Conditions: Pre-defined alerts for flow direction changes (positive/negative crossover of zero line) and detection of high turbulence states.
🎨 Visualization
Main Flow Line: A smoothed line plotted below the main chart, colored blue for bullish flow and red for bearish flow. The intensity of the color (light to dark) indicates the strength of the flow. This line crossing the zero line can signal a change in market direction.
Zero Line: A dotted horizontal line at the zero level, serving as a baseline to gauge whether the market flow is positive (bullish) or negative (bearish).
Turbulence Background: The indicator pane’s background color changes based on the calculated turbulence level. A calm, almost transparent gray indicates low turbulence (laminar flow), while a more vibrant, semi-transparent orange signifies high turbulence. This helps traders visually assess market stability.
Dashboard Table: An optional table displayed on the chart, showing key metrics like ‘Flow State’, ‘Flow Strength’, ‘Market Viscosity’, ‘Turbulence’, ‘Pressure Force’, ‘Flow Acceleration’, and ‘Flow Continuity’ with their current values and qualitative descriptions (e.g., ‘Bullish Flow’, ‘Laminar (Stable)’).
📖 Usage Guidelines
Setting Categories
Show Dashboard - Default: true; Range: true/false; Description: Toggles the visibility of the Market Fluid Dynamics dashboard on the chart. Enable to see key metrics at a glance.
Base Lookback Period - Default: 14; Range: 5 - (no upper limit, practical limits apply); Description: Sets the primary lookback period for core calculations like velocity, ATR, and volume SMA. Shorter periods make the indicator more sensitive to recent price action, while longer periods provide a smoother, slower signal.
Flow Sensitivity - Default: 0.5; Range: 0.1 - 1.0 (step 0.1); Description: Adjusts how much the market viscosity dampens the raw flow. A lower value means viscosity has less impact (flow is more sensitive to raw velocity/pressure), while a higher value means viscosity has a greater dampening effect.
Flow Smoothing - Default: 5; Range: 1 - 20; Description: Controls the length of the EMA smoothing applied to the main flow line. Higher values result in a smoother flow line but with more lag; lower values make it more responsive but potentially noisier.
Dashboard Position - Default: ‘Top Right’; Range: ‘Top Right’, ‘Top Left’, ‘Bottom Right’, ‘Bottom Left’, ‘Middle Right’, ‘Middle Left’; Description: Determines the placement of the dashboard on the chart.
Header Size - Default: ‘Normal’; Range: ‘Tiny’, ‘Small’, ‘Normal’, ‘Large’, ‘Huge’; Description: Sets the text size for the dashboard header.
Values Size - Default: ‘Small’; Range: ‘Tiny’, ‘Small’, ‘Normal’, ‘Large’; Description: Sets the text size for the metric values in the dashboard.
✅ Best Use Cases
Trend Identification: Identifying the dominant market flow (bullish or bearish) and its strength to trade in the direction of the prevailing trend.
Momentum Confirmation: Using the flow strength and acceleration to confirm the conviction behind price movements.
Volatility Assessment: Utilizing the turbulence metric to gauge market stability, helping to adjust position sizing or avoid choppy conditions.
Reversal Spotting: Watching for divergences between price and flow, or crossovers of the main flow line above/below the zero line, as potential reversal signals, especially when combined with changes in pressure or viscosity.
Swing Trading: Leveraging the smoothed flow line to capture medium-term market swings, entering when flow aligns with the desired trade direction and exiting when flow weakens or reverses.
Intraday Scalping: Using shorter lookback periods and higher sensitivity to identify quick shifts in flow and turbulence for short-term trading opportunities, particularly in liquid markets.
⚠️ Limitations
Lagging Nature: Like many indicators based on moving averages and lookback periods, the main flow line can lag behind rapid price changes, potentially leading to delayed signals.
Whipsaws in Ranging Markets: During periods of low volatility or sideways price action (high viscosity, low flow strength), the indicator might produce frequent buy/sell signals (whipsaws) as the flow oscillates around the zero line.
Not a Standalone System: While comprehensive, it should be used in conjunction with other forms of analysis (e.g., price action, support/resistance levels, other indicators) and not as a sole basis for trading decisions.
Subjectivity in Interpretation: While the dashboard provides quantitative values, the interpretation of “strong” flow, “high” turbulence, or “significant” acceleration can still have a subjective element depending on the trader’s strategy and risk tolerance.
💡 What Makes This Unique
Fluid Dynamics Analogy: Its core strength lies in translating complex market interactions into an intuitive fluid dynamics framework, making concepts like momentum, resistance, and pressure easier to visualize and understand.
Market View: Instead of focusing on a single aspect (like just momentum or just volatility), it integrates multiple factors (velocity, viscosity, pressure, turbulence) to provide a more comprehensive picture of market conditions.
Adaptive Visualization: The dynamic coloring of the flow line and the turbulence background provide immediate, adaptive visual feedback that changes with market conditions.
🔬 How It Works
Price Velocity Calculation: The indicator first calculates price velocity by measuring the rate of change of the closing price over a given ‘lookback’ period. The raw velocity is then normalized by the Average True Range (ATR) of the same lookback period. Normalization enables comparison of momentum between assets or timeframes by scaling for volatility. This is the direction and speed of initial price movement.
Viscosity Calculation: Market ‘viscosity’ or resistance to price movement is determined by looking at the current ATR relative to its longer-term average (SMA of ATR over lookback * 2). The further the current ATR is above its average, the lower the viscosity (less resistance to price movement), and vice-versa. The script inverts this relationship and bounds it so that rising viscosity means more resistance.
Pressure Force Measurement: A ‘pressure’ variable is calculated as a function of the ratio of current volume to its simple moving average, multiplied by the price range (close - open) and normalized by ATR. This is designed to measure the force behind price movement created by volume and intraday price thrusts. This pressure is smoothed by an EMA.
Turbulence State Evaluation: A equivalent ‘Reynolds number’ is calculated by dividing the absolute normalized velocity by the viscosity. This is the proclivity of the market to move in a chaotic or orderly fashion. This ‘reynoldsValue’ is smoothed with an EMA to get the ‘turbulenceState’, which indicates if the market is laminar (stable), transitional, or turbulent.
Main Flow Derivation: The ‘rawFlow’ is calculated by taking the normalized velocity, dampening its impact based on the ‘viscosity’ and user-input ‘sensitivity’, and orienting it by the sign of the smoothed ‘pressureSmooth’. The ‘rawFlow’ is then put through multiple layers of exponential moving average (EMA) smoothing (with ‘smoothingLength’ and derived values) to reach the final ‘mainFlow’ line. The extensive smoothing is designed to give a smooth and clear visualization of the overall market direction and magnitude.
Dashboard Metrics Compilation: Additional metrics like flow acceleration (derivative of mainFlow), and flow continuity (correlation between close and volume) are calculated. All primary components (Flow State, Strength, Viscosity, Turbulence, Pressure, Acceleration, Continuity) are then presented in a user-configurable dashboard for ease of monitoring.
💡 Note:
The “Market Fluid Dynamics - Phen” indicator is designed to offer a unique perspective on market behavior by applying principles from fluid dynamics. It’s most effective when used to understand the underlying forces driving price rather than as a direct buy/sell signal generator in isolation. Experiment with the settings, particularly the ‘Base Lookback Period’, ‘Flow Sensitivity’, and ‘Flow Smoothing’, to find what best suits your trading style and the specific asset you are analyzing. Always combine its insights with robust risk management practices.
Volume-Weighted Price MovementThe Volume-Weighted Price Movement (VWPM) indicator is an easy to read technical analysis tool that analyses how volume and price movement work together to drive market momentum.
How It Works
The VWPM indicator tracks two primary components:
Bullish Movement (green line): Measures the upward price movement weighted by volume. When price closes above the open, this component calculates how much buying pressure exists by multiplying the price change (close - open) by the volume of that period.
Bearish Movement (red line): Measures the downward price movement weighted by volume. When price closes below the open, this component calculates how much selling pressure exists by multiplying the price change (open - close) by the volume of that period.
Bull-Bear Difference (lime/orange line): Shows the net momentum by subtracting bearish movement from bullish movement, providing an at-a-glance view of which force is dominant.
The VWPM integrates volume data to identify whether price movements are backed by significant participation. A large price move with low volume carries less weight than the same move with high volume, providing a more accurate reflection of market strength.
A shorter lookback period makes the indicator more responsive to recent price action, while a longer period smooths out market noise for trend identification.
Interpretation
Bullish Signals
When the green line (bull movement) rises and stays above the red line
When the Bull-Bear Difference line crosses above zero and maintains positive momentum
Divergence between price making lower lows but the bull line making higher lows (hidden strength)
Bearish Signals
When the red line (bear movement) rises and stays above the green line
When the Bull-Bear Difference line crosses below zero and maintains negative momentum
Divergence between price making higher highs but the bull line making lower highs (hidden weakness)
open source, if anyone makes the script better please let me know :)
TSLA2DTSLA2D
Category: All-in-One, Trend, Momentum, Volume, Divergence
Summary:
The TSLA2D indicator is a powerful "all-in-one" technical analysis tool designed to provide traders with a comprehensive view of market dynamics directly on their chart. Combining multiple popular indicators and custom volume-price analysis, TSLA2D aims to help identify trend strength, momentum shifts, significant volume activity, and potential reversal points. Originally designed for Tesla on 2D timeframe but works great on higher timeframes too. NOTE: Stochastic bugs on some charts that dont have much price history. In the settings you can toggle things off you dont need.
Key Features:
Customizable Moving Averages: Plot up to four Exponential (EMA) or Simple (SMA) Moving Averages of varying lengths, offering adaptable trend identification. Each MA can be individually toggled, and its type and linewidth adjusted.
RSI Strength Background: Visually highlight periods where the Relative Strength Index (RSI15) is above 50, indicating bullish momentum, directly on the main chart background.
High Volume Bar Detection: Automatically identify and color bars with significantly higher-than-average volume, signaling potential areas of increased institutional activity or decisive moves.
Dynamic "Bottom Line" Sentiment: A unique visual line at the bottom of your chart that changes color (Green/Red/Gray) based on the price's relationship to key moving averages, providing a quick sentiment overview. Green means trend is up, gray means put your stop losses in place and red signals a downtrend. In the bottom line you also see white/black circles. Those are MACD bullish/bearish divergence. All adjustable.
Stochastic Oscillator with Signals: Integrate the Stochastic Oscillator in a separate pane with adjustable K/D lengths and overbought/oversold levels. The indicator plots key crossover/crossunder signals in overbought/oversold regions directly below price action for clear visualization of momentum shifts. NOTE: always double check for confirmed breakdown or breakup on the indicator itself. Sometimes the parametres dont show golden triangle below price.
MACD Divergence Detection: Identify potential bullish and bearish divergences using the Moving Average Convergence Divergence (MACD) histogram. This feature helps spot situations where price action and momentum are moving in opposite directions, suggesting reversals.
PVSRA (Price Volume Supply/Demand Analysis) Candle Coloring: A sophisticated custom module that re-colors candles based on volume strength and bullish/bearish intent (200% Peak Volume, 150% Rising Volume, Normal Volume). This provides deep insight into institutional participation and supply/demand dynamics.
How to Use:
TSLA2D is designed to be a confluence tool in trending market giving you also reversal signals. Combine the visual cues from background highlights and the "Bottom Line" with the momentum signals from Stochastic and MACD divergence, and the nuanced volume insights from PVSRA candle coloring. Use the configurable moving averages for dynamic support/resistance and trend direction.
D/W Open [flasi]Vertical Session Lines:
Draws vertical lines at the start of each new trading session (default: 5 PM)
Sunday sessions appear with black/dark lines
Weekday sessions appear with white/light lines
Horizontal Price Lines (optional):
Can show horizontal lines at the opening prices
Sunday opens marked with dark lines
Weekday opens marked with light lines
Toggle on/off with "Show Horizontal Lines" input
Smart Signals AI+Smart Signals AI+ Indicator Description
Table Interpretation
The Smart Signals AI+ indicator includes a multi-timeframe table that helps traders evaluate market momentum and trend direction across five timeframes: 30 minutes (30m), 1 hour (1h), 4 hours (4h), 1 day (1D), and 1 week (1W). The table is a quick reference to identify potential bullish opportunities by showing the strength and trend of the indicator’s momentum metric.
TF Column :
Purpose : Displays the timeframe and highlights potential oversold conditions.
Interpretation : A blue background indicates the Smart Signals AI+ momentum metric is in an oversold zone (below a key threshold), suggesting the asset may be primed for a bullish reversal. A gray background shows neutral or overbought conditions.
BIAS Column :
Purpose : Shows whether momentum is rising or falling.
Interpretation :
↗ (Bullish) : Momentum is increasing (blue arrow), indicating potential bullish strength.
↘ (Bearish) : Momentum is decreasing (red arrow), suggesting weaker price action.
Multiple timeframes with ↗ arrows signal stronger bullish momentum, especially when paired with blue TF cells.
VALUE Column :
Purpose : Shows the numerical value of the Smart Signals AI+ momentum metric, rounded to two decimals.
Interpretation :
A low value (below 15) indicates oversold conditions, increasing the chance of a bullish reversal.
A high value (above 80) suggests potential overbought conditions, though the indicator focuses on bullish signals.
Values between 15 and 80 show neutral momentum, with lower values closer to buy opportunities.
Practical Use :
Look for alignment across timeframes. For example, if 1h, 4h, and 1D show blue TF cells and ↗ arrows, it suggests a strong bullish setup.
Use the table to confirm trades on lower timeframes (e.g., 1h) when higher timeframes (e.g., 4h, 1D) show oversold conditions and bullish momentum.
Check the VALUE column to gauge how close the momentum metric is to the oversold threshold or to spot extreme levels.
Signal Interpretation
The Smart Signals AI+ indicator generates buy signals to highlight potential bullish entry points based on its momentum metric.
Condition :
Buy signals appear when the momentum metric moves above a key threshold (15), indicating the asset is exiting an oversold zone.
Signals are restricted to timeframes of 30 minutes or higher (e.g., 30m, 1h, 4h), avoiding noisy lower timeframes like 5m or 15m.
Appearance :
Shown as "Buy" labels below the price bars, with a blue background and white text for clear visibility.
Meaning :
A buy signal suggests the asset may be starting a bullish move, making it a potential entry point for long trades.
Signals on higher timeframes (e.g., 4h, 1D) are generally more reliable due to reduced market noise.
Usage :
Use buy signals as entry points for long positions, but confirm with the table or other factors like support levels, trendlines, or volume.
Example: A buy signal on the 1h chart is stronger if the table shows oversold conditions (blue TF cells) and ↗ arrows on 4h and 1D, indicating multi-timeframe bullish alignment.
Caution :
Signals may shift until the price bar closes, so wait for confirmation to avoid false entries.
The indicator focuses on buy signals only, so use other tools (e.g., resistance levels or moving averages) to plan exits.
Configuration and Functionality
The Smart Signals AI+ indicator is user-friendly, with customizable settings to suit different trading styles, and uses a momentum-based approach to identify bullish opportunities.
Configuration :
Access Settings :
In TradingView, click the gear icon next to the indicator’s name to open the settings menu.
Go to the Inputs tab to adjust options.
Click OK to save changes.
Table Settings :
Show Table : A checkbox (default: enabled) to show or hide the table. Disable it to reduce chart clutter if you only want buy signals.
Table Position : A dropdown menu (default: top-right) to place the table in the top-right, top-left, bottom-right, or bottom-left of the chart.
Indicator Settings :
Smoothing : Adjusts how smooth the momentum metric is (default: 3). Higher values reduce noise but make signals slower.
Momentum Length : Sets the period for the momentum calculation (default: 14). Lower values increase sensitivity for volatile markets like cryptocurrencies.
Secondary Length : Adjusts a secondary period for the momentum metric (default: 14). Fine-tune for faster or slower signals.
Tips :
Move the table to the bottom-right or bottom-left if it blocks price action or other indicators.
Adjust Momentum Length and Smoothing for specific assets (e.g., lower values for fast-moving markets).
Test settings on a demo chart to find the best setup for your trading strategy.
Functionality :
Momentum Calculation : Uses a combination of price momentum metrics to generate a value that measures the asset’s strength relative to recent price ranges.
Buy Signals : Triggered when the momentum metric moves above 15 on timeframes ≥ 30 minutes, highlighting potential bullish reversals from oversold conditions.
Multi-Timeframe Table : Displays momentum values and trend direction (bullish or bearish) for 30m, 1h, 4h, 1D, and 1W, helping traders assess market conditions across multiple horizons.
Visuals : The momentum metric is plotted with a gradient fill (blue for positive momentum, magenta for negative) and a reference line at 15 to mark the buy signal threshold.
Table Development
The Smart Signals AI+ indicator includes a multi-timeframe table to help traders quickly assess market conditions across 30m, 1h, 4h, 1D, and 1W timeframes.
Design :
Compact layout with a semi-transparent dark background to minimize chart obstruction.
Uses clear text and a thin border for readability, placed by default in the top-right corner.
Purpose :
Summarizes momentum and trend direction to help traders spot aligned bullish conditions.
Highlights oversold zones (below 15) where bullish reversals may occur, aiding trade prioritization.
Data :
Shows the momentum metric value and trend direction for each timeframe.
Compares current and previous momentum values to determine bullish (↗) or bearish (↘) trends.
Customization :
Toggle the table on/off using the Show Table setting.
Adjust the table’s position (top-right, top-left, bottom-right, bottom-left) to suit your chart layout.
Limitations
Signal Changes: Buy signals and table values may shift until the price bar closes, so confirm signals with bar closure to avoid false entries.
Bullish Focus: The indicator only provides buy signals, requiring external tools for exit or short strategies.
Timeframe Restriction: Signals are limited to timeframes ≥ 30 minutes, which may not suit scalpers trading on 5m or 15m charts.
No Overbought Alerts: High momentum values (above 80) are visible in the table but not flagged as sell signals.
Recommendations
Test the indicator on your chosen asset and timeframe to ensure it fits your strategy.
Combine buy signals with table data (e.g., oversold conditions and ↗ arrows on multiple timeframes) for higher-confidence trades.
Use additional indicators like support/resistance or volume to confirm signals and plan exits.
Wait for price bar closure in live trading to reduce the risk of acting on changing signals.
Filt ADR🟠 Script Name: Filtered Average Daily Range (Filt ADR)
This script calculates a filtered version of the Average Daily Range (ADR) based on the last 14 daily candles. It's designed to reduce the influence of unusually high or low daily ranges (outliers) by applying a filter before calculating the average.
🔧 How It Works — Step by Step
1. Calculate Daily Ranges (High - Low)
It retrieves the daily price ranges (difference between daily high and low) for the last 14 days using request.security() with the "D" (daily) timeframe.
pinescript
Копировать
Редактировать
high - low // today's daily range
high - low // yesterday's daily range
...
These values are stored into individual variables dr0 to dr13.
2. Build an Array of Daily Ranges
An array named ranges is used to store the 14 daily ranges, but only if they are not na (missing data). This avoids errors during processing.
3. Calculate the Initial (Unfiltered) Average Range
The script sums all values in the ranges array and calculates their average:
pinescript
Копировать
Редактировать
avg_all = total sum of ranges / number of valid entries
4. Filter Out Outliers
Now it filters the values in ranges:
Only keeps the ranges that are between 0.5×avg_all and 2×avg_all.
This is to remove abnormally small or large daily ranges that could distort the average.
The filtered values are added to a second array called filtered.
5. Calculate the Filtered ADR
Finally, it calculates the average of the filtered daily ranges:
pinescript
Копировать
Редактировать
avg_filt = sum of filtered ranges / number of filtered values
This is the Filtered ADR.
6. Plot the Result
The result (avg_filt) is plotted as an orange line on the chart. It updates on each bar (depending on the current timeframe you're viewing) but the underlying data is based on the last 14 daily candles.
pinescript
Копировать
Редактировать
plot(avg_filt, title="Filtered ADR", color=color.orange, linewidth=2)
✅ Use Case
This script is useful for traders who use the Average Daily Range (ADR) to:
Estimate expected price movement during a day
Set volatility-based stop-loss or take-profit levels
Identify days with unusually high or low volatility
By filtering out extreme values, it provides a more stable and reliable estimate of daily volatility.
AltCoin Index Correlation🧠 AltCoin Index Correlation — Strategy Overview
AltCoin Index Correlation is a dynamic EMA-based trading strategy designed primarily for altcoins, but also adaptable to stocks and indices, thanks to its flexible reference index system.
🧭 Strategy Philosophy
The core idea behind this strategy is simple yet powerful:
Price action becomes more meaningful when it aligns with broader market context.
This script analyzes the correlation between the asset’s trend and a reference index trend, using dual EMA (Exponential Moving Average) crossovers for both.
When both the altcoin and the reference index (e.g. Altcoin Dominance, BTC Dominance, Total Market Cap, or even indices like the NASDAQ 100 or S&P 500) are aligned in trend direction, the script considers it a high-confidence setup.
It also includes:
Optional inverse correlation logic (for contrarian setups)
Custom leverage settings (e.g., 1x, 1.8x, etc.)
A dynamic scale-out mechanism during weakening trends
Date filtering for controlled backtests
A live performance dashboard with equity, PnL, win rate, drawdown, APR, and more
⚙️ Default Settings & Backtest Results
Timeframe tested: 1H
Test date: May 20, 2025
Sample: 100 high-cap altcoins
Reference index: CRYPTOCAP:OTHERS.D (Altcoin Dominance)
Leverage: 1.8x (180% of capital used)
📊 With default settings:
Win rate: ~80%
Higher profits, due to increased exposure
Best suited for confident trend followers with higher risk tolerance
📉 With fixed capital or 1x leverage:
Win rate improves to ~90%
Lower returns, but greater capital preservation
Ideal for conservative or risk-managed trading styles
🔄 Versatility
While tailored for altcoins, this strategy supports traditional markets as well:
Easily switch the reference index to OANDA:NAS100USD or S&P 500 for stock correlation trading
Adjust EMA lengths and leverage to match the asset class and volatility profile
🧩 Suggested Use
Best used on trending markets (not sideways)
Ideal for 1H timeframes, but adjustable
Suitable for traders who want a rules-based, macro-aware entry/exit system
Try it out, customize it to your style, try different settings and share your results with the community!
Feedback is welcome — and improvements are always in progress.
🚀 ### Check my profile for other juicy hints and original strategies. ### 🚀
SuperSmoothed Volume Zone Oscillator------------------------------------------------------------------------------------
SUPERSMOOTHED VOLUME ZONE OSCILLATOR (SSVZO)
TECHNICAL INDICATOR DOCUMENTATION
------------------------------------------------------------------------------------
Table of Contents:
1. Original VZO Background
2. SuperSmoother Technology
3. SSVZO Components
3.1. Main SSVZO Oscillator
3.2. Momentum Velocity Component
3.3. Adaptive Levels
3.4. Static Levels
3.5. Trend Shift Detection
3.6. Glow Effect Visualization
4. References & Further Reading
------------------------------------------------------------------------------------
1. ORIGINAL VOLUME ZONE OSCILLATOR (VZO) BACKGROUND
------------------------------------------------------------------------------------
Creator: Walid Khalil (November 2009, Technical Analysis of Stocks & Commodities)
History: Khalil designed the VZO to address limitations in other volume indicators
by focusing on the relative balance between buying and selling volume while filtering
out market noise. The indicator identifies accumulation and distribution patterns.
Traditional Usage: The classic VZO uses a 14-period calculation setting and is
interpreted on a scale from -60% to +60%:
- Readings above +40% indicate strong buying pressure (potential overbought)
- Readings below -40% indicate strong selling pressure (potential oversold)
- The zero line acts as a key reference for trend changes
- Divergences between VZO and price offer valuable trading signals
Difference from Other Volume Indicators: Unlike simple volume indicators that only
track total volume, the VZO tracks the relative difference between up-volume and
down-volume, more effectively identifying buying/selling pressure imbalances and
potential reversal points.
------------------------------------------------------------------------------------
2. SUPERSMOOTHER FILTER TECHNOLOGY
------------------------------------------------------------------------------------
Creator: John F. Ehlers, an engineer specializing in digital signal processing for
trading systems.
Origins: Introduced in "Rocket Science for Traders" (2001) and refined in "Cybernetic
Analysis for Stocks and Futures" (2004). Represents the application of digital signal
processing techniques to financial markets.
Technical Foundation: The SuperSmoother is a two-pole low-pass filter specifically
designed to eliminate noise while preserving the underlying signal. It combines
principles of Butterworth and Gaussian filters to minimize both phase shift and
passband ripple.
Mathematical Implementation:
a1 = exp(-π * sqrt(2) / period)
b1 = 2 * a1 * cos(sqrt(2) * π / period)
c2 = b1
c3 = -a1²
c1 = 1 - c2 - c3
Advantages Over Traditional Filters:
- Reduces lag compared to simple moving averages
- Eliminates high-frequency market noise more effectively
- Minimizes unwanted ripples in the output signal
- Preserves important turning points in the data
- Superior handling of sudden market movements
According to Ehlers: "Conventional moving averages are plagued by excessive lag and/or
rippling in their passband. The SuperSmoother eliminates virtually all of this ripple
and has excellent transient response characteristics." (TASC Magazine, 2014)
------------------------------------------------------------------------------------
3. SSVZO COMPONENTS
------------------------------------------------------------------------------------
3.1. MAIN SSVZO OSCILLATOR
------------------------------------------------------------------------------------
Description: The core component measuring buying vs. selling volume pressure using
the SuperSmoother filter for enhanced noise reduction.
Calculation: SSVZO analyzes the relationship between up-volume (volume on rising
prices) and down-volume (volume on falling prices), applying exponential moving
averages to both components, then calculating their relative strength. The
SuperSmoother filter reduces market noise while preserving the underlying trend signal.
Implementation Advantage: By applying the SuperSmoother filter to the VZO calculation,
the SSVZO provides significantly cleaner signals with fewer false crossovers and more
accurate identification of true trend changes.
Interpretation:
- Values above zero indicate bullish volume dominance
- Values below zero indicate bearish volume dominance
- Readings above +60 suggest overbought conditions
- Readings below -60 suggest oversold conditions
- Crossovers of the zero line signal potential trend changes
Trading Application: Use SSVZO as a primary volume-based momentum indicator to
confirm price trends, identify divergences, and spot potential reversal zones.
------------------------------------------------------------------------------------
3.2. MOMENTUM VELOCITY COMPONENT
------------------------------------------------------------------------------------
Description: A histogram displaying the rate of change of momentum, showing how
quickly buying or selling pressure is accelerating or decelerating.
Calculation: Derived from price momentum over a user-defined period, with optional
adaptive filtering that adjusts sensitivity based on market volatility. The velocity
component shows the first derivative of momentum – essentially the "acceleration" of
market movement.
Technical Origin: Inspired by Ehlers' work on Hilbert Transforms and research on
cyclic components in financial markets, as detailed in "Cycle Analytics for Traders"
(2013).
Interpretation:
- Positive readings (teal bars) indicate accelerating upward momentum
- Negative readings (orange bars) suggest accelerating downward momentum
- Larger bars indicate stronger momentum acceleration
- Shrinking bars signal momentum deceleration
Trading Application: Use as an early warning system for potential trend exhaustion
or confirmation of a new trending move. When momentum velocity diverges from price,
it often precedes a reversal.
------------------------------------------------------------------------------------
3.3. ADAPTIVE LEVELS
------------------------------------------------------------------------------------
Description: Dynamic overbought and oversold boundaries that adjust to market
conditions, providing context-aware trading signals.
Calculation: Uses statistical methods based on the standard deviation of the SSVZO
values over a longer period. These levels automatically widen during higher volatility
periods and narrow during consolidation.
Research Base: Draws from Perry Kaufman's work on Adaptive Moving Averages (AMA) and
Bollinger's research on dynamic volatility bands, as published in "Trading Systems
and Methods" (2013).
Interpretation:
- Adaptive Overbought (dotted circles above): Dynamic ceiling that expands/contracts
based on market volatility
- Adaptive Oversold (dotted circles below): Dynamic floor that expands/contracts based
on market volatility
Trading Application: More reliable for identifying extremes than static levels,
particularly in changing market conditions or different instruments. Touching these
levels often provides higher-probability reversal signals.
------------------------------------------------------------------------------------
3.4. STATIC LEVELS
------------------------------------------------------------------------------------
Description: Fixed overbought and oversold horizontal lines that provide consistent
reference points for excess market conditions.
Calculation: Preset at +60 (overbought) and -60 (oversold) based on historical
analysis of volume behavior across multiple markets, extending the classic VZO range.
Interpretation:
- Readings above +60 suggest potential buying exhaustion
- Readings below -60 indicate potential selling exhaustion
- Duration spent beyond these levels correlates with reversal probability
Trading Application: Use as baseline reference points for extreme conditions. Most
effective when combined with other confirmation signals like divergences or
candlestick patterns.
------------------------------------------------------------------------------------
3.5. TREND SHIFT DETECTION
------------------------------------------------------------------------------------
Description: Visual markers and optional background shading highlighting potential
trend changes when the SSVZO crosses the zero line.
Calculation: Based on mathematical crossovers of the SSVZO value above or below the
zero line, with pattern recognition to reduce false signals.
Research Foundation: Incorporates concepts from Dr. Alexander Elder's "triple screen
trading system" and Mark Chaikin's volume-based trend identification research.
Interpretation:
- Upward triangles indicate bullish trend shifts (SSVZO crossing above zero)
- Downward triangles indicate bearish trend shifts (SSVZO crossing below zero)
- Background shading emphasizes the new trend direction
Trading Application: These signals often precede price trend changes and can serve
as entry triggers when aligned with the higher timeframe trend.
------------------------------------------------------------------------------------
3.6. GLOW EFFECT VISUALIZATION
------------------------------------------------------------------------------------
Description: An aesthetic enhancement creating a gradient "glow" around the main SSVZO
line, improving visual clarity and emphasizing signal strength.
Calculation: Generated using percentage-based bands around the main SSVZO value, with
multiple translucent layers to create a subtle illumination effect.
Design Inspiration: Inspired by modern UI/UX design principles for financial
dashboards and the MATS (Moving Average Trend Sniper) indicator's visual presentation,
enhancing perception of signal strength through visual intensity.
Interpretation:
- Teal glow indicates positive SSVZO values (bullish)
- Orange glow indicates negative SSVZO values (bearish)
- Glow intensity correlates with the strength of the signal
Trading Application: Beyond aesthetics, the glow creates visual emphasis that makes
trend direction, strength, and changes more immediately apparent, particularly useful
during fast-moving market conditions.
------------------------------------------------------------------------------------
4. REFERENCES & FURTHER READING
------------------------------------------------------------------------------------
1. Ehlers, J. F. (2001). "Rocket Science for Traders: Digital Signal Processing
Applications." John Wiley & Sons.
2. Ehlers, J. F. (2004). "Cybernetic Analysis for Stocks and Futures: Cutting-Edge
DSP Technology to Improve Your Trading." John Wiley & Sons.
3. Ehlers, J. F. (2013). "Cycle Analytics for Traders: Advanced Technical Trading
Concepts." John Wiley & Sons.
4. Khalil, W. (2009). "The Volume Zone Oscillator." Technical Analysis of Stocks &
Commodities, November 2009.
5. Kaufman, P. J. (2013). "Trading Systems and Methods." 5th Edition, Wiley Trading.
6. Elder, A. (2002). "Come Into My Trading Room: A Complete Guide to Trading."
John Wiley & Sons.
7. Bollinger, J. (2002). "Bollinger on Bollinger Bands." McGraw-Hill Education.
------------------------------------------------------------------------------------
END OF DOCUMENTATION
------------------------------------------------------------------------------------
Key Session Levels (Final + Pre-Market Low)Previous Day High/Low
Pre-Market High/Low
Opening 5min High/Low
JTRADEZ LevelsHelps U see The intraday levels being able to see PM low PM high OPEN Yestday LOW AND yestday high
Crypto Portfolio vs BTC – Custom Blend TrackerThis tool tracks the performance of a custom-weighted crypto portfolio (SUI, BTC, SOL, DEEP, DOGE, LOFI, and Other) against BTC. Simply input your start date to anchor performance and compare your basket’s relative strength over time. Ideal for portfolio benchmarking, alt-season tracking, or macro trend validation.
Supports all timeframes. Based on BTC-relative returns (not USD). Open-source and customizable.
wma+ tendance🟢 wma+ tendance – Trend Ribbon with Weighted Moving Averages
Description:
Wma+ tendance is an indicator based on two Weighted Moving Averages (WMA) – a fast and a slow one – designed to visualize market trends in a clear and intuitive way. It dynamically colors the space between the two curves according to the market direction:
🟩 Green: Uptrend (fast WMA is above the slow WMA, and both are rising)
🟥 Red: Downtrend (fast WMA is below the slow WMA, and both are falling)
⬜ Gray: No clear trend (neutral market or consolidation)
Usage:
Identify trend phases or consolidation periods
Combine with other technical signals to optimize entries/exits
Suitable for both day trading and swing trading
Customizable settings:
Price source (close, open, etc.)
Length of the moving averages (fast and slow)
MTF Trend + Crossover AlertsMulti-Timeframe Trend Dashboard + Crossover Signals
This indicator provides a clean, real-time visual dashboard of trend directions across multiple timeframes (1m, 5m, 15m, 30m, 1H, 4H, 1D), based on moving average crossovers.
🔹 Trend Detection Logic:
When the fast MA is above the slow MA → Bullish trend 🚀
When the fast MA is below the slow MA → Bearish trend 🐻
When both are equal or ranging → Neutral
📊 Dashboard Features:
Displays trend status for each selected timeframe
Color-coded cells (green = bullish, red = bearish, gray = neutral)
Includes emojis for visual clarity
🔔 Buy/Sell Alerts:
On the active chart timeframe, buy and sell signals are plotted when the fast MA crosses above or below the slow MA. You can also enable TradingView alerts based on these events.
🧩 Customizable Inputs:
Fast MA period
Slow MA period
MA type (EMA or SMA)
🔧 Ideal for traders who want a quick snapshot of market structure across multiple timeframes and receive real-time crossover signals on their current chart.
Dual Timeframe DMI + StochRSI StrategyThis strategy works on the principle that there's a higher probability of accuracy if the LTF follows the HTF trend.
The HTF DMI plus Stochastic RSI cross will trigger a reaction on the LTF.
There's a quick 2:1 scalp on the 2m timeframe.
HSI Futures 9:15-9:20 High/Low/MidHSI Futures 9:15-9:20 High/Low/Mid. It is used to determine whether the market goes up or down.