Djay Strategy with EMA Crossover and Sideways FilterDjay Strategy with EMA Crossover and Sideways Filter
Bands and Channels
Opening RangeGrabs 30 sec opening/closing range data, must have premium subscription to do so, if not only 1 minute opening/closing range is possible.
Look at the opening range of the first 30 seconds at 9:30:00 to 9:30:30 I use that as the baseline for positioning. I look to be long above or short below that price range.
If we are above yesterday’s closing range and we trend above the current opening range I look for a trend day which is around 20% of trading days
If we are in between those levels we are likely in a range bound consolidation and which is the majority of trading days.
From: x.com
Inspiration for indicator: Wicky
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.
Customized VWAP + Signals + Session Dashboard📊 What This Indicator Does
Plots a custom VWAP line (based on the current session)
Calculates RSI (from the same timeframe)
Gives buy/sell signals based on VWAP + RSI logic
Shows a clean live dashboard on the right side of your screen with:
Current price
VWAP value
RSI value
Trading session (Asian, London, NY, etc.)
Signal (BUY / SELL / No Signal)
🛠 How It Works (Logic Behind Signals)
Signal Type Conditions
🔵 Buy Price crosses above VWAP AND RSI is below 30 (oversold = possible bottom)
🔴 Sell Price crosses below VWAP AND RSI is above 70 (overbought = possible top)
This is a mean-reversion style strategy — buying dips near VWAP and selling tops, using RSI as exhaustion confirmation.
📈 How To Use It On Your Chart
Apply the indicator to a chart like Gold (XAUUSD) or any asset you like.
Use a short-term timeframe (1m, 5m, 15m, 1 hour) and for intraday trades or scalping.
Watch the dashboard on the right:
Green = Buy signal triggered
Red = Sell signal triggered
Gray = No signal
Understand the VWAP Line
This is the volume-weighted average price since the start of the day.
It resets daily.
Green VWAP means price is trading above (bullish bias).
Red VWAP means price is trading below (bearish bias).
🟢 BUY SIGNAL:
Triggered when price crosses above the VWAP and
RSI is rising over the last 2 candles (momentum confirmation)
🔴 SELL SIGNAL:
Triggered when price crosses below the VWAP and
RSI is falling over the last 2 candles
These signals are momentum-based VWAP reversals or continuations.
Use the Dashboard
You’ll see the live dashboard on the right center:
📈 Price
📊 VWAP
📉 RSI
🕒 Session (Asian, London, NY, Sydney)
🟢/🔴 Signal Status
Use it as a quick glance tool for market bias and signal clarity.
🧠 Best Practices
Combine with price action: Look for structure, candle patterns, or support/resistance near VWAP.
Trade in the direction of trend: Use a higher timeframe EMA or VWAP trend bias for confluence.
Avoid ranging markets: In sideways markets, VWAP gets chopped and signals may be false.
Like this indicator? Boost it ♥
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.
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.
Zig Zag Channels + Pivots + Live Price LabelThis script visualizes a Zig Zag indicator combined with:
Channel boundaries based on max price deviation,
Pivot point markers, and
A live price label extending to the right of the chart.
It’s intended for trend analysis, showing swings, potential reversals, and visual cues for extreme movements.
RSI and MA Band📊 RSI with Gradient Fill
🔧 Features:
1) Two Customizable RSIs
-RSI1 (default length: 5)
-RSI2 (default length: 21)
Both are calculated separately and displayed in black.
2) Dynamic Gradient Fill between RSI1-RSI2 and MA1-MA2
Helps visually identify divergence and convergence behavior between the RSIs.
3) Overbought and Oversold Zones with Visual Gradients
✅ Classic Zones:
-Overbought above 70
-Oversold below 30
✅ Extended Zones:
-Extreme Overbought above 85
-Extreme Oversold below 15
Horizontal Support/Resistance Lines for RSI
Lines at 15, 30, 50, 70, and 85 clearly mark RSI ranges.
4) Moving Averages on RSI:
Ability to enable two MAs on RSI1 and RSI2:
-Selectable type (SMA, EMA, SMMA, WMA, VWMA)
-Customizable lengths
-Displayed in yellow.
5) Fill Between MAs
Highlights divergence or alignment between moving averages applied to RSI.
6) Crossover Detection with Visual Indicators
🟣 Purple triangles when RSI1 crosses RSI2.
🟢 Green triangles when MA1 crosses MA2.
-------------------------------------------- --------------------------------------------
1) Identifying Trend Strength or Potential Reversals
2) Crossovers between RSI1 and RSI2 may indicate short-term momentum shifts.
3) Gradient fills help easily visualize significant divergences.
4) Entry/Exit SL and TP Signals
5) Overbought/Oversold zones (especially extended ones) offer early signals for possible reversals or sideways phases.
6) Momentum Filtering with Moving Averages
7) Smooths out RSI "noise" and reveals more sustained RSI trends.
8) MA crossovers provide stronger confirmation of momentum.
9) Dual RSIs + gradients + colored zones allow for quick market state interpretation at a glance, without visual clutter.
-----🌟 Extremely intuitive and trader-friendly visual representation — built for quick decisions without sacrificing depth.-----
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.
Trading Sessions (Modified Range)📝 Description of Modifications – Trading Sessions (Modified Range)
Modified by:
✅ Key Enhancements:
1. 📊 Live Session Range Delta Analysis
New metric added:
The difference (Δ vs Avg) between the current session's range and the average range over a user-defined lookback period (lookbackDays).
Displayed dynamically as the session evolves — allowing traders to evaluate volatility in real time.
2. 🎨 Delta-Based Label Coloring
The label text color changes based on the delta value:
🔴 Red if the session range is below average
🟢 Green if it's above average
⚪ Gray if unchanged
Offers immediate visual feedback on current volatility conditions.
3. 🧾 Expanded Label Content
The session label now includes:
- Range in ticks and points
- Average session price
- Average session range over lookbackDays
- Live delta in both absolute and percentage terms
4. 🔁 Cleaner Object Creation
The SessionDisplay.new(...) constructor was restructured into a single-line format to resolve Pine Script v6 syntax restrictions
🙏 Acknowledgment:
All credit to the original author of this session indicator for building a clean and modular architecture that made extension and enhancement possible. The original script provided a robust and readable foundation for visualization of trading sessions.
This modified version aims only to extend its utility, not to replace it. Without the clear object-oriented design and maintainable structure of the original, these enhancements would not have been as seamless to implement.
— With appreciation,
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.
Trading Sessions (Modified)📝 Description of Modifications – Trading Sessions Indicator
Modified by:
✅ Key Enhancements:
1. 📊 Live Session Range Delta Analysis
Calculates the real-time difference between the current session's range and the historical average range over a user-defined lookback period (lookbackDays)
2. Presented in both points and percentage terms
3. 🎨 Dynamic Color Coding
The label text color changes based on the delta:
🟢 Green when the range is above average
🔴 Red when it's below average
⚪ Gray when unchanged
4. 🧾 Rich Session Label Content
Displays:
- Session range (ticks and points)
- Average session price
- Average range over lookback period
- Real-time delta to average range
- Session name
🙏 Acknowledgment:
Special thanks and credit to the original developer of this session indicator. Your well-structured, modular script made this expansion possible.
The modifications introduced here aim to extend your great work — not to replace it.
🚀 Support This Work
If you find this enhanced indicator useful, consider giving it a boost.
That small gesture helps bring visibility to thoughtful, utility-driven tools in the TradingView community.
— With respect,
Trading Sessions (Modified)📝 Description of Modifications – Trading Sessions Indicator
Modified by:
✅ Key Enhancements:
1. 📊 Live Session Range Delta Analysis
Calculates the real-time difference between the current session's range and the historical average range over a user-defined lookback period (lookbackDays)
2. Presented in both points and percentage terms
3. 🎨 Dynamic Color Coding
The label text color changes based on the delta:
🟢 Green when the range is above average
🔴 Red when it's below average
⚪ Gray when unchanged
4. 🧾 Rich Session Label Content
Displays:
- Session range (ticks and points)
- Average session price
- Average range over lookback period
- Real-time delta to average range
- Session name
🙏 Acknowledgment:
Special thanks and credit to the original developer of this session indicator. Your well-structured, modular script made this expansion possible.
The modifications introduced here aim to extend your great work — not to replace it.
🚀 Support This Work
If you find this enhanced indicator useful, consider giving it a boost.
That small gesture helps bring visibility to thoughtful, utility-driven tools in the TradingView community.
— With respect,
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.
Darvas Box (Close-based)This indicator builds Darvas Boxes using the closing prices of candles instead of their wicks (highs/lows).
It looks back over a set number of candles (default 5)
Finds the highest close and lowest close
Draws a box between these two levels on the chart
Helps identify consolidation zones and potential breakout points based on stable price closes
It’s a cleaner and more reliable version of the classic Darvas Box, especially useful in choppy markets where wicks are noisy.