Dynamic Trend Bands [ChartPrime]The Dynamic Trend Bands is a versatile trend-following indicator that uses a double-smoothed Hull Moving Average (HMA) to detect market trends, combined with dynamic bands that provide insight into potential momentum shifts and volatility-based price zones.
⯁ KEY FEATURES
Double HMA Trend Filter
Utilizes a double-smoothed HMA for a smoother and more responsive trend line, reducing noise while highlighting clear market trends.
float base = ta.hma(ta.hma(close, length - 10), length)
Dynamic Volatility Bands
Plots upper and lower bands based on volatility, positioned above the price in a downtrend and below the price in an uptrend.
Momentum Shift Detection
Highlights bars in orange when a potential momentum shift occurs:
- During a downtrend, if the high breaks above the upper band.
- During an uptrend, if the low breaks below the lower band.
Customizable Band Appearance
Users can adjust the size, distance, and colors of the bands, as well as choose whether to display the mid-band line and fill the area between bands.
Timeframe Flexibility
Allows selection of different calculation timeframes, enabling traders to adapt the indicator to various trading strategies.
⯁ HOW TO USE
Identify Trend Direction
Use the double HMA line to confirm the prevailing trend:
- Above the bands: downtrend.
- Below the bands: uptrend.
Spot Potential Momentum Shifts
Watch for orange-highlighted bars signaling potential reversals or weakening trends.
Optimize Entries and Exits
Enter trades on trend continuation signals while using band breaks to spot potential reversal zones.
Customize to Fit Your Strategy
Adjust the bands’ size, distance, and calculation timeframe to suit scalping, swing, or position trading.
⯁ CONCLUSION
The Dynamic Trend Bands is an all-in-one tool that helps traders assess trend strength, detect momentum shifts, and identify key price zones. Its customizable features make it adaptable for various trading styles and market conditions.
Bands and Channels
Highest/Lowest Range in TimeframeThis script helps traders visually identify the highest high and lowest low within a customizable range of recent bars.
🔍 Key Features
Scans the last 100 to 1000 bars (user-defined)
Automatically detects:
The highest wick (high) and lowest wick (low)
Draws dotted green horizontal lines at both levels
Shows a label indicating the percentage range between high and low
Displays real-time high and low price labels directly on the chart
⚙️ Use Cases
Quickly spot price extremes over your desired time window
Visually measure market range and volatility
Identify breakout potential or reversal zones
✅ How to Use
Add the script to your chart.
Set the “Bars to Scan” input to your desired lookback period (between 100–1000).
Use the displayed lines and labels to identify key high/low price levels and range metrics.
Dynamic Strong Support & ResistanceThis Pine Script dynamically identifies strong support and strong resistance levels based on significant pivot points in the market. It calculates the high and low points of previous candles within a specified lookback period and marks these levels as key support (green) and resistance (red) areas. The script visually plots these levels on the chart and adds labels for easy reference, helping traders spot potential reversal zones and key price levels for market analysis.
Strong Support & ResistanceThis Pine Script dynamically identifies strong support and strong resistance levels based on significant pivot points in the market. It calculates the high and low points of previous candles within a specified lookback period and marks these levels as key support (green) and resistance (red) areas. The script visually plots these levels on the chart and adds labels for easy reference, helping traders spot potential reversal zones and key price levels for market analysis.
MACD & Stochastic AlertThis code detects if the following combination has occured in the chart
if MACD has crossed over MACD Signal in the last 4 candles
and
whether the Fast Stochastic K% has exited the channel 80 & 23
Then you can set an alert based on the function call.
Support & Resistance Breakout StrategyThis Support & Resistance Breakout Strategy automatically identifies key price levels using pivot highs and lows over a configurable lookback period. It plots support (green) and resistance (red) lines directly on the chart and removes them dynamically when the price breaks through. The script also provides optional labeling for easier visual reference. It’s designed to help traders spot potential breakout opportunities and key decision zones.
Forex Overwiew True Strenght IndexNew oscillator for all currencies—I’m about to add NOK, SEK, and other lower-volume currencies that are interesting due to their lack of correlation with the major ones.
MA backgroundAllows you to use various MAs with % bands set as a background. What it does is divides the % range selected into 1/4's and colors the bottom 1/4 green (your choice) and the top 1/4 red (your choice) then it stacks these ranges above and below the initial selected range. Screenshot is sma 16 but you can do session vwap with .1% measured moves, etc. I use it as a background under some other indicators but you can use it standalone for a pretty clean chart. It's an experiment...
M2 Global Liquidity Index X Days DeltaCapture the delta between different global M2 time lags, and utilize width to increase or decrease the span between the two.
Moving AveragesUseful moving averages packed in a single indicator:
- 50 and 200 Simple Moving Averages
- 8, 13, 21, and 34 Exponential Moving Averages
Enhanced Bollinger Bands📈 *Enhanced Bollinger Bands – Custom Indicator*
This custom indicator is a more flexible and informative version of the traditional *Bollinger Bands*, designed to help traders better visualize price volatility, trend direction, and breakout signals.
---
🔍 Key Features:
✅ *Multiple Moving Average Options*
Choose between:
- *SMA (Simple Moving Average)*
- *EMA (Exponential Moving Average)*
- *WMA (Weighted Moving Average)*
This allows you to tailor the indicator to your trading strategy.
✅ *Dynamic Bands Based on Volatility*
The upper and lower bands are calculated using a user-defined standard deviation multiplier, showing volatility around the selected moving average.
✅ *Color-Coded Trend Visualization*
The bands change color based on the slope of the moving average:
- 🟢 *Green* when the trend is up
- 🔴 *Red* when the trend is down
- ⚪ *Gray* when the trend is flat
This helps traders visually confirm trend direction.
✅ *Optional Band Fill*
You can enable a shaded area between the upper and lower bands, making it easier to identify *volatility squeezes* and *expansions*.
✅ *Breakout Signal Arrows*
Automatic signal arrows appear when:
- 📈 Price *crosses above* the upper band (potential breakout)
- 📉 Price *crosses below* the lower band (potential breakdown)
These signals can help spot strong momentum entries.
---
⚙️ Inputs:
- *MA Type:* SMA / EMA / WMA
- *Length:* Period for the moving average and standard deviation
- *Multiplier:* Standard deviation multiplier for band width
- *Source:*Price source (default: close)
- *Toggle Fill:* Turn band fill on/off
- *Toggle Signals:* Show or hide breakout arrows
---
🧠 How to Use:
- Use band *tightening* as a sign of low volatility (possible breakout setup).
- Use band *expansion* to confirm high momentum moves.
- Use signal arrows for early entries on momentum plays.
- Combine with RSI, MACD, or volume indicators for confluence.
---
Let me know if you want to write a version tailored for publishing on TradingView, including tags and disclaimers.
ONE RING 8 MA Bands with RaysCycle analysis tool ...
MAs: Eight moving averages (MA1–MA8) with customizable lengths, types (RMA, WMA, EMA, SMA), and offsets
Bands: Upper/lower bands for each MA, calculated based on final_pctX (Percentage mode) or final_ptsX (Points mode), scaled by multiplier
Rays: Forward-projected lines for bands, with customizable start points, styles (Solid, Dashed, Dotted), and lengths (up to 500 bars)
Band Choices
Manual: Uses individual inputs for band offsets
Uniform: Sets all offsets to base_pct (e.g., 0.1%) or base_pts (e.g., 0.1 points)
Linear: Scales linearly (e.g., base_pct * 1, base_pct * 2, base_pct * 3 ..., base_pct * 8)
Exponential: Scales exponentially (e.g., base_pct * 1, base_pct * 2, base_pct * 4, base_pct * 8 ..., base_pct * 128)
ATR-Based: Offsets are derived from the Average True Range (ATR), scaled by a linear factor. Dynamic bands that adapt to market conditions, useful for breakout or mean-reversion strategies. (final_pct1 = base_pct * atr, final_pct2 = base_pct * atr * 2, ..., final_pct8 = base_pct * atr * 8)
Geometric: Offsets follow a geometric progression (e.g., base_pct * r^0, base_pct * r^1, base_pct * r^2, ..., where r is a ratio like 1.5) This is less aggressive than Exponential (which uses powers of 2) and provides a smoother progression.
Example: If base_pct = 0.1, r = 1.5, then final_pct1 = 0.1%, final_pct2 = 0.15%, final_pct3 = 0.225%, ..., final_pct8 ≈ 1.71%
Harmonic: Offsets are based on harmonic flavored ratios. final_pctX = base_pct * X / (9 - X), final_ptsX = base_pts * X / (9 - X) for X = 1 to 8 This creates a harmonic-like progression where offsets increase non-linearly, ensuring MA8 bands are wider than MA1 bands, and avoids duplicating the Linear choice above.
Ex. offsets for base_pct = 0.1: MA1: ±0.0125% (0.1 * 1/8), MA2: ±0.0286% (0.1 * 2/7), MA3: ±0.05% (0.1 * 3/6), MA4: ±0.08% (0.1 * 4/5), MA5: ±0.125% (0.1 * 5/4), MA6: ±0.2% (0.1 * 6/3), MA7: ±0.35% (0.1 * 7/2), MA8: ±0.8% (0.1 * 8/1)
Square Root: Offsets grow with the square root of the band index (e.g., base_pct * sqrt(1), base_pct * sqrt(2), ..., base_pct * sqrt(8)). This creates a gradual widening, less aggressive than Linear or Exponential. Set final_pct1 = base_pct * sqrt(1), final_pct2 = base_pct * sqrt(2), ..., final_pct8 = base_pct * sqrt(8).
Example: If base_pct = 0.1, then final_pct1 = 0.1%, final_pct2 ≈ 0.141%, final_pct3 ≈ 0.173%, ..., final_pct8 ≈ 0.283%.
Fibonacci: Uses Fibonacci ratios (e.g., base_pct * 1, base_pct * 1.618, base_pct * 2.618
Percentage vs. Points Toggle:
In Percentage mode, bands are calculated as ma * (1 ± (final_pct / 100) * multiplier)
In Points mode, bands are calculated as ma ± final_pts * multiplier, where final_pts is in price units.
Threshold Setting for Slope:
Threshold setting for determining when the slope would be significant enough to call it a change in direction. Can check efficiency by setting MA1 to color on slope temporarily
Arrow table: Shows slope direction of 8 MAs using an Up or Down triangle, or shows Flat condition if no triangle.
MACD dong pha 2 cap do W/DInstructions for use:
_ Green area: Weekly and Daily MACD are both in the Positive zone
_ Red area: Weekly and Daily MACD are both in the Negative zone
Adaptive ATR LimitsThis script plots adaptive ATR limits for intraday trading. It is intended for equities. It is not tested for other securities like futures, crypto, etc, though it may work for these too. It works for both regular trading hours and extended trading hours.
The limit lines (top and bottom) are always exactly 1 ATR/ADR apart. This is a key feature of the indicator.
The main mode is ATR, which includes overnight gaps and pre- and post-market movements. This also means the previous day close is considered to part of the current days range (which aligns with the definition of ATR). There is also an ADR mode, which uses the average range the price moves within regular hours only and is not affected by prices outside of these. Other than that, they work the same (including ATR/ADR length option and smoothing).
When in ADR mode, it treats premarket as a separate session from the regular/post-market and resets the session range at the regular market open. This is so it can plot the limits in the regular/post-market hours without being affected by the pre-market range. This is necessary since the daily ADR includes only regular market moves and due to the way the limits adapt.
It tries to plot the most sensible ATR limits based on the current daily ATR, in order to provide a visual target for how far a price could/should move intraday. In order to do this, it uses two methods to calculate limits, i) based on the mid-point of the current session range, and ii) based on the currently established range and current relative price position within that range.
The session starts using the first method. As more of the ATR is covered in the session, it transitions over of the second method. Once (if) the full ATR is covered within the session, it will have completely transitioned to the second method and will only use that for the rest of the session. In between these states, a weighted average of the two methods is used depending on the amount of the ATR the session has covered.
To explain the effect, as an example, imagine that the price is approaching the full ATR range on the high side. The indicator will have almost fully transitioned to the second (relative) method. The lower ATR limit will now be anchored to the daily low as the price hits the upper ATR limit. If the price goes beyond the upper ATR, the lower ATR limit will stay anchored to the daily low, and the upper limit will stay anchored to 1 ATR above the lower limit. This allows you to see how far the price is going beyond the upper ATR limit. If the price then returns and backs off the upper ATR limit, the lower ATR limit will un-anchor from the daily low (it will actually rise since the daily ATR range has been exceeded so the lower ATR limit needs to come up since the actual daily range can't fit into the ATR range anymore). The overall effect is to give you the best visual indication where the price is in relation to a possible upper ATR-based target. Reverse this example for when price low approaches the ATR range on the low side.
There is also a "basic mode" which simply plots 1 ATR/ADR above/below the session low/high. When using ADR, the session resets at the end of the pre-market.
The ATR length (averaging period) can be set (number of days), as well as a visual smoothing of the ATR limits using EMA.
HL2 Moving Average with BandsThis indicator is designed to assist traders in identifying potential trade entries and exits for S&P 500 (ES) and Nasdaq-100 (NQ) futures. It calculates a Simple Moving Average (SMA) based on the HL2 value (average of high and low prices) of the current candle over a user-defined lookback period (default: 200 periods). The indicator plots this SMA as a blue line, providing a smoothed reference for price trends.
Additionally, it includes upper and lower bands calculated as a percentage (default: 0.5%) above and below the SMA, plotted as green and red lines, respectively. These bands act as dynamic thresholds to identify overbought or oversold conditions. The indicator generates trade signals based on price action relative to these bands:
Long Entry: A green upward triangle is plotted below the candle when the close crosses above the upper band, signaling a potential buy.
Close Long: A red square is plotted above the candle when the close crosses back below the upper band, indicating an exit for the long position.
Short Entry: A red downward triangle is plotted above the candle when the close crosses below the lower band, signaling a potential sell.
Close Short: A green square is plotted below the candle when the close crosses back above the lower band, indicating an exit for the short position.
The script is customizable, allowing users to adjust the SMA length and band percentage to suit their trading style or market conditions. It is plotted as an overlay on the price chart for easy integration with other technical analysis tools.
Recommended Time Frame and Settings for Trading S&P 500 and Nasdaq-100 Futures
Based on research and market dynamics for S&P 500 (ES) and Nasdaq-100 (NQ) futures, the 5-minute chart is recommended as the optimal time frame for day trading with this indicator. This time frame strikes a balance between capturing intraday trends and filtering out excessive noise, which is critical for futures trading due to their high volatility and leverage. The 5-minute chart aligns well with periods of high liquidity and volatility, such as the U.S. market open (9:30 AM–11:00 AM EST) and the afternoon session (2:00 PM–4:00 PM EST), when institutional traders are most active.
Why 5-minute? It allows traders to react to short-term price movements while avoiding the rapid fluctuations of 1-minute charts, which can be prone to false signals in choppy markets. It also provides enough data points to make the SMA and bands meaningful without the lag associated with longer time frames like 15-minute or hourly charts.
Recommended Settings
SMA Length: Set to 200 periods. This longer lookback period smooths the HL2 data, reducing noise and providing a reliable trend reference for the 5-minute chart. A 200-period SMA helps identify significant trend shifts without being overly sensitive to minor price fluctuations.
Band Percentage: 0.5% is more suitable for the volatility of ES and NQ futures on a 5-minute chart, as it generates fewer but higher-probability signals. Wider bands (e.g., 1%) may miss short-term opportunities, while narrower bands (e.g., 0.1%) may produce excessive false signals.
Trading Session Recommendations
Futures markets for ES and NQ are open nearly 24 hours (Sunday 6:00 PM EST to Friday 5:00 PM EST, with a daily break from 4:00 PM–5:00 PM EST), but not all hours are equally optimal due to varying liquidity and volatility. The best times to trade with this indicator are:
U.S. Market Open (9:30 AM–11:00 AM EST): This period is characterized by high volume and volatility, driven by the opening of U.S. equity markets and economic data releases (e.g., 8:30 AM EST reports like CPI or GDP). The indicator’s signals are more reliable during this window due to strong order flow and price momentum.
Afternoon Session (2:00 PM–4:00 PM EST): After the lunchtime lull, volume picks up as institutional traders return, and news or FOMC announcements often drive price action. The indicator can capture breakout moves as prices test the upper or lower bands.
Pre-Market (7:30 AM–9:30 AM EST): For traders comfortable with lower liquidity, this period can offer opportunities, especially around 8:30 AM EST economic releases. However, use tighter risk management due to wider spreads and potential volatility spikes.
Additional Tips
Avoid Low-Volume Periods: Steer clear of trading during low-liquidity hours, such as the overnight session (11:00 PM–3:00 AM EST), when spreads widen and price movements can be erratic, leading to false signals from the indicator.
Combine with Other Tools: Enhance the indicator’s effectiveness by pairing it with support/resistance levels, Fibonacci retracements, or volume analysis to confirm signals. For example, a long entry signal above the upper band is stronger if it coincides with a breakout above a key resistance level.
Risk Management: Given the leverage in futures (e.g., Micro E-mini contracts require ~$1,200 margin for ES), use tight stop-losses (e.g., below the lower band for longs or above the upper band for shorts) to manage risk. Aim for a risk-reward ratio of at least 1:2.
Test Settings: Backtest the indicator on a demo account to optimize the SMA length and band percentage for your specific trading style and risk tolerance. Micro E-mini contracts (MES for S&P 500, MNQ for Nasdaq-100) are ideal for testing due to their lower capital requirements.
Why These Settings and Time Frame?
The 5-minute chart with a 200-period SMA and 0.5% bands is tailored for the volatility and liquidity of ES and NQ futures during peak trading hours. The longer SMA period ensures the indicator captures meaningful trends, while the 0.5% bands are tight enough to signal actionable breakouts but wide enough to avoid excessive whipsaws. Trading during high-volume sessions maximizes the likelihood of valid signals, as institutional participation drives clearer price action.
By focusing on these settings and time frames, traders can leverage the indicator to capitalize on the dynamic price movements of S&P 500 and Nasdaq-100 futures while managing the inherent risks of these markets.
Uptrend Filter: Price > 50 & 200 MA + Upward SlopeThis indicator is designed to help traders instantly identify strong uptrend conditions based on two simple yet powerful criteria:
Price is above both the 50-day and 200-day moving averages
Both moving averages are sloping upward (positive momentum)
When both conditions are met, the indicator plots a green “UP” label below the candle, signaling a valid uptrend setup. This filter is ideal for asset selection in strategy-building, portfolio rotation, or trend-following systems.
🧠 Why it works:
The 50-day MA reflects medium-term momentum.
The 200-day MA represents the long-term trend.
When both are aligned and sloping upward, it confirms strong market structure and trend health.
🧰 Best used for:
Token screening (e.g., filtering altcoins)
Momentum-based entries
Trend confirmation
Risk filtering in strategy backtesting
FVG Overlap Zone (4H ∩ Daily) with Touch Hammerhis script is designed to help smart money / ICT-style traders identify high-probability trade zones formed by the overlap of 4-hour and Daily Fair Value Gaps (FVGs).
It then alerts the trader when price touches these overlap zones, showing a 🔨 hammer icon to visually mark them for live trades or backtesting.
Color Coded EMAThis updated EMA indicator provides a visual indication of momentum and potential reversal zones based on price action relative to the moving average.
When the closing price is above the EMA, the plot turns green
When the closing price is below the EMA, the plot turns red
Dynamic RSI Regression Bands (Zeiierman)█ Overview
The Dynamic RSI Regression Bands (Zeiierman) is a regression channel tool that dynamically resets based on RSI overbought and oversold conditions. It adapts to trend shifts in real time, creating a highly responsive regression framework that visualizes market sentiment and directional momentum with every RSI-triggered event.
Unlike static regression models, this indicator recalibrates its slope and deviation bands only after the RSI crosses predefined thresholds, helping traders pinpoint new phases of momentum, exhaustion, or reversal.
You’re not just measuring the trend — you’re tracking when and where the trend deserves to be re-evaluated.
█ The Assumption:
"A major momentum shift (RSI crossing OB/OS) signals a potential regime change, and thus, the trend model should be recalibrated from that point."
Instead of using a fixed-length regression (which assumes trend relevance over a static window), this script resets the regression calculation every time RSI crosses into extreme territory. The underlying idea is that extreme RSI levels often represent emotional peaks in market behavior and are statistically likely to be followed by a new price structure.
█ How It Works
⚪ RSI-Based Channel Reset
RSI is monitored continuously
If RSI crosses above the Overbought level, the indicator resets and starts a new regression channel
If RSI crosses below the Oversold level, the same reset logic applies
These events act as “anchor points” for dynamic trend analysis
⚪ Regression Channel Logic
A custom linear regression is calculated from the RSI reset point forward
The lookback grows with each bar after the reset, up to a user-defined max
Regression lines are drawn from the reset point to the current bar
⚪ Standard Deviation Bands
Upper and lower bands are plotted around the regression line using the standard deviation
These serve as dynamic volatility envelopes, great for spotting breakouts or reversals
⚪ Rejection Markers
If price hits the upper/lower band and then closes back inside it, a rejection marker is plotted
Helps visualize failed breakouts and areas of absorption or reversal pressure
█ How to Use
⚪ Detect Trend Shifts
Use the RSI resets to identify when the trend might be starting fresh.
⚪ Watch the Bands for Volatility Extremes
Use the outer bands as soft areas of potential reversal or momentum breakout.
⚪ Spot Rejections for Potential Entry Signals
If price moves outside a band but then quickly returns inside, it often means the breakout failed, and price may reverse.
█ Settings Explained
RSI Length – How many bars RSI uses. Shorter = faster.
OB / OS Levels – Crossing these triggers a regression reset.
Base Regression Length – Max number of bars regression can use post-reset.
StdDev Multiplier – Controls band width from the regression line.
Min Bars After Reset – Ensures channel doesn’t form immediately; waits for structure.
Show Reset Markers – Triangles mark where RSI crossed OB/OS.
Show Rejection Markers – Circles mark where the price rejected the channel edge.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Daily ATR BandsATR Finder – Volatility Scanner for Smarter Trade Setups
The ATR Finder is a precision tool designed to help traders quickly identify high-volatility assets using the Average True Range (ATR) – a key metric in assessing market momentum and potential breakout zones. By automatically scanning and highlighting tickers or candles with elevated ATR values relative to their recent historical range, this indicator helps you filter for setups that are more likely to experience significant price moves.
Whether you're a day trader seeking intraday momentum or a swing trader looking for setups with strong follow-through potential, the ATR Finder cuts through the noise and visually signals which assets are "on the move." It can be paired with other indicators or price action tools to create a high-conviction trading strategy focused on volatility expansion.
Key Features:
Dynamic ATR Calculation over a user-defined period
Visual Alerts or Color-Coding for above-threshold volatility spikes
Supports Multiple Timeframes for both short- and long-term volatility analysis
Great for spotting breakout opportunities, gap continuations, or trend reversals
Use the ATR Finder to stay ahead of price action and build a watchlist that moves with purpose. Perfect for scalpers, breakout traders, and anyone who respects the power of volatility.
Trading Session Highs and LowsTrading Session Highs and Lows
This script provides an intuitive way to visualize key market levels from major trading sessions: Asia, London, New York, and New York Close. By automatically plotting the high and low of each session, it helps traders quickly identify important price levels that could impact market behavior.
Features include:
Session Marking: The script marks the high and low for each major session (Asia, London, New York, and New York Close).
Customizable Lines and Labels: You can adjust the line style, width, and color for each session’s high/low markers. The session name (e.g., "London", "New York") and the PDH/PDL (Prior Day High and Low) are also shown to give clear context.
Real-Time Updates: The levels are updated in real-time to reflect the current price action, helping you gauge price movement throughout the trading day.
Customizable Indicators: Easily adjust the visibility of the different sessions and the labels to focus on the session that matters most to your trading strategy.
This tool is designed to help day traders spot important levels for potential breakouts or reversals, making it easier to base your trading decisions on well-established price points. Ideal for scalpers, swing traders, and anyone who trades across multiple sessions.