EMA 10x20 CrossRecommended to use in 4H or above
"The EMA 10x20 Cross Indicator is a clean, efficient tool to help traders identify trend changes using two exponential moving averages (EMAs).
This script plots:
A fast EMA (10-period) in green
A slow EMA (20-period) in red
Blue circles at crossover points (appearing directly on the EMA 20 line for easy spotting)
Unlike complex indicators, this keeps your chart clutter-free while providing clear visual signals for potential trend reversals. Whether you're a day trader, swing trader, or long-term investor, this classic EMA crossover strategy helps you:
✔ Catch early trend shifts
✔ Filter out minor price noise
✔ Improve entry & exit timing
Simply add it to your chart and let the blue circles guide your next trade! 🚀
Customize lengths in inputs if needed—works on any timeframe!"
Trend Analysis
Breakout/Breakdown Trading IndicatorThe Breakout/Breakdown Trading Indicator is designed to identify key market levels and highlight potential breakout and breakdown opportunities. This tool helps traders track market structure and dynamically adapt to price action.
🔹 Key Features:
✅ Automatic Support & Resistance Detection – Identifies strong price zones based on historical highs and lows.
✅ Breakout & Breakdown Alerts – Recognizes when price moves beyond critical levels, signaling potential trend shifts.
✅ Volume Confirmation (Optional) – Ensures that breakouts and breakdowns are supported by sufficient volume, reducing false signals.
✅ Customizable Parameters – Allows traders to fine-tune the lookback period and confirmation criteria for better adaptability.
✅ Seamless Chart Integration – Works smoothly on all timeframes and assets, from stocks to crypto and forex.
🔹 How It Works:
1️⃣ The indicator dynamically tracks support & resistance levels based on historical price action.
2️⃣ When the price crosses above resistance or below support, it detects a potential breakout or breakdown.
3️⃣ If enabled, volume confirmation filters out weak moves, helping traders focus on high-probability setups.
4️⃣ The indicator ensures real-time tracking and adapts to market changes efficiently.
🔹 Ideal For:
✔️ Traders looking for a structured way to identify breakout and breakdown levels
✔️ Those who prefer volume-backed price action signals
✔️ Scalpers, day traders, and swing traders who rely on dynamic support & resistance zones
🔹 Customization & Flexibility:
🛠️ Adjust lookback periods and confirmation bars for tailored results
🎨 Visually appealing support & resistance lines for enhanced chart clarity
⚡ Lightweight and optimized for smooth performance on TradingView
📌 Tip: Use this indicator alongside other confluences like trendlines, moving averages, or candlestick patterns to improve trade accuracy!
HOSSA High-Low LevelsHOSSA High-Low Levels – How It Works and How to Use It
The HOSSA High-Low Levels indicator gives you three different ways to plot key price levels on your chart, all based on a higher timeframe candle you select. It can help you spot important support and resistance zones, potential expansion levels, or key reference points (high, low, open, close) to aid in your technical analysis.
1. Modes of Operation
Resistance
In this mode, the indicator measures the range between the previous candle’s high and low (on your chosen higher timeframe).
It then projects multiple lines above and below that range (both “positive” and “negative” expansions).
This allows you to visualize potential resistance/support areas at intervals like +25%, +50%, +100%, -25%, -50%, etc., relative to that candle’s range.
Fibonacci
This mode also takes the candle’s high and low, then applies Fibonacci retracement and extension levels (including negative extensions).
You’ll see levels such as 0.236, 0.382, 0.5, 0.618, 1.272, 1.618, and more plotted on your chart.
These can be useful for identifying potential reversal or continuation zones based on Fibonacci theory.
High-Low-Open-Close
In this simpler mode, the script plots just four lines at the higher timeframe candle’s high, low, open, and close.
This gives you clean reference levels for intraday trading or any lower timeframe analysis.
2. Selecting Your Higher Timeframe
Higher Timeframe Input: The script uses the high, low, open, and close of the candle from the timeframe you choose (default is 240 minutes, i.e., 4 hours).
These reference points form the basis of how the indicator calculates its lines in each mode.
3. How to Use It in Your Analysis
Detect Potential Support/Resistance
In Resistance or Fibonacci mode, look for price reactions around these plotted lines. If price stalls or reverses, those levels may act as support or resistance.
Identify Trade Targets and Stop Areas
Projected lines (especially in Resistance or Fibonacci mode) can serve as logical areas for placing stop-loss or take-profit orders.
Combine with Price Action
If using High-Low-Open-Close, you might watch for breakouts or bounces near the higher timeframe candle’s open/close.
Combining these key levels with candlestick patterns or volume can enhance your conviction for entries or exits.
Multi-Timeframe Context
While your main chart might be on a shorter timeframe (e.g., 15 minutes), the lines from a higher timeframe candle (e.g., 4 hours) add valuable “bigger picture” context to refine your trades.
4. Tips for Best Practice
Experiment with Different Timeframes: If the 4-hour candle levels aren’t aligning well with your style, consider daily or weekly candles to see broader market structure.
Color Coding: The script automatically colors lines based on their significance in each mode (e.g., highs in one color, lows in another). This makes it easier to quickly identify critical price references.
Alert Combinations: Although this script doesn’t directly create alerts, you can combine it with TradingView’s alert system (e.g., “Crossing” a plotted level) to get notified if price tests a key zone.
By using HOSSA High-Low Levels, you’ll have a flexible tool to easily project important price lines on your chart – whether those lines are expansions of a range, Fibonacci retracements and extensions, or simply the previous candle’s high, low, open, and close. This can help you trade more confidently by giving you clear, higher timeframe reference points.
Request to Share My Work
Dear Users,
I kindly ask for your support in sharing my work with your friends and networks. Every like, share, or recommendation is extremely valuable to me and helps reach a wider audience.
I would be immensely grateful for any form of support and engagement! Thanks to your help, I can continue developing this project and bring more ideas to life.
With sincere appreciation,
TICK Bias Timer with EMA Position📌 Description
This indicator tracks the time in minutes that the Exponential Moving Average (EMA) of the NYSE USI:TICK remains above or below the zero line. It serves as a powerful market breadth confirmation tool to support your intraday directional bias.
Rather than focusing on momentary TICK spikes, this tool emphasizes duration and persistence of buying/selling pressure across the entire NYSE – helping traders stay on the right side of the flow.
🔧 Features
✅ Measures how long the EMA of TICK stays above or below 0
✅ Visual plots of upward and downward pressure duration (in minutes)
✅ Background color changes based on EMA position relative to 0
✅ Automatic daily reset at a customizable time (e.g. 15:30 for RTH open)
✅ Gap filter to avoid spikes during overnight or weekend sessions
✅ Clean, minimalist design – built for real-time decision making
🎯 How to Use
EMA > 0 for 10+ minutes → sustained bullish breadth → intraday bullish bias
EMA < 0 for 10+ minutes → sustained bearish breadth → intraday bearish bias
Frequent flip between sides → uncertain or choppy market → trade with caution
Can be used in confluence with Volume Profile, VWAP, price action, and Bookmap to reinforce trade setups.
💡 Ideal For:
Scalpers looking for flow confirmation
Day traders who want to filter fake strength/weakness
Professionals using TICK, USI:ADD , USI:VOLD , and other internals for decision-making
SPY Scalping Strategy (9 EMA & 21 EMA)Confluence the trade with 4hr/15m bias direction. Use Vwap as part of your entry. Above vwap (bullish) / Below ( bearish) then wait for price to pull back to 21ema on a 5m timeframe. Make sure 9ema is above 21ema for bullish trade and below for bearish trade.
Cartera SuperTrends v4 PublicDescription
This script creates a screener with a list of ETFs ordered by their average ROC in three different periods representing 4, 6 and 8 months by default. The ETF
BIL
is always included as a reference.
The previous average ROC value shows the calculation using the closing price from last month.
The current average ROC value shows the calculation using the current price.
The previous average column background color represents if the ETF average ROC is positive or negative.
The current average column background color represents if the ETF average ROC is positive or negative.
The current average column letters color represents if the current ETF average ROC is improving or not from the previous month.
Changes from V2 to V3
Added the option to make the calculation monthly, weekly or daily
Changes from V3 to V4
Adding up to 25 symbols
Highlight the number of tickers selected
Highlight the sorted column
Complete refactor of the code using a matrix of arrays
Options
The options available are:
Make the calculation monthly, weekly or daily
Adjust Data for Dividends
Manual calculation instead of using ta.roc function
Sort table
Sort table by the previous average ROC or the current average ROC
Number of tickers selected to highlight
First Period in months, weeks or days
Second Period in months, weeks or days
Third Period in months, weeks or days
Select the assets (max 25)
Usage
Just add the indicator to your favorite indicators and then add it to your chart.
US30 1-min Strategy with TP/SL, Grades, Alerts🟢 Grade A (Strongest)
• Candle is very large (body is 2x the 20-bar average)
• Volume rising
• RSI strongly confirms direction (RSI > 55 or < 45)
🟠 Grade B (Moderate)
• Candle is large
• Volume rising
• RSI confirms trend (but not as strong as A)
🟡 Grade C (Weak)
• Candle is large
• Volume rising or RSI confirms (not both)
You can select which grades to trade (A, B, C) from the strategy settings.
💰 Risk Management
• Take Profit: Default = 0.5%
• Stop Loss: Default = 0.3%
TP and SL are applied as percentage of entry price. You can adjust both in the strategy settings.
Trade Alerts & Visuals
• Labels appear on the chart when a trade is triggered (green for longs, red for shorts, with grade label)
• Alerts are sent using the alert() function, which you can link to popups, emails, or mobile notifications via TradingView
🧭 Strategy Use Case
This strategy is ideal for:
• Scalping US30 during high-volume sessions
• Traders who prefer rules-based setups with clear grading and confirmation
• Running backtests in TradingView with risk controls and performance analysis
SENEE Buy Sell Signal Easy to use:
Buy signal has appeared >>> open long position
Sell signal has appeared >>> open short position
Green ext signal has appeared >>> close long position
Red ext signal has appeared >>> close short position
The colour is an analysis of the trend:
Green bars >>> Up trend
Red bars >>> Down trend
White bars >>> side way
Blue bars >>> Overbought
Orange bars >>> Oversold
How to be setting:
Candles period is Calculation range >>> up to you
Overbought oversold sensitivity is Sensitivity of calculation of
Overbought and Oversold zone
Signal sensitivity is Sensitivity of calculation of Buy,Sell and ext signals
///// Good luck /////
TheStrat: Failed 2'sThis indicator identifies and highlights Failed 2-Up (2U) and Failed 2-Down (2D) patterns in The Strat trading framework. These patterns signal a potential reversal when a 2-Up (higher high) or 2-Down (lower low) candle fails to follow through and reverses, offering high-probability trade setups.
Relative Strength Indicator## ✨RS✨ by Mars: Advanced Relative Strength Indicator
This indicator solves the primary weakness of traditional RS tools: excessive choppiness and false signals. By combining three calculation methods (ratio, performance, or logarithmic comparison) with dynamic filtering techniques, it identifies true trend changes and stock leadership with significantly higher reliability.
### Key Features:
- Multi-timeframe strength analysis (default 10, 21, 63, and 200-period measurements)
- Dynamic signal line with customizable crossing alerts
- Clear visualization with color-coded fills and special crossover signals
- Reversal detection system using momentum and line convergence
- RSI-like scaling (0-100) for easier interpretation with special crossings on overbought and oversold zones.
### Trading Applications:
- Filter out market noise to identify genuine sector/asset leadership shifts
- Eliminate false signals through the convergence of multiple confirmation factors (momentum, proximity, signal crossovers)
- Detect high-probability reversals only when multiple conditions align, reducing premature entries
- Use special signals (bright triangles) for high-confidence entry/exit points when crossovers occur in extreme zones
- Monitor trend reliability through multi-timeframe RS strength percentages
Unlike conventional RS indicators that produce frequent whipsaws, this tool waits for confluent signals across multiple factors. The combination of smoothed RS readings, signal line convergence, and multi-timeframe analysis creates a comprehensive system for identifying market leadership with dramatically reduced false signals. Perfect for rotation strategies and sector allocation decisions where reliability matters more than frequency.
Video:
Advanced Swing High/Low Trend Lines with MA Filter# Advanced Swing High/Low Trend Lines Indicator
## Overview
This advanced indicator identifies and draws trend lines based on swing highs and lows across three different timeframes (large, middle, and small trends). It's designed to help traders visualize market structure and potential support/resistance levels at multiple scales simultaneously.
## Key Features
- *Multi-Timeframe Analysis*: Simultaneously tracks trends at large (200-bar), middle (100-bar), and small (50-bar) scales
- *Customizable Visualization*: Different colors, widths, and styles for each trend level
- *Trend Confirmation System*: Requires minimum consecutive pivot points to validate trends
- *Trend Filter Option*: Can align trends with 200 EMA direction for consistency
## Recommended Settings
### For Long-Term Investors:
- Large Swing Length: 200-300
- Middle Swing Length: 100-150
- Small Swing Length: 50-75
- Enable Trend Filter: Yes
- Confirmation Points: 4-5
### For Swing Traders:
- Large Swing Length: 100
- Middle Swing Length: 50
- Small Swing Length: 20-30
- Enable Trend Filter: Optional
- Confirmation Points: 3
### For Day Traders:
- Large Swing Length: 50
- Middle Swing Length: 20
- Small Swing Length: 5-10
- Enable Trend Filter: No
- Confirmation Points: 2-3
## How to Use
### Identification:
1. *Large Trend Lines* (Red/Green): Show major market structure
2. *Middle Trend Lines* (Purple/Aqua): Intermediate levels
3. *Small Trend Lines* (Orange/Blue): Short-term price action
### Trading Applications:
- *Breakout Trading*: Watch for price breaking through multiple trend lines
- *Bounce Trading*: Look for reactions at confluence of trend lines
- *Trend Confirmation*: Aligned trends across timeframes suggest stronger moves
### Best Markets:
- Works well in trending markets (forex, indices)
- Effective in higher timeframes (1H+)
- Can be used in ranging markets to identify boundaries
## Customization Tips
1. For cleaner charts, reduce line widths in congested markets
2. Use dotted styles for smaller trends to reduce visual clutter
3. Adjust confirmation points based on market volatility (higher for noisy markets)
## Limitations
- May repaint on current swing points
- Works best in trending conditions
- Requires sufficient historical data for longer swing lengths
This indicator provides a comprehensive view of market structure across multiple timeframes, helping traders make more informed decisions by visualizing the hierarchy of support and resistance levels.
SMA & EMA Trend IndicatorIndicator that will use SMA and EMA to determine the price direction. The logic is:
If EMA (fast) is above SMA (slow) → uptrend (up arrow).
If EMA is below SMA → downtrend (down arrow).
Advanced Trading Metrics DashboardThe Advanced Trading Metrics Dashboard provides traders with a comprehensive set of key market metrics in an elegant, easy-to-read format. This professional-grade indicator combines five critical trading metrics into one unified dashboard:
ADX (14): Measures trend strength with color-coded ratings
Volatility: Displays ATR as a percentage with visual classification
Volume Ratio: Analyzes buy/sell volume balance with bullish/bearish indicators
Trend: Evaluates overall market trend using EMA alignment, RSI, and MACD
Breakout: Detects and rates potential breakout opportunities
Each metric includes a visual bar chart, precise value, and qualitative rating to help you make informed trading decisions at a glance. The indicator features both a detailed data table and plot lines with appropriate scaling.
Perfect for day traders, swing traders, and technical analysts who need a quick overview of market conditions without cluttering their charts.
Customize colors and thresholds to match your trading strategy. Built with optimized Pine Script code for reliable performance.
Buy on 5% dip strategy with time adjustment
This script is a strategy called "Buy on 5% Dip Strategy with Time Adjustment 📉💡," which detects a 5% drop in price and triggers a buy signal 🔔. It also automatically closes the position once the set profit target is reached 💰, and it has additional logic to close the position if the loss exceeds 14% after holding for 230 days ⏳.
Strategy Explanation
Buy Condition: A buy signal is triggered when the price drops 5% from the highest price reached 🔻.
Take Profit: The position is closed when the price hits a 1.22x target from the average entry price 📈.
Forced Sell Condition: If the position is held for more than 230 days and the loss exceeds 14%, the position is automatically closed 🚫.
Leverage & Capital Allocation: Leverage is adjustable ⚖️, and you can set the percentage of capital allocated to each trade 💸.
Time Limits: The strategy allows you to set a start and end time ⏰ for trading, making the strategy active only within that specific period.
Code Credits and References
Credits: This script utilizes ideas and code from @QuantNomad and jangdokang for the profit table and algorithm concepts 🔧.
Sources:
Monthly Performance Table Script by QuantNomad:
ZenAndTheArtOfTrading's Script:
Strategy Performance
This strategy provides risk management through take profit and forced sell conditions and includes a performance table 📊 to track monthly and yearly results. You can compare backtest results with real-time performance to evaluate the strategy's effectiveness.
The performance numbers shown in the backtest reflect what would have happened if you had used this strategy since the launch date of the SOXL (the Direxion Daily Semiconductor Bull 3x Shares ETF) 📅. These results are not hypothetical but based on actual performance from the day of the ETF’s launch 📈.
Caution ⚠️
No Guarantee of Future Results: The results are based on historical performance from the launch of the SOXL ETF, but past performance does not guarantee future results. It’s important to approach with caution when applying it to live trading 🔍.
Risk Management: Leverage and capital allocation settings are crucial for managing risk ⚠️. Make sure to adjust these according to your risk tolerance ⚖️.
Short-Term Volume + MACD Trend Indicator
### How It Works
1. **VROC (Volume Rate of Change)**:
- Tracks short-term volume momentum (5-bar default).
- Positive VROC (>5%) supports uptrends; negative VROC (<-5%) supports downtrends.
2. **VMA (Volume Moving Average)**:
- 10-period SMA of volume.
- Volume > VMA confirms trend strength; volume ≤ VMA leans toward sideways.
3. **MACD**:
- Uses faster settings (9, 21, 5) for short-term responsiveness (vs. standard 12, 26, 9).
- `macdLine > signalLine` signals bullish momentum; `macdLine < signalLine` signals bearish momentum.
4. **Trend Logic**:
- **Uptrend (Green)**: MACD bullish (macdLine > signalLine) + volume > VMA + VROC > 5% → Strong buying momentum.
- **Downtrend (Red)**: MACD bearish (macdLine < signalLine) + volume > VMA + VROC < -5% → Strong selling momentum.
- **Sideways (Gray)**: Any condition where uptrend or downtrend criteria aren’t fully met (e.g., MACD flat, volume low, or VROC neutral).
5. **Visualization**:
- Plots volume, VMA, VROC, and MACD histogram for reference.
- Background colors (green, red, gray) highlight trends.
---
### Why This Improves Signals
- **MACD Filter**: Adds momentum confirmation, reducing false signals from volume alone (e.g., a volume spike without price movement won’t trigger an uptrend).
- **Volume Confirmation**: Ensures trends have participation (volume > VMA), filtering out weak MACD signals.
- **Short-Term Focus**: Faster MACD settings (9, 21, 5) and short VROC (5 bars) align with 1-minute or 5-minute chart dynamics.
---
### How to Use It
1. **Setup**:
- Paste the code into TradingView’s Pine Editor, save, and add to a 1-minute or 5-minute chart.
2. **Interpretation**:
- **Green (Uptrend)**: Look for long entries, especially if price breaks resistance or aligns with a fast EMA (e.g., 9-period).
- **Red (Downtrend)**: Consider shorts or exits, particularly on support breaks.
- **Gray (Sideways)**: Avoid trend trades; wait for a breakout or use range strategies.
3. **Confirmation**:
- Pair with price action (e.g., candlestick patterns) or a 9-EMA for stronger signals.
- Example: Green + price above 9-EMA = high-probability uptrend.
---
### Customization
- **1-Minute Scalping**:
- Set `vrocLength = 3`, `macdFast = 5`, `macdSlow = 13`, `macdSignal = 3` for ultra-fast signals.
- **5-Minute Trading**:
- Keep defaults or increase `vrocThreshold` to 10% for stricter momentum.
- **Sensitivity**:
- Lower `vmaLength` to 5 for quicker volume response; raise `vrocThreshold` to 8% for stronger trends.
---
### Example (5-Minute Chart)
- **Uptrend**: Price rises, MACD crosses above signal, volume > VMA, VROC at 7% → Green background.
- **Downtrend**: Price drops, MACD below signal, volume > VMA, VROC at -8% → Red background.
- **Sideways**: Price flattens, MACD near signal, volume < VMA, VROC at 2% → Gray background.
This combo gives you a robust short-term indicator with better signal quality. Test it on your chart, and let me know if you want tweaks—like adding buy/sell volume separation or adjusting thresholds!
CyclePulse MomentumCyclePulse Momentum
Overview
CyclePulse Momentum is a powerful, adaptable indicator designed to identify momentum shifts and cyclic reversals across any asset—stocks, forex, cryptocurrencies, and more. By integrating a Cyclic Smoothed RSI (cRSI) with an innovative auto-detected dominant cycle, this tool delivers precise, market-tuned signals for traders seeking to capitalize on price and volume dynamics.
How It Works
Momentum Signals (Green/Red Triangles)
Green Triangles (Below Bars): Signal bullish momentum when volume exceeds a dynamic threshold (default 1.5x the 10-period average) and price rises significantly (default ≥1.5%) or volume momentum spikes (>20% over 5 bars).
Red Triangles (Above Bars): Signal bearish momentum under the same conditions with a price drop.
These highlight high-impact moves driven by volume and price surges.
cRSI Band Crossovers (Diamonds)
Light Turquoise Diamonds (Below Bars): cRSI crosses up through the low band, indicating a potential bullish reversal from oversold territory.
Light Purple Diamonds (Above Bars): cRSI crosses down through the high band, suggesting a bearish reversal from overbought levels.
Bands adapt dynamically to market conditions, enhancing reversal precision.
cRSI 25% Level Signals (Yellow X and Circle)
Yellow X (Above Bars): cRSI crosses below the 25% level under the high band, marking an early bearish pullback.
Yellow Circle (Below Bars): cRSI crosses above the 25% level over the low band, signaling an early bullish recovery.
These provide early warnings of momentum shifts within the cycle.
Auto Dominant Cycle Advantage
The standout feature is the auto-detected dominant cycle length, which adjusts between 10 and 40 bars based on real-time peak and trough analysis (50-bar lookback). Unlike fixed-cycle indicators, this adapts to each asset’s unique rhythm, making triggers—triangles, diamonds, and X’s/circles—significantly more accurate by aligning with the market’s natural tempo. A white number (e.g., "18") appears above bars when the cycle changes, keeping you informed without clutter.
Usage Tips
Momentum Trading: Use green/red triangles to catch strong trends or reversals.
Cycle Timing: Leverage turquoise/purple diamonds for high-probability reversal points, enhanced by the auto-cycle’s precision.
Early Entries: Yellow X’s and circles offer advance signals for momentum shifts.
Customization: Adjust thresholds for your asset—lower (e.g., 1.0) for stocks, higher (e.g., 2.0) for volatile crypto. Pair with support/resistance for confirmation.
Settings
Use Auto Dominant Cycle Length: Enable (default) for adaptive, accurate triggers; disable for a fixed cycle (default 20).
Base Volume Threshold: Default 1.5—tweak for signal frequency.
Base Price Change % Threshold: Default 1.5%—adjust to asset volatility.
Volume Momentum Lookback: Default 5—shorten for faster signals, lengthen for smoother ones.
Show cRSI Band Crossovers: Enable (default) for cRSI signals; disable for simplicity.
Why It Stands Out
The auto dominant cycle sets CyclePulse Momentum apart by dynamically syncing with market waves, ensuring triggers hit when they matter most. Whether you’re scalping on 15M or swinging on 1D, this indicator adapts to deliver sharper, more reliable insights.
Fourier Trend Energy (Prototype)Fourier Trend Energy (Prototype)
This indicator brings the logic of Fourier-based trend analysis into Pine Script.
It estimates two key components:
Low-Frequency Energy — representing the strength of the underlying trend
High-Frequency Energy — representing noise, volatility, or deviation from the trend
🔹 Green line → trend strength
🔸 Orange line → short-term noise
🟩🟥 Background color → shows whether trend energy is increasing or decreasing
You can use it to:
Detect early trend formation
Filter fakeouts during consolidation
Spot momentum shifts based on energy crossovers
This is not a traditional oscillator — it’s a frequency-inspired tool to help you understand when the market is charging for a move.
Dynamic Trend Indicator (DTI) - VWAP FilterThe Dynamic Trend Indicator (DTI) with VWAP Filter is a trend-following indicator.
It aims to identify and follow market trends while minimizing false signals in choppy or ranging markets.
The DTI combines a dynamically adjusted Exponential Moving Average (EMA) with a daily Volume Weighted Average Price (VWAP) confirmation filter and a cooldown mechanism to enhance signal reliability. This indicator is particularly useful for traders on intraday timeframes (e.g., 4-hour charts) who want to align their trades with the broader daily trend while avoiding whipsaws.
Key Features:
Dynamic Trend Line:
The core of the DTI is a trend line calculated using a custom EMA that adjusts its period dynamically based on market conditions.
The period of the EMA is determined by a combination of volatility (measured via ATR) and trend strength (measured via price momentum). In strong trends, the period shortens for faster responsiveness; in weak or ranging markets, it lengthens to reduce noise.
An optional smoothing EMA can be applied to the dynamic trend line to further reduce noise, with a user-defined smoothing length.
Daily VWAP Confirmation Filter:
A daily VWAP is calculated to provide a higher-timeframe trend bias. VWAP represents the average price paid for an asset during the day, weighted by volume, and is often used as a benchmark by institutional traders.
Buy signals are only generated when the price is above the daily VWAP (indicating a bullish daily bias), and sell signals are only generated when the price is below the VWAP (indicating a bearish daily bias).
The VWAP resets at the start of each day, ensuring it reflects the current day’s trading activity.
Cooldown Mechanism:
To prevent rapid signal reversals (whipsaws), the indicator includes a cooldown period between signals. After a buy or sell signal is generated, no new signals can be generated for a user-defined number of bars (default: 5 bars).
This helps filter out noise in choppy markets, ensuring signals are spaced out and more likely to align with significant trend changes.
Visual Elements:
Trend Line: Plotted on the chart, colored green when the price is above (uptrend) and red when below (downtrend). A gray color indicates a neutral trend.
Buy/Sell Signals: Displayed as green triangles below the bar for buy signals and red triangles above the bar for sell signals.
Background Coloring: The chart background is shaded green during uptrends and red during downtrends, providing a quick visual cue of the trend direction.
Daily VWAP Line: Optionally plotted as a purple step line, allowing traders to see the VWAP level and its relationship to the price.
Alerts:
The indicator includes built-in alerts for buy and sell signals, triggered when the price crosses the trend line and satisfies the VWAP filter and cooldown conditions.
Alert messages specify whether the signal is a buy or sell and confirm that the VWAP condition was met (e.g., "DTI Buy Signal: Price crossed above trend line and VWAP").
Input Parameters
Base Length (default: 14): The base period for calculating volatility and trend strength, used to adjust the dynamic EMA period.
Volatility Multiplier (default: 1.5): Adjusts the sensitivity of the dynamic period to market volatility (via ATR).
Trend Threshold (default: 0.5): Controls the sensitivity of the dynamic period to trend strength (via price momentum).
Use Smoothing (default: true): Enables/disables smoothing of the trend line with an additional EMA.
Smoothing Length (default: 3): The period for the smoothing EMA, if enabled.
Cooldown Bars (default: 5): The minimum number of bars between consecutive signals, reducing signal frequency in choppy markets.
Show Daily VWAP (default: true): Toggles the display of the daily VWAP line on the chart.
How It Works
Dynamic Trend Line Calculation:
Volatility is measured using the Average True Range (ATR) over the base length, scaled by the volatility multiplier.
Trend strength is calculated as the absolute price momentum (change in price over the base length) divided by the volatility factor.
The dynamic EMA period is adjusted based on the trend strength: stronger trends result in a shorter period (faster response), while weaker trends result in a longer period (more stability). The period is constrained between 5 and 50 to avoid extreme values.
A custom EMA function is used to handle the dynamic period, as Pine Script’s built-in ta.ema() requires a fixed length. The trend line is optionally smoothed with a secondary EMA.
Signal Generation:
A buy signal is generated when the price crosses above the trend line, the price is above the daily VWAP, and the cooldown period has elapsed.
A sell signal is generated when the price crosses below the trend line, the price is below the daily VWAP, and the cooldown period has elapsed.
The cooldown mechanism ensures that signals are not generated too frequently, reducing false signals in ranging markets.
Daily VWAP Calculation:
The VWAP is calculated by accumulating the price-volume product (close * volume) and total volume for the day, resetting at the start of each new day.
The VWAP is then computed as the cumulative price-volume divided by the cumulative volume, providing a volume-weighted average price for the day.
Usage
Timeframe: Best suited for intraday timeframes (e.g., 1-hour, 4-hour) where the daily VWAP provides a higher-timeframe trend bias. It can also be used on daily charts with adjustments to the cooldown period.
Markets: Works well in trending markets (e.g., forex, crypto, stocks) where the dynamic trend line can capture sustained price movements. The VWAP filter helps align signals with the daily trend, making it effective for assets with clear daily biases.
Trading Strategy:
Buy: Enter a long position when a green triangle (buy signal) appears, indicating the price has crossed above the trend line and is above the daily VWAP.
Sell: Enter a short position (or exit a long) when a red triangle (sell signal) appears, indicating the price has crossed below the trend line and is below the daily VWAP.
Use the trend line and VWAP as dynamic support/resistance levels to set stop-losses or take-profit targets.
Backtesting: Use TradingView’s strategy tester to evaluate the indicator’s performance on your chosen market and timeframe, adjusting parameters like cooldown_bars and volatility_mult to optimize for profitability.
Example
On a 4-hour SOLUSDT chart, the DTI with VWAP Filter might show:
An uptrend with the price above the green trend line and above the daily VWAP, generating buy signals as the price continues to rise.
A downtrend where the price falls below the red trend line and the daily VWAP, generating sell signals that align with the bearish daily bias.
During choppy periods, the cooldown mechanism and VWAP filter reduce false signals, ensuring trades are taken only when the price aligns with the daily trend.
Limitations
Lagging Nature: Like all trend-following indicators, the DTI may lag during sharp price reversals, as the dynamic EMA needs time to adjust.
Ranging Markets: While the VWAP filter and cooldown mechanism reduce whipsaws, the indicator may still generate some false signals in strongly ranging markets. Combining it with a trend strength filter (e.g., ADX) can help.
VWAP Dependency: The effectiveness of the VWAP filter depends on the market’s respect for the daily VWAP as a support/resistance level. In markets with low volume or erratic price action, the VWAP may be less reliable.
Potential Improvements
VWAP Buffer: Add a percentage buffer around the VWAP (e.g., require the price to be 1% above/below) to further reduce noise.
Multi-Timeframe VWAP: Incorporate a weekly VWAP for additional trend confirmation on longer timeframes.
Trend Strength Filter: Add an ADX filter to ensure signals are generated only during strong trends (e.g., ADX > 25).
Pullback or Breakout Alert (LONG + SHORT)📌 Pullback or Breakout Alert (LONG + SHORT)
This script is designed to identify two key trading scenarios:
Pullbacks within a trending market (both bullish and bearish)
Breakouts beyond Bollinger Bands (both upward and downward)
It provides real-time alerts and visual markers on the chart for both setups, supporting long and short-side opportunities.
🔍 How it works:
✅ Pullback signals:
Long Pullback: Price is above the 200 SMA and RSI drops below a user-defined oversold level.
Short Pullback: Price is below the 200 SMA and RSI rises above a user-defined overbought level.
🚨 Breakout signals:
Breakout Up: Price closes above the upper Bollinger Band.
Breakout Down: Price closes below the lower Bollinger Band.
⚙️ Inputs & Customization:
200-period SMA (trend filter)
RSI length and thresholds for overbought/oversold
Bollinger Bands settings (length and deviation)
Optional Heikin Ashi candle source for smoothing
📈 Visual Aids:
SMA and Bollinger Bands are plotted on chart.
Signal markers:
🔼 Green triangle below bar = Long pullback
🔽 Red triangle above bar = Short pullback
🟧 Orange labels = Breakout up/down
🔔 Alerts:
4 separate alerts can be created:
Pullback LONG
Pullback SHORT
Breakout UP
Breakout DOWN
Each alert is triggered once per bar close for precision and noise reduction.
RSI Divergence Strategy - Visible SignalsThis script identifies bullish and bearish RSI divergences with highly visible signals:
🔹 Bullish Divergence: Price makes a lower low while RSI makes a higher low (Oversold)
🔹 Bearish Divergence: Price makes a higher high while RSI makes a lower high (Overbought)
Features:
✅ Large visual signals (triangles + background highlights)
✅ Adjustable RSI & lookback periods
✅ Debug table to verify calculations
✅ Works on all timeframes (best on 1H-4H)
Ideal for: Swing trading, reversals, and confirmation with price action.
Try it on:
BTC,EURUSD, or any liquid asset.
Tip: Reduce lookback for scalping, increase for swing trades.
ACCURATE TREND LEVELS - TABLE PSv6.1Accurate Trend Level Indicator
Description:
The "Accurate Trend Level" indicator is a powerful tool designed to identify market trends and potential reversals with precision. Built on the concept (foundation) of Swing Highs and Swing Lows, this indicator easily detects uptrends and downtrends, providing traders with clear signals for trend continuation or reversal. Whether you are a swing trader or a trend follower, this indicator offers customization options to suit your trading style.
Key Features:
Trend Identification: Accurately identifies uptrends and downtrends based on Swing High and Swing Low points. This indicator provides signals for Up after Down and Down after Up.
Percentage Adjustment: Includes a customizable percentage factor that reduces false signals and helps identify accurate and strong trends.
Trend Table: Displays essential data in a table, such as:
Last and running Trend Position (Uptrend/Downtrend)
Date and Time of the last and running trend change
Reversal Level (price level for the next potential trend change)
Max. Run-up feature is also provided, which shows how much the market has moved according to the trend.
How It Works:
The indicator analyzes price action using Swing Highs and Lows to determine the current trend direction. A user-defined percentage threshold filters out minor fluctuations, ensuring only significant trends are highlighted. The table provides a quick snapshot of the latest trend data, while reversal levels help traders anticipate the next move.
Cumulative Histogram TickThis script is designed to create a cumulative histogram based on tick data from a specific financial instrument. The histogram resets at the start of each trading session, which is defined by a fixed time.
Key Components:
Tick Data Retrieval:
The script fetches the closing tick values from the specified instrument using request.security("TICK.NY", timeframe.period, close). This line ensures that the script works with the tick data for each bar on the chart.
Session Start and End Detection:
Start Hour: The script checks if the current bar's time is 9:30 AM (hour == 9 and minute == 30). This is used to reset the cumulative value at the beginning of each trading session.
End Hour: It also checks if the current bar's time is 4:00 PM (hour == 16). However, this condition is used to prevent further accumulation after the session ends.
Cumulative Value Management:
Reset: When the start hour condition is met (startHour), the cumulative value (cumulative) is reset to zero. This ensures that each trading session starts with a clean slate.
Accumulation: For all bars that are not at the end hour (not endHour), the tick value is added to the cumulative total. This process continues until the end of the trading session.
Histogram Visualization:
The cumulative value is plotted as a histogram using plot.style_histogram. The color of the histogram changes based on whether the cumulative value is positive (green) or negative (red).
Usage
This script is useful for analyzing intraday market activity by visualizing the accumulation of tick data over a trading session. It helps traders identify trends or patterns within each session, which can be valuable for making informed trading decisions.
Buy and Sell Signals (London & New York Opens)this is the indicator only helpful in 5 min time frame when previous day candle is in sell direction only take sell signal as entry uncheck buy option in settings and when previous day candle is in buy direction only take buy signal then uncheck sell option risk is swing high reward is 2 times to risk