DataDoodles SD + ProbabilityDataDoodles SD + Probability
Overview:
The “DataDoodles SD + Probability” indicator is designed to provide traders with a statistical edge by leveraging standard deviation and probability metrics. This advanced tool calculates the annualized standard deviation, Z-score, and probability of price movements, offering insights into potential market direction with customizable alert thresholds.
Key Features:
1. Annualized Standard Deviation (Volatility) Calculation:
• Uses a user-defined period to compute the rolling standard deviation of daily returns.
• Annualizes the volatility, giving a clear picture of expected price fluctuations.
2. Probability of Price Movement:
• Calculates the probability of price moving up or down using a corrected Z-Score.
• Displays the probability percentage for both upward and downward movements.
3. Dynamic Alerts:
• Configurable alerts for upward and downward price movement probabilities.
• Receive alerts when the probability exceeds user-defined thresholds.
4. Projections and Visuals:
• Plots projected high and low price levels based on annualized volatility.
• Displays Z-Score and probability metrics on the chart for quick reference.
5. Comprehensive Data Table:
• Bottom-center table displays key metrics:
• Daily Return
• Standard Deviation (SD)
• Annualized Standard Deviation (Yearly SD)
User Inputs:
• Annualization Period: Set the time frame for volatility annualization (Default: 252 days).
• SD Period: Define the rolling window for calculating standard deviation (Default: 252 days).
• Alert Probability Up/Down: Customize the probability thresholds for alerts (Default: 90%).
How It Works:
• Data Request and Calculation:
• Uses daily close prices to ensure consistent timeframe calculations.
• Calculates daily returns and annualizes the volatility using the square root of the time frame.
• Probability Computation:
• Employs a normal distribution CDF approximation to compute the probability of upward and downward price movements.
• Adjusts probabilities based on Z-Score to ensure accuracy.
• High and Low Projections:
• Utilizes the annualized volatility to estimate high and low price projections for the year.
• Visual Indicators and Alerts:
• Plots projected high (green) and low (red) levels on the chart.
• Displays Z-Score, probability percentages, and dynamically updates a statistics table.
Use Cases:
• Trend Analysis: Identify high-probability market movements using the probability metrics.
• Volatility Insights: Understand annualized volatility to gauge market risk and potential price ranges.
• Strategic Trading Decisions: Set alerts for high-probability scenarios to optimize entry and exit points.
Why Use “DataDoodles SD + Probability”?
This indicator provides a powerful combination of statistical analysis and visual representation. It empowers traders with:
• Quantitative Edge: By leveraging probability metrics and standard deviation, users can make informed trading decisions.
• Risk Management: Annualized volatility projections help in setting realistic stop-loss and take-profit levels.
• Actionable Alerts: Customizable probability alerts ensure users are notified of potential market moves, allowing proactive trading strategies.
Recommended Settings:
• Annualization Period: 252 (Ideal for daily data representing a trading year)
• SD Period: 252 (One trading year for consistent volatility calculations)
• Alert Probability: Set to 90% for conservative signals or lower for more frequent alerts.
Final Thoughts:
The “DataDoodles SD + Probability” indicator is a robust tool for traders looking to integrate statistical analysis into their trading strategies. It combines volatility measurement, probability calculations, and dynamic alerts to provide a comprehensive market overview.
Whether you’re a day trader or a long-term investor, this indicator can enhance your market insight and improve decision-making accuracy.
Disclaimer:
This indicator is a technical analysis tool designed for educational purposes. Past performance is not indicative of future results. Traders are encouraged to perform their own analysis and manage risk accordingly.
Volatility
CCI, RSI, Volume & ATR Buy Signal - Go with the herd!📌 CCI, RSI, Volume & ATR Buy Signal Indicator
🚀 Identify Smart Entry Opportunities with a Multi-Confirmation Approach
This indicator combines CCI (Commodity Channel Index), RSI (Relative Strength Index), Volume, and ATR (Average True Range) to provide a reliable buy signal by ensuring the market conditions are favorable before entering a trade.
📊 How Does It Work?
This script evaluates market momentum, volatility, and trading volume to generate a clear entry decision:
✅ (Green Check) → Favorable entry conditions
❌ (Red Cross) → Not an ideal entry point
The indicator displays all the relevant metrics in one compact label, positioned above the most recent candle for quick and easy reference.
📈 Components of the Indicator
Each metric is visually represented using traffic light colors (🟢 Green, 🟡 Yellow, 🔴 Red) for intuitive decision-making:
1️⃣ CCI (Commodity Channel Index) – Momentum Strength
🟢 Strong: Market momentum is high (CCI above the entry threshold).
🟡 Moderate: Market is showing some movement, but not strong enough.
🔴 Weak: No significant momentum (CCI is low).
2️⃣ RSI (Relative Strength Index) – Trend Confirmation
If RSI is above the user-defined threshold, the momentum is considered positive for entry.
3️⃣ Volume – Market Participation
🟢 High: Trading volume is above the moving average, confirming strong participation.
🟡 Moderate: Volume is near its average, signaling indecisiveness.
🔴 Low: Weak participation, indicating potential false signals.
4️⃣ ATR (Average True Range) – Volatility Indicator
🟢 High: The market is moving with sufficient volatility for a strong trade setup.
🟡 Moderate: Acceptable volatility but with some caution.
🔴 Low: Market is slow, and price movements may be weak.
🔧 Customizable Settings
You can fine-tune the indicator to match your trading strategy by adjusting:
CCI Threshold for Entry (default: 100)
RSI Threshold for Entry (default: 50)
Volume Multiplier for Confirmation (default: 1.0)
ATR Multiplier for Confirmation (default: 1.0)
🖥️ How to Use
1️⃣ Add the indicator to your TradingView chart.
2️⃣ Look for the label above the most recent candle.
Example output:
✅ Vola: 🟢 Mom: 🟢 Volu: 🟢 → Strong confirmation for entry.
❌ Vola: 🟡 Mom: 🔴 Volu: 🟡 → Entry conditions are not favorable.
3️⃣ Only enter trades when ✅ appears and all or most indicators are green.
4️⃣ Avoid trading when ❌ is displayed or when multiple indicators are yellow/red.
⚡ Why Use This Indicator?
✅ Multi-Factor Confirmation – Ensures you enter only high-probability setups.
✅ Customizable for Any Strategy – Adjust thresholds based on your risk tolerance.
✅ Traffic Light System – Easily interpret trade conditions at a glance.
✅ Real-Time Updates – The label dynamically updates based on the latest price action.
📌 Final Notes
This indicator is not a standalone trading system but a powerful confirmation tool. Always use proper risk management and combine it with price action analysis for best results. 📊📈
PRC-ALMA | QuantEdgeBIntroducing PRC-ALMA by QuantEdgeB
Overview
The PRC-ALMA (Percentile Adaptive ALMA) is an advanced dynamic trend and volatility filtering indicator that leverages the Arnaud Legoux Moving Average (ALMA) combined with Percentile Rank Filtering and Median Absolute Deviation (MAD) Bands. It is designed to enhance market structure clarity, detect breakout zones, and provide trade signals by dynamically adjusting its filtering based on recent price action.
____
Key Features
1. 📈 Adaptive ALMA Smoothing:
- Uses ALMA for smoothing price action while reducing lag.
- Provides a more responsive moving average than traditional EMAs and SMAs.
2. 📊 Percentile Rank-Based Thresholds:
- Determines upper and lower regions using 75th and 25th percentile ranks.
- Allows for adaptive thresholding based on historical price movements.
3. 🎯 Median Absolute Deviation (MAD) Volatility Filtering:
- Filters out noise using robust statistical deviation measures.
- MAD Bands dynamically adjust based on volatility expansion and contraction.
4. 🔄 Dynamic Trade Signals:
- Generates long signals when price exceeds the upper threshold.
- Generates short signals when price drops below the lower threshold.
5. 🎨 Customizable Color Modes & Visual Enhancements:
- Choose between multiple color schemes to match trading preferences.
- Optional candlestick coloring to indicate market sentiment shifts.
____
How It Works
1. ALMA Calculation:
- The indicator starts by computing the ALMA (Arnaud Legoux Moving Average) with a customizable length, offset, and sigma.
2. Percentile Rank Filtering:
- It then calculates the 75th and 25th percentile ranks over a selected period, determining dynamic levels for trend identification.
3. Volatility Adjustment Using Median Absolute Deviation (MAD):
- MAD is applied to filter noise and adapt the upper/lower bands based on market volatility.
- The higher the MAD multiplier, the wider the bands, allowing more price fluctuations before a signal triggers.
4. Entry & Exit Conditions:
- Long Entry: When price crosses above the upper percentile band + MAD filter.
- Short Entry: When price crosses below the lower percentile band - MAD filter.
5. Visual Enhancements:
- Dynamic band plotting with shading between percentile ranks.
- Candlestick coloring to visually indicate long/short sentiment shifts.
____
Practical Applications
✅ Trend Following & Momentum Trading – Uses ALMA for trend smoothing and percentile-based breakouts.
✅ Mean Reversion Strategies – Adaptive MAD filtering ensures only significant deviations trigger signals.
✅ Multi-Timeframe Trading – Works on intraday, daily, and weekly timeframes based on user customization.
✅ Noise Reduction – Eliminates minor fluctuations while capturing meaningful market moves.
____
🛠 Settings
-ALMA Length: 24 – Defines the smoothing period for the Arnaud Legoux Moving Average.
-ALMA Offset: 0.7 – Adjusts the shift factor, controlling responsiveness.
-ALMA Sigma: 4 – Determines the smoothing strength, balancing trend-following and noise reduction.
-Percentile Length: 21 – Lookback period for calculating percentile rank levels.
-Median Period: 21 – The period used for the Median Absolute Deviation (MAD) filter.
-Median Multiplier: 1.8 – Adjusts the sensitivity of the MAD filter, impacting how signals are generated.
-Color Mode: Strategy – Various visual themes available for better chart readability.
-Signal Label: Off - If turned off the indicator produced a Long or Cash signal when the trend changes.
📌 Conclusion
The PRC-ALMA | QuantEdgeB is an advanced valuation and signal generation tool that dynamically adjusts based on market conditions. By combining ALMA for trend smoothing, percentile rank thresholds, and MAD-based volatility filtering, it provides traders with a versatile indicator for momentum, breakout, and mean reversion strategies.
Key Takeaways:
✔ Smooth & Adaptive – ALMA ensures minimal lag while maintaining trend responsiveness.
✔ Dynamic Overbought/Oversold Zones – Adjusts to real-time market conditions using percentile-based bands.
✔ Volatility-Aware Filtering – Uses MAD to eliminate market noise, making signals more reliable.
✔ Customizable & Multi-Timeframe Ready – Works on various asset classes and timeframes with adjustable settings.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Volume Profile With HVN & LVN detectorVolume Profile Indicator
Based on the works of tradeforopp
Overview
The Volume Profile Indicator is a powerful technical analysis tool that visually represents the distribution of trading volume over price levels within a specified timeframe. It helps traders identify key support and resistance zones, high-volume trading areas, and low-volume rejection zones. The indicator includes customizable settings for Volume Point of Control (VPOC), High Volume Nodes (HVNs), and Low Volume Nodes (LVNs), making it a versatile tool for price action analysis and volume-based decision-making.
Key Features
🔹 Customizable Volume Profile
Adjustable number of rows to define the resolution of the volume profile.
Configurable timeframe aggregation for profile calculation (e.g., Daily, Weekly).
Selectable price resolution timeframe for precise profile construction.
Extendable volume profile for future sessions.
Fully customizable profile color and transparency settings.
🔹 Volume Point of Control (VPOC)
Displays the most traded price level within the selected timeframe.
Option to extend multiple VPOCs across the chart.
Adjustable VPOC line width and color customization.
Option to display VPOC labels when working with higher timeframe profiles.
🔹 High Volume Nodes (HVNs)
Identifies high-volume price levels where significant trading activity has occurred.
Configurable HVN strength to adjust detection sensitivity.
Two display modes:
Lines: Plots HVN levels as horizontal lines.
Areas: Highlights HVN regions with colored boxes.
Separate bullish and bearish HVN color settings.
🔹 Low Volume Nodes (LVNs)
Identifies low-volume price levels, which often act as rejection zones.
Configurable LVN strength to fine-tune detection.
Two display modes:
Lines: Marks LVN levels as horizontal lines.
Areas: Highlights LVN regions with shaded boxes.
Separate bullish and bearish LVN color settings.
🔹 Optimized for Performance
Efficient use of arrays for data storage and retrieval.
Global functions for HVN and LVN detection.
Uses security calls to access lower timeframe price and volume data.
Use Cases
✅ Identify Support & Resistance Levels
The indicator highlights key price levels where significant buying or selling interest exists.
✅ Detect Breakout & Reversal Zones
Low-volume areas (LVNs) often indicate price rejection zones, while high-volume areas (HVNs) suggest strong price acceptance zones.
✅ Improve Trade Entries & Exits
Traders can use the Volume Point of Control (VPOC) and volume clusters to refine entry and exit points.
✅ Enhance Price Action Strategies
By incorporating volume-based analysis, this indicator provides deeper market insights beyond traditional support/resistance and trendlines.
Customization & Settings
📌 Volume Profile Settings:
Rows: Defines the granularity of the volume profile.
Profile Timeframe: Specifies the aggregation period (e.g., Daily, Weekly).
Resolution Timeframe: Determines the price resolution for volume analysis.
Profile Extend %: Controls how much the profile extends into the next session.
📌 Volume Point of Control (VPOC):
Enable/Disable VPOC visualization.
Extend past VPOC levels to the right.
Display VPOC labels for higher timeframe profiles.
Adjustable VPOC line width and color.
📌 High Volume Nodes (HVNs):
Enable/Disable HVN detection.
Define HVN strength (volume threshold).
Choose between Line Mode or Area Mode.
Configure bullish and bearish HVN colors.
📌 Low Volume Nodes (LVNs):
Enable/Disable LVN detection.
Define LVN strength (volume threshold).
Choose between Line Mode or Area Mode.
Configure bullish and bearish LVN colors.
TPO IQ [TradingIQ]Hello Traders!
Introducing "TPO IQ"!
TPO IQ offers a Time Price Opportunity profile with several customization options that packs several related features to help traders navigate the generated profiles!
Features
TPO Profiles
Single Print identification
Initial Balance Identification
Can be anchored to timeframe change
Can be anchored to fixed time interval
Last profile detailed visuals
Customizable value area percentage
POC identification
Mid-point identification
TPO Profiles
A TPO profile is a market profile visualization that details how much time was spent at each price level throughout the time interval.
The image above further explains what a TPO Profile is!
Each letter corresponds to a candlestick. With this information, traders are able to visualize how much time was spent at each price area.
With customizable gradient colors, specifically in this example, blocks colored red are the earliest times in the profile, blocks colored green are in the beginning half of the time midpoint of the profile. Blue blocks represent the first half of the end of the time period, and purple blocks correspond to the end of the time period.
Please note that this form of TPO profile generation will only occur when the most recent profile uses less than 500 alphabet characters! If more than 500 characters are preset, TPO IQ will revert to using labels!
Initial Balance
TPO IQ also identifies the initial balance range and all alphabet characters that form within it!
The image above exemplifies this feature. The initial balance range is denoted by a a neon-blue line, with a blue circle showing the opening price. All characters within the initial balance range are highlighted blue, which is a feature that can be disabled with customizable colors.
POC
TPO IQ also identifies the point of control (POC) of the TPO Profile.
The point of control for the profile is labeled yellow by default, and shows where price spent the most time throughout the time period.
The image above shows the POC for the time period being identified by TPO IQ.
Value Area
TPO IQ also identifies the value area of the profile. A customizable percentage that is 70% by default, the value area of a TPO profile shows where price traded the majority of the time.
The image above further explains this feature. For this example, with the value area percentage being set to 70%, the value area high and value area low show the price zone that prices traded at 70% of the time throughout the profile.
TPO Midpoint
In addition to the POC, the TPO profile midpoint is also identified by TPO IQ.
The TPO midpoint simply corresponds to the middle price between the session's high and low!
Fixed Interval Mode
By default, TPO IQ recalculates every day, but this can also be changed to a customizable session time, such as 4 hours. If 4 hours is selected, then a new TPO profile will be generated every 4 hours.
However, in Fixed Interval mode, a TPO profile will be generated through a user-defined time range, such as 1300-1700.
In the image above, Fixed Interval mode is applied with a time range of 1300-1700 and, consequently, TPO IQ generates a new profile throughout every 1300-1700 time range!
This feature allows traders to specify time ranges of interest to generate TPO profiles for!
TPO Overview Label
The TPO overview label shows key statistics for the TPO profile generated throughout the trading session!
The "TPO Count" statistic shows how many alphabetical letters were generated for the profile, which is an adequate method to determine the session's volatility and price range.
The "Tick Levels" statistic shows how many tick levels were used to create the profile - another method to determine the volatility and price range of the session.
The "Top Letter" statistic shows which letter appears most throughout the profile. In this example, the top letter was "f", which means throughout creation of the profile, the letter "f" appeared the most!
And that's all for now!
If you have any feedback or new feature ideas for TPO IQ please feel free to share them with us!
Thank you traders!
Volatility-Volume Index (VVI)Volatility-Volume Index (VVI) – Indicator Description
The Volatility-Volume Index (VVI) is a custom trading indicator designed to identify market consolidation and anticipate breakouts by combining volatility (ATR) and trading volume into a single metric.
How It Works
Measures Volatility : Uses a 14-period Average True Range (ATR) to gauge price movement intensity.
Tracks Volume : Monitors trading activity to identify accumulation or distribution phases.
Normalization : ATR and volume are normalized using their respective 20-period Simple Moving Averages (SMA) for a balanced comparison.
Interpretation
VVI < 1: Low volatility and volume → Consolidation phase (range-bound market).
VVI > 1: Increased volatility and/or volume → Potential breakout or trend continuation.
How to Use VVI
Detect Consolidation:
Look for extended periods where VVI remains below 1.
Confirm with sideways price movement in a narrow range.
Anticipate Breakouts:
A spike above 1 signals a possible trend shift or breakout.
Why Use VVI?
Unlike traditional volatility indicators (ATR, Bollinger Bands) or volume-based tools (VWAP), VVI combines both elements to provide a clearer picture of consolidation zones and breakout potential.
Custom SL/TP ZonesThe "Please Don't Stop Me Now" Indicator 📊
Ever found yourself staring at a chart, thinking "This is DEFINITELY the bottom!" only to watch your stop loss get hit faster than your ex replacing you? Well, this indicator won't stop that from happening, but at least you'll know exactly where you're going to be wrong! 🎯
How it works:
See a setup you like? Pick your candle of choice (make sure it's closed - we're not fortune tellers here)
Hit either Bull or Bear (choose wisely, or don't - we all know it's 50/50 anyway)
3. Marvel at the beautiful boxes showing your:
Take Profit Zone (where you'll exit too early)
Stop Loss Zone (where you'll probably exit, let's be honest)
Features:
Uses ATR for dynamic zones because "one size fits all" only works in disappointing Halloween costumes
Extends 10 bars into the future, giving you plenty of time to watch your prediction go wrong
Price labels included so you know exactly where to set your alerts (and subsequently ignore them)
Customizable multipliers for when you're feeling extra brave (or foolish)
Clean interface that won't distract you from your bad decisions
Remember: The market can stay irrational longer than you can stay solvent, but at least with this indicator, you'll know exactly where your rationality ends and your "This time it's different" begins!
Happy Trading! (Results may vary, tears not included)
Settings:
TP Multiplier: How far to your dreams (Default: 4.0)
SL Multiplier: How far to your nightmares (Default: 2.0)
Bar Offset: Pick your poison (1 = last closed bar)
Colors: Because trading isn't painful enough in grayscale
CSR Ultimate (Final)This indicator calculates and displays a "Candle Strength Ratio" (CSR) to help you gauge bullish versus bearish momentum on a given timeframe. Here’s what it does:
*Multiple Calculation Methods:*
*You can choose among three different methods:*
-Classic CSR: Compares the difference between the upper and lower parts of the candle relative to its total range.
-Weighted Body CSR: Gives more weight to the candle’s body relative to its wicks.
-Close-Focused CSR: Focuses on the net movement from open to close relative to the full range.
*Optional Enhancements:*
The indicator allows you to enable additional features to refine it:
-Volume Weighting: Adjusts the CSR based on the ratio of current volume to a moving average of volume, so a candle on higher-than-average volume might carry more weight.
-ATR Normalization: Normalizes the CSR using the Average True Range (ATR) to account for market volatility.
-Multi-Bar Averaging: Averages the CSR over a specified number of bars to smooth out noise.
-RSI Filter: Optionally checks an RSI condition (bullish if RSI > 50 or bearish if RSI < 50) to help filter out signals that might not be supported by overall momentum.
*Visual and Alert Features:*
The indicator plots the CSR line with color coding (green for bullish, red for bearish) and draws horizontal threshold lines. It also adjusts the chart background color when the CSR exceeds defined bullish or bearish levels and provides alerts when these thresholds are crossed.
MTF- Standard Deviation ChannelWhat Is Standard Deviation?
Standard deviation is a statistical measurement that looks at how far individual points in a dataset are dispersed from the mean of that set. If data points are further from the mean, there is a higher deviation within the data set. It is calculated as the square root of the variance.
Key Takeaways:
Standard deviation measures the dispersion of a dataset relative to its mean.
It is calculated as the square root of the variance.
Standard deviation, in finance, is often used as a measure of the relative riskiness of an asset.
A volatile stock has a high standard deviation, while the deviation of a stable blue-chip stock is usually rather low.
Standard deviation is also used by businesses to assess risk, manage business operations, and plan cash flows based on seasonal changes and volatility.
Source: Investopedia
--------------- UPDATE ---------------
The deviation is calculated automatically. (via stdev function).
--
The targeted timeframe is available in the options (recalculation cycle).
--
If the selected security is a contract the number of days before expiration is automatically managed, otherwise it will use the 'default' options.
---------------------------------------
MT-Turnover.IndicatorMT-Turnover Indicator – Market Liquidity & Activity Gauge
Overview
The MT-Turnover Indicator is a TradingView tool designed to measure market liquidity and trading activity by tracking the turnover rate of a stock. It calculates the turnover percentage by comparing the trading volume to the number of outstanding shares, providing traders with insights into how actively a stock is being traded.
By incorporating a moving average (MA) of turnover and a customizable high turnover threshold, this indicator helps identify periods of increased market participation, potential breakouts, or distribution phases.
Key Features
✔ Turnover Rate Calculation – Expresses turnover as a percentage of outstanding shares
✔ Customizable Moving Average (MA) for Trend Analysis – Smoothens turnover fluctuations for better trend identification
✔ High Turnover Level Alert – Marks periods when turnover exceeds a predefined threshold
✔ Histogram Visualization – Shows turnover dynamics with clear green (above MA) and red (below MA) bars
✔ High Turnover Signal Markers – Flags exceptionally high turnover events for quick identification
How It Works
1. Turnover Rate Calculation
• Formula:

• Configurable Outstanding Shares (in millions) to match the stock being analyzed
2. Turnover Moving Average (MA) for Trend Analysis
• A simple moving average (SMA) of turnover is calculated over a user-defined period (default: 20 days)
• Green bars indicate turnover above MA, suggesting increased activity
• Red bars indicate turnover below MA, signaling lower participation
3. High Turnover Threshold
• Users can set a high turnover level (%) to mark exceptionally active trading periods
• When turnover exceeds this level, a red triangle marker appears above the bar
4. Reference Line & Informative Table
• A dashed red reference line marks the high turnover threshold
• A floating table in the top-right corner provides a quick summary
How to Use This Indicator
📈 For Breakout Traders – High turnover can indicate strong buying interest, often preceding breakouts
📉 For Risk Management – Spikes in turnover may signal distribution phases or panic selling
🔎 For Liquidity Analysis – Helps gauge how liquid a stock is, which can impact price stability
Conclusion
The MT-Turnover Indicator is a powerful tool for identifying periods of high market activity, helping traders detect potential breakouts, reversals, or strong accumulation/distribution phases. By visualizing turnover with a moving average and customizable threshold, it provides valuable insights into market participation trends.
➡ Add this indicator to your TradingView chart and improve your liquidity-based trading decisions today! 🚀
Long and Short Term Highs and LowsLong and Short Term Highs and Lows
Overview:
This indicator is designed to help traders identify significant price points by marking new highs and lows over two distinct timeframes—a long-term and a short-term period. It achieves this by drawing optional channel lines that outline the highest highs and lowest lows over the chosen time periods and by plotting visual markers (triangles) on the chart when a new high or low is detected.
Key Features:
Dual Timeframe Analysis:
Long Term: Uses a user-defined “Time Period” (default 52) and “Time Unit” (default: Weekly) to determine long-term high and low levels.
Short Term: Uses a separate “Time Period” (default 50) and “Time Unit” (default: Daily) to compute short-term high and low levels.
Optional Channel Display:
For both long and short term periods, you have the option to display a channel by plotting the highest and lowest values as lines. This visual channel helps to delineate the range within which the price has traded over the selected period.
New High/Low Markers:
The indicator identifies moments when the highest high or lowest low is updated relative to the previous bar.
When a new high is established, an up triangle is plotted above the bar.
Conversely, when a new low occurs, a down triangle is plotted below the bar.
Separate input toggles allow you to enable or disable these markers independently for the long-term and short-term setups.
Inputs and Settings:
Long Term High/Low Period Settings:
Show New High/Low? (STW): Toggle to enable or disable the plotting of new high/low markers for the long-term period.
Time Period: The number of bars used to calculate the highest high and lowest low (default is 52).
Time Unit: The timeframe on which the long-term calculation is based (default is Weekly).
Show Channel? (SCW): Toggle to display the channel lines that connect the long-term high and low levels.
Short Term High/Low Period Settings:
Show New High/Low?: Toggle to enable or disable the plotting of new high/low markers for the short-term period.
Time Period: The number of bars used for calculating the short-term extremes (default is 50).
Time Unit: The timeframe on which the short-term calculations are based (default is Daily).
Show Channel?: Toggle to display the channel lines for the short-term highs and lows.
Indicator Logic:
Channel Calculation:
The script uses the request.security function to pull data from the specified timeframes. For each timeframe:
It calculates the lowest low over the defined period using ta.lowest.
It calculates the highest high over the defined period using ta.highest.
These values can be optionally plotted as channel lines when the “Show Channel?” option is enabled.
New High/Low Detection:
For each timeframe, the indicator compares the current high (or low) with its immediate previous value:
New High: When the current high exceeds the previous bar’s high, an up triangle is drawn above the bar.
New Low: When the current low falls below the previous bar’s low, a down triangle is drawn below the bar.
Usage and Interpretation:
Trend Identification:
When new highs (or lows) occur, they can signal the start of a strong upward (or downward) movement. The indicator helps you visually track these critical turning points over both longer and shorter periods.
Channel Breakouts:
The optional channel display offers additional context. Price movement beyond these channels may indicate a breakout or a significant shift in trend.
Customizable Timeframes:
You can adjust both the time period and time unit to fit your trading style—whether you’re focusing on longer-term trends or short-term price action.
Conclusion:
This indicator provides a dual-layer analysis by combining long-term and short-term perspectives, making it a versatile tool for identifying key highs and lows. Whether you are looking to confirm trend strength or spot potential breakouts, the “Long and Short Term Highs and Lows” indicator adds a valuable visual element to your TradingView charts.
SMA with Std Dev Bands (Futures/US Stocks RTH)Rolling Daily SMA With Std Dev Bands
Upgrade your technical analysis with Rolling Daily SMA With Std Dev Bands, a powerful indicator that dynamically adjusts to your trading instrument. Whether you’re analyzing futures or US stocks during regular trading hours (RTH), this indicator seamlessly applies the correct logic to calculate a rolling daily Simple Moving Average (SMA) with customizable standard deviation bands for precise trend and volatility tracking.
Key Features:
✅ Automatic Instrument Detection– The indicator automatically recognizes whether you're trading futures or US equities and applies the correct daily lookback period based on your chart’s timeframe.
- Futures: Uses full trading day lengths (e.g., 1380 bars for 1‑minute charts).
- US Stocks (RTH): Uses regular session lengths (e.g., 390 bars for 1‑minute charts).
✅ Rolling Daily SMA (3‑pt Purple Line) – A continuously updated daily moving average, giving you an adaptive trend indicator based on market structure.
✅ Three Standard Deviation Bands (1‑pt White Lines) –
- Customizable multipliers allow you to adjust each band’s width.
- Toggle each band on or off to tailor the indicator to your strategy.
- The inner band area is color-filled: light green when the SMA is rising, light red when falling, helping you quickly identify trend direction.
✅ Works on Any Chart Timeframe – Whether you trade on 1-minute, 3-minute, 5-minute, or 15-minute charts, the indicator adjusts dynamically to provide accurate rolling daily calculations.
# How to Use:
📌 Identify Trends & Volatility Zones – The rolling daily SMA acts as a dynamic trend guide, while the standard deviation bands help spot potential overbought/oversold conditions.
📌 Customize for Precision – Adjust band multipliers and toggle each band on/off to match your trading style.
📌 Trade Smarter – The filled inner band offers instant visual feedback on market momentum, while the outer bands highlight potential breakout zones.
🔹 This is the perfect tool for traders looking to combine trend-following with volatility analysis in an easy-to-use, adaptive indicator.
🚀 Add Rolling Daily SMA With Std Dev Bands to your chart today and enhance your market insights!
---
*Disclaimer: This indicator is for informational and educational purposes only and should not be considered financial advice. Always use proper risk management and conduct your own research before trading.*
Donchian and Keltner Channels Trend Following with Trailing StopLong Only Trend-following model based on Keltner Channels and Donchian Channels.
These indicators include a noise region, which allows prices to oscillate without requiring position adjustments.
When price trades above the upper band, it signals strength; when it trades below the lower band, it signals weakness.
Keltner Channels
Keltner Channels are volatility-based envelopes set above and below an exponential moving average. Keltner Channels use the Average True Range (ATR), which measures daily volatility, to set channel distance.
Donchian Channel
Donchian Channels are are used to identify market trends and volatility. The upper and lower bands are based on the highest high and lowest low of a specified period. When the price moves above the upper band, it indicates a bullish breakout, while a
move below the lower band indicates a bearish breakout. The distance between the upper and lower channel of the Donchian Channel indicates the asset’s volatility.
Trend Following Model
The default settings are:
Upper Keltner and Upper Donchian Channel Length : 20
Lower Keltner and Lower Donchian Channel Length : 40
Keltner ATR Multiplier: 2
Entries, Exits and Trailing Stop
Entry : When price exceeds the upper band of at least one of these indicators.
Exit : When price undercuts the lower band of at least one of these indicators.
Trailing Stop : See below.
Trailing Stop
This is a stop-loss order that moves with the price of the underlying. It is designed to “trail” the price up (in the case of a long position) or down (for a short position), locking in profits as the price moves in a favorable direction.
At the end of day t, there was a Trailing Stop level in place. For the next day (day t + 1), the Trailing Stop will be adjusted. The new Trailing Stop will be the higher of two values:
The Trailing Stop from the previous day (day t).
The Lower Band computed at the end of day t + 1.
G-FRAMA | QuantEdgeBIntroducing G-FRAMA by QuantEdgeB
Overview
The Gaussian FRAMA (G-FRAMA) is an adaptive trend-following indicator that leverages the power of Fractal Adaptive Moving Averages (FRAMA), enhanced with a Gaussian filter for noise reduction and an ATR-based dynamic band for trade signal confirmation. This combination results in a highly responsive moving average that adapts to market volatility while filtering out insignificant price movements.
_____
1. Key Features
- 📈 Gaussian Smoothing – Utilizes a Gaussian filter to refine price input, reducing short-term noise while maintaining responsiveness.
- 📊 Fractal Adaptive Moving Average (FRAMA) – A self-adjusting moving average that adapts its sensitivity to market trends.
- 📉 ATR-Based Volatility Bands – Dynamic upper and lower bands based on the Average True Range (ATR), improving signal reliability.
- ⚡ Adaptive Trend Signals – Automatically detects shifts in market structure by evaluating price in relation to FRAMA and its ATR bands.
_____
2. How It Works
- Gaussian Filtering
The Gaussian function preprocesses the price data, giving more weight to recent values and smoothing fluctuations. This reduces whipsaws and allows the FRAMA calculation to focus on meaningful trend developments.
- Fractal Adaptive Moving Average (FRAMA)
Unlike traditional moving averages, FRAMA uses fractal dimension calculations to adjust its smoothing factor dynamically. In trending markets, it reacts faster, while in sideways conditions, it reduces sensitivity, filtering out noise.
- ATR-Based Volatility Bands
ATR is applied to determine upper and lower thresholds around FRAMA:
- 🔹 Long Condition: Price closes above FRAMA + ATR*Multiplier
- 🔻 Short Condition: Price closes below FRAMA - ATR
This setup ensures entries are volatility-adjusted, preventing premature exits or false signals in choppy conditions.
_____
3. Use Cases
✔ Adaptive Trend Trading – Automatically adjusts to different market conditions, making it ideal for both short-term and long-term traders.
✔ Noise-Filtered Entries – Gaussian smoothing prevents false breakouts, allowing for cleaner entries.
✔ Breakout & Volatility Strategies – The ATR bands confirm valid price movements, reducing false signals.
✔ Smooth but Aggressive Shorts – While the indicator is smooth in overall trend detection, it reacts aggressively to downside moves, making it well-suited for traders focusing on short opportunities.
_____
4. Customization Options
- Gaussian Filter Settings – Adjust length & sigma to fine-tune the smoothness of the input price. (Default: Gaussian length = 4, Gaussian sigma = 2.0, Gaussian source = close)
- FRAMA Length & Limits – Modify how quickly FRAMA reacts to price changes.(Default: Base FRAMA = 20, Upper FRAMA Limit = 8, Lower FRAMA Limit = 40)
- ATR Multiplier – Control how wide the volatility bands are for long/short entries.(Default: ATR Length = 14, ATR Multiplier = 1.9)
- Color Themes – Multiple visual styles to match different trading environments.
_____
Conclusion
The G-FRAMA is an intelligent trend-following tool that combines the adaptability of FRAMA with the precision of Gaussian filtering and volatility-based confirmation. It is versatile across different timeframes and asset classes, offering traders an edge in trend detection and trade execution.
____
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Smart MA Crossover BacktesterSmart MA Crossover Backtester - Strategy Overview
Strategy Name: Smart MA Crossover Backtester
Published on: TradingView
Applicable Markets: Works well on crypto (tested profitably on ETH)
Strategy Concept
The Smart MA Crossover Backtester is an improved Moving Average (MA) crossover strategy that incorporates a trend filter and an ATR-based stop loss & take profit mechanism for better risk management. It aims to capture trends efficiently while reducing false signals by only trading in the direction of the long-term trend.
Core Components & Logic
Moving Averages (MA) for Entry Signals
Fast Moving Average (9-period SMA)
Slow Moving Average (21-period SMA)
A trade signal is generated when the fast MA crosses the slow MA.
Trend Filter (200-period SMA)
Only enters long positions if price is above the 200-period SMA (bullish trend).
Only enters short positions if price is below the 200-period SMA (bearish trend).
This helps in avoiding counter-trend trades, reducing whipsaws.
ATR-Based Stop Loss & Take Profit
Uses the Average True Range (ATR) with a multiplier of 2 to calculate stop loss.
Risk-Reward Ratio = 1:2 (Take profit is set at 2x ATR).
This ensures dynamic stop loss and take profit levels based on market volatility.
Trading Rules
✅ Long Entry (Buy Signal):
Fast MA (9) crosses above Slow MA (21)
Price is above the 200 MA (bullish trend filter active)
Stop Loss: Below entry price by 2× ATR
Take Profit: Above entry price by 4× ATR
✅ Short Entry (Sell Signal):
Fast MA (9) crosses below Slow MA (21)
Price is below the 200 MA (bearish trend filter active)
Stop Loss: Above entry price by 2× ATR
Take Profit: Below entry price by 4× ATR
Why This Strategy Works Well for Crypto (ETH)?
🔹 Crypto markets are highly volatile – ATR-based stop loss adapts dynamically to market conditions.
🔹 Long-term trend filter (200 MA) ensures trading in the dominant direction, reducing false signals.
🔹 Risk-reward ratio of 1:2 allows for profitable trades even with a lower win rate.
This strategy has been tested on Ethereum (ETH) and has shown profitable performance, making it a strong choice for crypto traders looking for trend-following setups with solid risk management. 🚀
VolatilityThis is a filtering indicator Volatility in the CTA contract of BG Exchange. According to their introduction, it should be calculated using this simple method.
However, you may have seen the problem. According to the exchange's introduction, the threshold should still be divided by 100, which is in percentage form. The result I calculated, even if not divided by 100, still shows a significant difference, which may be due to the exchange's mistake. Smart netizens, do you know how the volatility of BG Exchange is calculated.
The official introduction of BG Exchange is as follows: Volatility (K, Fluctuation) is an additional indicator used to filter out positions triggered by CTA strategy signals in low volatility markets. Usage: Select the fluctuation range composed of the nearest K candlesticks, and choose the highest and lowest closing prices. Calculation: 100 * (highest closing price - lowest closing price) divided by the lowest closing price to obtain the recent amplitude. When the recent amplitude is greater than Fluctuation, it is considered that the current market volatility meets the requirements. When the CTA strategy's position building signal is triggered, position building can be executed. Otherwise, warehouse building cannot be executed.
Anchored VWAP with Buy/Sell SignalsAnchored VWAP Calculation:
The script calculates the AVWAP starting from a user-defined anchor point (anchor_date).
The AVWAP is calculated using the formula:
AVWAP
=
∑
(
Volume
×
Average Price
)
∑
Volume
AVWAP=
∑Volume
∑(Volume×Average Price)
where the average price is
(
h
i
g
h
+
l
o
w
+
c
l
o
s
e
)
/
3
(high+low+close)/3.
Buy Signal:
A buy signal is generated when the price closes above the AVWAP (ta.crossover(close, avwap)).
Sell Signal:
A sell signal is generated when the price closes below the AVWAP (ta.crossunder(close, avwap)).
Plotting:
The AVWAP is plotted on the chart.
Buy and sell signals are displayed as labels on the chart.
Background Highlighting:
The background is highlighted in green for buy signals and red for sell signals (optional).
True Range & ATRDescription : This indicator plots both the True Range (TR) and the Average True Range (ATR) in a separate pane below the main chart.
- TR represents the absolute price movement range within each candle.
- ATR is a smoothed version of TR over a user-defined period (default: 14), providing insight into market volatility.
- TR is displayed as a histogram for a clearer view of individual candle ranges.
- ATR is plotted as a line to show the smoothed trend of volatility.
This indicator helps traders assess market volatility and potential price movements.
Smoothed Low-Pass Butterworth Filtered Median [AlphaAlgos]Smoothed Low-Pass Butterworth Filtered Median
This indicator is designed to smooth price action and filter out noise while maintaining the dominant trend. By combining a Butterworth low-pass filter with a median-based smoothing approach , it effectively reduces short-term fluctuations, allowing traders to focus on the true market direction.
How It Works
Median Smoothing: The indicator calculates the 50th percentile (median) of closing prices over a customizable period , making it more robust against outliers compared to traditional moving averages.
Butterworth Filtering: A low-pass filter is applied using an approximation of the Butterworth formula , controlled by the Cutoff Frequency , helping to eliminate high-frequency noise while preserving trends.
EMA Refinement: A 7-period EMA is applied to further smooth the signal, providing a more reliable trend representation.
Features
Trend Smoothing: Reduces market noise and highlights the dominant trend.
Dynamic Color Signals: The EMA line changes color to indicate trend strength and direction.
Configurable Parameters: Customize the median length, cutoff frequency, and EMA length to fit your strategy.
Versatile Use Case: Suitable for both trend-following and mean-reversion strategies.
How to Use
Bullish Signal: When the EMA is below the price and rising , indicating upward momentum.
Bearish Signal: When the EMA is above the price and falling , signaling a potential downtrend.
Reversal Zones: Monitor for trend shifts when the color of the EMA changes.
This indicator provides a clear, noise-free view of market trends , making it ideal for traders seeking improved trend identification and entry signals .
Dynamic Stop Loss & Take ProfitDynamic Stop Loss & Take Profit is a versatile risk management indicator that calculates dynamic stop loss and take profit levels based on the Average True Range (ATR). This indicator helps traders set adaptive exit points by using a configurable ATR multiplier and defining whether they are in a Long (Buy) or Short (Sell) trade.
How It Works
ATR Calculation – The indicator calculates the ATR value over a user-defined period (default: 14).
Stop Loss and Take Profit Multipliers – The ATR value is multiplied by a configurable factor (ranging from 1.5 to 4) to determine volatility-adjusted stop loss and take profit levels.
Trade Type Selection – The user can specify whether they are in a Long (Buy) or Short (Sell) trade.
Long (Buy) Trade:
Stop Loss = Entry Price - (ATR × Stop Loss Multiplier)
Take Profit = Entry Price + (ATR × Take Profit Multiplier)
Short (Sell) Trade:
Stop Loss = Entry Price + (ATR × Stop Loss Multiplier)
Take Profit = Entry Price - (ATR × Take Profit Multiplier)
Features
Configurable ATR length and multipliers
Supports both long and short trades
Clearly plotted Stop Loss (red) and Take Profit (green) levels on the chart
Helps traders manage risk dynamically based on market volatility
This indicator is ideal for traders looking to set adaptive stop loss and take profit levels without relying on fixed price targets.
Stochastic-Dynamic Volatility Band ModelThe Stochastic-Dynamic Volatility Band Model is a quantitative trading approach that leverages statistical principles to model market volatility and generate buy and sell signals. The strategy is grounded in the concepts of volatility estimation and dynamic market regimes, where the core idea is to capture price fluctuations through stochastic models and trade around volatility bands.
Volatility Estimation and Band Construction
The volatility bands are constructed using a combination of historical price data and statistical measures, primarily the standard deviation (σ) of price returns, which quantifies the degree of variation in price movements over a specific period. This methodology is based on the classical works of Black-Scholes (1973), which laid the foundation for using volatility as a core component in financial models. Volatility is a crucial determinant of asset pricing and risk, and it plays a pivotal role in this strategy's design.
Entry and Exit Conditions
The entry conditions are based on the price’s relationship with the volatility bands. A long entry is triggered when the price crosses above the lower volatility band, indicating that the market may have been oversold or is experiencing a reversal to the upside. Conversely, a short entry is triggered when the price crosses below the upper volatility band, suggesting overbought conditions or a potential market downturn.
These entry signals are consistent with the mean reversion theory, which asserts that asset prices tend to revert to their long-term average after deviating from it. According to Poterba and Summers (1988), mean reversion occurs due to overreaction to news or temporary disturbances, leading to price corrections.
The exit condition is based on the number of bars that have elapsed since the entry signal. Specifically, positions are closed after a predefined number of bars, typically set to seven bars, reflecting a short-term trading horizon. This exit mechanism is in line with short-term momentum trading strategies discussed in literature, where traders capitalize on price movements within specific timeframes (Jegadeesh & Titman, 1993).
Market Adaptability
One of the key features of this strategy is its dynamic nature, as it adapts to the changing volatility environment. The volatility bands automatically adjust to market conditions, expanding in periods of high volatility and contracting when volatility decreases. This dynamic adjustment helps the strategy remain robust across different market regimes, as it is capable of identifying both trend-following and mean-reverting opportunities.
This dynamic adaptability is supported by the adaptive market hypothesis (Lo, 2004), which posits that market participants evolve their strategies in response to changing market conditions, akin to the adaptive nature of biological systems.
References:
Black, F., & Scholes, M. (1973). The Pricing of Options and Corporate Liabilities. Journal of Political Economy, 81(3), 637-654.
Bollinger, J. (1980). Bollinger on Bollinger Bands. Wiley.
Jegadeesh, N., & Titman, S. (1993). Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency. Journal of Finance, 48(1), 65-91.
Lo, A. W. (2004). The Adaptive Markets Hypothesis: Market Efficiency from an Evolutionary Perspective. Journal of Portfolio Management, 30(5), 15-29.
Poterba, J. M., & Summers, L. H. (1988). Mean Reversion in Stock Prices: Evidence and Implications. Journal of Financial Economics, 22(1), 27-59.
Multi-Asset Ratio (20 vs 5) - LuchapThis indicator calculates and displays the ratio between the sum of the prices of several base assets and the sum of the prices of several quote assets. You can select up to 20 base assets and 5 quote assets, and enable or disable each asset individually to refine your analysis. This ratio allows you to quickly evaluate the relative performance of different groups of assets.
ATR Trailing Stop by GideonMATR Trailing Stop Indicator
This ATR Trailing Stop Indicator is designed for traders who wish to enhance their exit strategies by leveraging volatility-based stops. It offers a systematic approach to trend management and risk control, enabling traders to capture extended trends while protecting their capital during market reversals. Works on Indian Indices as well.
Overview:
The ATR Trailing Stop indicator is a dynamic trend-following tool that adjusts stop levels based on market volatility. By incorporating the Average True Range (ATR), the indicator provides a flexible exit strategy that adapts to changing market conditions, helping traders lock in profits during trends and limit losses during reversals.
How It Works:
True Range and ATR Calculation:
The indicator first calculates the True Range (TR) for each bar, defined as the maximum of:
The difference between the high and low,
The absolute difference between the high and the previous close, and
The absolute difference between the low and the previous close.
Using the TR values, the ATR is computed over a user-defined period (default is 14 bars) with an option to use either a Simple Moving Average (SMA) or an Exponential Moving Average (EMA) as the smoothing method.
Trailing Stop Determination:
Two potential stop levels are calculated:
For an uptrend, the stop is determined as:
Stop = Close – (Multiplier × ATR)
For a downtrend, the stop is:
Stop = Close + (Multiplier × ATR)
The indicator maintains a persistent trailing stop that dynamically adjusts:
In an uptrend, the trailing stop only moves upward (or remains flat) to secure gains.
In a downtrend, it only moves downward, thereby protecting the position from excessive losses.
A reversal in trend is identified when the price crosses the trailing stop level, at which point the indicator flips the trend and resets the stop level accordingly.
Rationale:
Utilizing the ATR for trailing stops ensures that the stop levels are directly influenced by market volatility. This dynamic adjustment helps accommodate the natural price fluctuations of the market, providing a more adaptive risk management tool compared to fixed stop-loss levels. The approach is particularly useful in volatile markets where traditional static stops might be triggered prematurely.
Customization:
Key parameters that can be adjusted include:
ATR Period: The number of bars used to calculate the ATR.
ATR Multiplier: The factor that determines how far the trailing stop is set from the current price.
Smoothing Method: Option to choose between SMA and EMA for ATR calculation, allowing traders to tailor the sensitivity of the indicator to their specific trading style.