RSI ROC Signals with Price Action# RSI ROC Signals with Price Action
## Overview
The RSI ROC (Rate of Change) Signals indicator is an advanced momentum-based trading system that combines RSI velocity analysis with price action confirmation to generate high-probability buy and sell signals. This indicator goes beyond traditional RSI analysis by measuring the speed of RSI changes and requiring price confirmation before triggering signals.
## Core Concept: RSI Rate of Change (ROC)
### What is RSI ROC?
RSI ROC measures the **velocity** or **acceleration** of the RSI indicator, providing insights into momentum shifts before they become apparent in traditional RSI readings.
**Formula**: `RSI ROC = ((Current RSI - Previous RSI) / Previous RSI) × 100`
### Why RSI ROC is Superior to Standard RSI:
1. **Early Momentum Detection**: Identifies momentum shifts before RSI reaches traditional overbought/oversold levels
2. **Velocity Analysis**: Measures the speed of momentum changes, not just absolute levels
3. **Reduced False Signals**: Filters out weak momentum moves that don't sustain
4. **Dynamic Thresholds**: Adapts to market volatility rather than using fixed RSI levels
5. **Leading Indicator**: Provides earlier signals compared to traditional RSI crossovers
## Signal Generation Logic
### 🟢 Buy Signal Process (3-Stage System):
#### Stage 1: Trigger Activation
- **RSI ROC** > threshold (default 7%) - RSI accelerating upward
- **Price ROC** > 0 - Price moving higher
- Records the **trigger high** (highest point during trigger)
#### Stage 2: Invalidation Check
- Signal invalidated if **RSI ROC** drops below negative threshold
- Prevents false signals during momentum reversals
#### Stage 3: Confirmation
- **Price breaks above trigger high** - Price action confirmation
- **Current candle is green** (close > open) - Bullish price action
- **State alternation** - Ensures no consecutive duplicate signals
### 🔴 Sell Signal Process (3-Stage System):
#### Stage 1: Trigger Activation
- **RSI ROC** < negative threshold (default -7%) - RSI accelerating downward
- **Price ROC** < 0 - Price moving lower
- Records the **trigger low** (lowest point during trigger)
#### Stage 2: Invalidation Check
- Signal invalidated if **RSI ROC** rises above positive threshold
- Prevents false signals during momentum reversals
#### Stage 3: Confirmation
- **Price breaks below trigger low** - Price action confirmation
- **Current candle is red** (close < open) - Bearish price action
- **State alternation** - Ensures no consecutive duplicate signals
## Key Features
### 🎯 **Smart Signal Management**
- **State Alternation**: Prevents signal clustering by alternating between buy/sell states
- **Trigger Invalidation**: Automatically cancels weak signals that lose momentum
- **Price Confirmation**: Requires actual price breakouts, not just momentum shifts
- **No Repainting**: Signals are confirmed and won't disappear or change
### ⚙️ **Customizable Parameters**
#### **RSI Length (Default: 14)**
- Standard RSI calculation period
- Shorter periods = more sensitive to price changes
- Longer periods = smoother, less noisy signals
#### **Lookback Period (Default: 1)**
- Period for ROC calculations
- 1 = compares to previous bar (most responsive)
- Higher values = smoother momentum detection
#### **RSI ROC Threshold (Default: 7%)**
- Minimum RSI velocity required for signal trigger
- Lower values = more signals, potentially more noise
- Higher values = fewer but higher-quality signals
### 📊 **Visual Signals**
- **Green Arrow Up**: Buy signal below price bar
- **Red Arrow Down**: Sell signal above price bar
- **Clean Chart**: No additional lines or oscillators cluttering the view
- **Size Options**: Customizable arrow sizes for visibility preferences
## Advantages Over Traditional Indicators
### vs. Standard RSI:
✅ **Earlier Signals**: Detects momentum changes before RSI reaches extremes
✅ **Dynamic Thresholds**: Adapts to market conditions vs. fixed 30/70 levels
✅ **Velocity Focus**: Measures momentum speed, not just position
✅ **Better Timing**: Combines momentum with price action confirmation
### vs. Moving Average Crossovers:
✅ **Leading vs. Lagging**: RSI ROC is forward-looking vs. backward-looking MAs
✅ **Volatility Adaptive**: Automatically adjusts to market volatility
✅ **Fewer Whipsaws**: Built-in invalidation logic reduces false signals
✅ **Momentum Focus**: Captures acceleration, not just direction changes
### vs. MACD:
✅ **Price-Normalized**: RSI ROC works consistently across different price ranges
✅ **Simpler Logic**: Clear trigger/confirmation process vs. complex crossovers
✅ **Built-in Filters**: Automatic signal quality control
✅ **State Management**: Prevents over-trading through alternation logic
## Trading Applications
### 📈 **Trend Following**
- Use in trending markets to catch momentum continuations
- Combine with trend filters for directional bias
- Excellent for breakout strategies
### 🔄 **Swing Trading**
- Ideal timeframes: 4H, Daily, Weekly
- Captures major momentum shifts
- Perfect for position entries/exits
### ⚡ **Scalping (Advanced Users)**
- Lower timeframes: 1m, 5m, 15m
- Reduce threshold for more frequent signals
- Combine with volume confirmation
### 🎯 **Momentum Strategies**
- Perfect for momentum-based trading systems
- Identifies acceleration phases in trends
- Complements breakout and continuation patterns
## Optimization Guidelines
### **Conservative Settings (Lower Risk)**
- RSI Length: 21
- ROC Threshold: 10%
- Lookback: 2
### **Standard Settings (Balanced)**
- RSI Length: 14 (default)
- ROC Threshold: 7% (default)
- Lookback: 1 (default)
### **Aggressive Settings (Higher Frequency)**
- RSI Length: 7
- ROC Threshold: 5%
- Lookback: 1
## Best Practices
### 🎯 **Entry Strategy**
1. Wait for signal arrow confirmation
2. Consider market context (trend, support/resistance)
3. Use proper position sizing based on volatility
4. Set stop-loss below/above trigger levels
### 🛡️ **Risk Management**
1. **Stop Loss**: Place beyond trigger high/low levels
2. **Position Sizing**: Use 1-2% risk per trade
3. **Market Context**: Avoid counter-trend signals in strong trends
4. **Time Filters**: Consider avoiding signals near major news events
### 📊 **Backtesting Recommendations**
1. Test on multiple timeframes and instruments
2. Analyze win rate vs. average win/loss ratio
3. Consider transaction costs in backtesting
4. Optimize threshold values for different market conditions
## Technical Specifications
- **Pine Script Version**: v6
- **Signal Type**: Non-repainting, confirmed signals
- **Calculation Basis**: RSI velocity with price action confirmation
- **Update Frequency**: Real-time on bar close
- **Memory Management**: Efficient state tracking with minimal resource usage
## Ideal For:
- **Momentum Traders**: Captures acceleration phases
- **Swing Traders**: Medium-term position entries/exits
- **Breakout Traders**: Confirms momentum behind breakouts
- **System Traders**: Mechanical signal generation with clear rules
This indicator represents a significant evolution in momentum analysis, combining the reliability of RSI with the precision of rate-of-change analysis and the confirmation of price action. It's designed for traders who want sophisticated momentum detection with built-in quality controls.
Pita dan Kanal
TRP Stop-Loss_Trailing SL# TRP Stop-Loss Indicator
## Overview
The TRP (True Range Percentage) Stop-Loss indicator is an advanced volatility-based stop-loss tool that provides dynamic position protection based on market volatility. Unlike traditional ATR-based indicators, TRP calculates volatility as a percentage of price, offering superior adaptability across different price ranges and market conditions.
## What is TRP and Why It's Superior to ATR
### TRP (True Range Percentage)
TRP calculates the true range as a percentage of the closing price, providing a **normalized volatility measure**. The formula is:
```
TRP = (True Range / Close) × 100
```
### Key Advantages of TRP over ATR:
1. **Price-Normalized Volatility**: TRP automatically adjusts for different price levels, making it equally effective whether you're trading a $10 stock or a $1000 stock.
2. **Percentage-Based Risk**: TRP gives you direct percentage risk values, making position sizing and risk management more intuitive.
3. **Better Cross-Market Comparison**: Unlike ATR, TRP allows you to compare volatility across different instruments on an equal basis.
4. **Adaptive to Market Conditions**: TRP naturally scales with price movements, providing more relevant stop-loss levels during trending markets.
5. **Consistent Risk Exposure**: Maintains consistent percentage risk regardless of the underlying asset's price level.
## Indicator Features
### 🎯 **Dual Stop-Loss System**
- **Long SL**: Red line below price for long positions
- **Short SL**: Blue line above price for short positions
- Independent control for each direction
### ⚙️ **Advanced Calculation Options**
#### **Multiple TRP Calculation Sources:**
- **Current Candle**: Uses real-time running candle data
- **Previous Close**: Uses completed candle data (default)
- **Last Green Candle**: For longs - uses TRP from the most recent bullish candle
- **Last Red Candle**: For shorts - uses TRP from the most recent bearish candle
#### **Independent Multipliers:**
- Separate multiplier controls for long and short stop-losses
- Adjust risk levels independently (0.1x to 10x+ range)
- Fine-tune stop-loss distance based on your risk tolerance
### 📊 **Visual Customization**
- **Line Styles**: Solid, dashed, or dotted lines
- **Custom Colors**: Separate color controls for long/short SL
- **Line Width**: Adjustable thickness (1-10)
- **Extension**: Customizable projection bars to the right
### 🏷️ **Smart Labeling System**
- **Value Display**: Shows exact SL price on the right side of lines
- **Toggle Control**: Enable/disable labels as needed
- **Size Options**: 5 different label sizes (tiny to huge)
- **Color Coordination**: Labels match their respective line colors
### ⏰ **Multi-Timeframe Support**
- Calculate TRP on any timeframe while viewing on another
- Default: Daily TRP calculation for intraday charts
- Maintains calculation integrity across timeframe switches
## How to Use
### Basic Setup:
1. Add the indicator to your chart
2. Select your preferred timeframe for TRP calculation
3. Choose calculation source for long and short positions
4. Adjust multipliers based on your risk tolerance
### Risk Management Applications:
- **Conservative**: Use 0.5-0.8 multipliers for tighter stops
- **Standard**: Use 1.0 multiplier for normal volatility-based stops
- **Aggressive**: Use 1.2-2.0 multipliers for wider stops in volatile markets
### Advanced Strategies:
- **Trend Following**: Use "Last Green/Red Candle" sources to adapt to momentum changes
- **Breakout Trading**: Use "Current Candle" for real-time stop adjustments
- **Swing Trading**: Use "Previous Close" for stable, confirmed levels
## Key Benefits
✅ **Dynamic Adaptation**: Automatically adjusts to changing market volatility
✅ **Percentage Risk Control**: Direct percentage-based risk management
✅ **Multi-Strategy Compatible**: Works with scalping, day trading, and swing trading
✅ **Visual Clarity**: Clean, professional chart display with customizable appearance
✅ **Real-Time Updates**: Instant recalculation when settings change
✅ **No Overlapping Lines**: Smart line management prevents chart clutter
## Best Practices
1. **Backtest First**: Test different multiplier settings on historical data
2. **Market Adaptation**: Adjust multipliers based on current market volatility regime
3. **Combine with Other Signals**: Use TRP stops with your existing entry signals
4. **Position Sizing**: Use TRP percentage values for consistent position sizing
5. **Regular Review**: Periodically review and adjust settings based on performance
## Technical Specifications
- **Pine Script Version**: v6
- **Overlay**: Yes (draws directly on price chart)
- **Calculations**: Based on 50-period EMA of TRP values
- **Updates**: Real-time with automatic line management
- **Performance**: Optimized for fast execution and minimal lag
This indicator is ideal for traders who want professional-grade, volatility-adaptive stop-loss management with the flexibility to fine-tune risk parameters across different market conditions and trading styles.
Ultra Simple ReversalThis is a simple script that combines Key Features:
✅ No plotting - Only text labels and candle color changes
✅ Reversal candle detection - Changes candle color on high-probability signals
✅ BUY/SELL text labels - Clear directional signals
✅ Four-module confluence - SSL + Squeeze + MTF Pivots + ORB Breakout
✅ Non-repainting - Reliable signals using proper security calls
✅ Pine Script v6 compatible - All syntax errors fixed
Combined Indicator - W (Optimized)/ @description This weekly-focused indicator combines multiple technical analysis tools optimized for weekly timeframes:
// - Weighted Moving Averages: WMA 10 (short-term), WMA 30 (medium-term), and WMA 52 (annual cycle)
// - Bollinger Bands: With configurable basis (SMA, EMA, WMA, etc.) and customizable standard deviation, default 30 periods
// - CAGR Calculation: Shows compound annual growth rate and total growth for the visible period
// WMA indicators provide responsive trend analysis suitable for weekly charts. The 52-period WMA represents annual cycles.
// Bollinger Bands indicate volatility and potential reversal zones. CAGR provides long-term performance perspective.
// Optimized for better performance with efficient calculations and reduced memory usage.
Combined Indicator - W (Optimized)/ @description This weekly-focused indicator combines multiple technical analysis tools optimized for weekly timeframes:
// - Weighted Moving Averages: WMA 10 (short-term), WMA 30 (medium-term), and WMA 52 (annual cycle)
// - Bollinger Bands: With configurable basis (SMA, EMA, WMA, etc.) and customizable standard deviation, default 30 periods
// - CAGR Calculation: Shows compound annual growth rate and total growth for the visible period
// WMA indicators provide responsive trend analysis suitable for weekly charts. The 52-period WMA represents annual cycles.
// Bollinger Bands indicate volatility and potential reversal zones. CAGR provides long-term performance perspective.
// Optimized for better performance with efficient calculations and reduced memory usage.
TW All in OneIts a overlap strategy, giving signals for buy and sell.
Mostly suitable for Bank Nifty. Nifty and crude oil
Universal Valuation ~ GForge
🎯 Universal Valuation - GForge
Overview:
The Universal Valuation indicator is a sophisticated technical analysis tool that combines 14 different technical indicators into a single, normalized composite Z-score. This revolutionary approach provides traders and investors with a comprehensive view of an asset's relative valuation state, helping identify potential overvalued and undervalued conditions across any market, any timeframe .
🌟 Key Features:
Multi-Indicator Fusion: Combines RSI, CCI, Bollinger Bands, Price Analysis, Chande Momentum, Disparity Index, Hurst Exponent, IMI, TEMA, VWAP, Intraday Momentum, and advanced Risk Ratios (Sharpe, Sortino, Omega)
Universal Compatibility: Works seamlessly across stocks, forex, crypto, commodities, indices, and any tradeable asset
Multi-Timeframe Support: Optimized for all timeframes from 1-minute scalping to monthly long-term analysis
Professional Visualization: 9 stunning color themes with gradient effects and customizable styling
Comprehensive Dashboard: Real-time table displaying individual indicator scores and overall valuation phase
Smart Alert System: Built-in notifications for extreme valuation conditions
Z-Score Normalization: All indicators standardized for consistent comparison and interpretation
🔬 Technical Methodology:
The indicator employs advanced statistical normalization using Z-scores to transform disparate technical indicators into a unified measurement system. This revolutionary approach solves the fundamental problem of combining indicators with different scales and ranges.
1H MNT
Z-Score Normalization Process:
Raw Calculation: Each indicator is first calculated using its traditional formula (RSI 0-100, CCI unlimited range, etc.)
Statistical Analysis: For each indicator, the system calculates a rolling mean and standard deviation over a customizable lookback period
Z-Score Conversion: Current reading is converted using: Z = (Current Value - Rolling Mean) / Rolling Standard Deviation
Standardization: All Z-scores are clamped between -5 and +5 to prevent extreme outliers from dominating the composite
Democratic Weighting: Each normalized indicator contributes equally to the final composite score
Composite Calculation: Final score = Sum of all active Z-scores / Number of active indicators
Why Z-Scores Make It Universal:
Z-scores transform any indicator reading into "how many standard deviations away from normal this reading is." This means:
• An RSI of 85 on a volatile crypto might have the same Z-score as an RSI of 75 on a stable stock
• A CCI reading of +200 in a trending market might be less extreme than +100 in a ranging market
• Price movements are automatically adjusted for each asset's historical volatility
• Different timeframes are automatically normalized for their typical volatility patterns
This mathematical approach ensures the indicator adapts to any asset's unique characteristics and market conditions.
📊 Detailed Component Analysis:
Technical Indicators:
RSI (Relative Strength Index):
Calculates momentum by comparing recent gains to recent losses over a customizable period (default 21). Values above 70 traditionally indicate overbought conditions, while values below 30 suggest oversold conditions. The Universal Valuation converts these raw RSI values into Z-scores, providing a normalized view of how extreme current RSI readings are compared to historical patterns.
CCI (Commodity Channel Index):
Measures the current price level relative to an average price level over a given period (default 30). CCI compares the typical price (high+low+close)/3 to its simple moving average and divides by the mean absolute deviation. Values above +100 or below -100 indicate price extremes. Our Z-score normalization helps identify when CCI readings are statistically significant.
Bollinger Bands Position:
Calculates where the current price sits within the Bollinger Bands envelope. A value of +1 means price is at the upper band, -1 at the lower band, and 0 at the middle (SMA). This component measures price deviation from the mean in standard deviation units, making it naturally statistical. The Z-score normalization reveals when band position readings are historically extreme.
Price Z-Score:
Direct statistical measurement of how far the current price deviates from its historical mean in standard deviation units. This is the purest form of valuation measurement, showing whether an asset is trading at statistically significant levels relative to its historical price range.
Momentum Indicators:
Chande Momentum Oscillator (CMO):
Unlike RSI, CMO uses the sum of gains and losses rather than averages, making it more sensitive to recent price changes. It calculates (sum of gains - sum of losses) / (sum of gains + sum of losses) × 100. Values range from -100 to +100. The Z-score normalization helps identify when momentum readings are unusually extreme.
Disparity Index:
Measures the percentage difference between current price and its simple moving average: (Price - SMA) / SMA × 100. This shows how far price has deviated from its average, with positive values indicating price above average and negative values below. Z-score normalization reveals when these deviations are statistically significant.
Intraday Momentum Index (IMI):
Similar to RSI but uses intraday price movements instead of closing prices. It compares gains and losses within each session (close vs open) rather than session-to-session changes. This captures intraday sentiment and momentum that closing-based indicators might miss. Particularly useful for detecting intraday reversal patterns.
Intraday Momentum:
Simple but effective measurement of daily price movement: (Close - Open) / Open × 100. This shows the percentage gain or loss within each trading session. When Z-score normalized, it reveals when intraday movements are historically extreme, often indicating climax buying or selling conditions.
Advanced Indicators:
TEMA (Triple Exponential Moving Average):
A sophisticated moving average that applies exponential smoothing three times to reduce lag while maintaining responsiveness. TEMA = 3×EMA₁ - 3×EMA₂ + EMA₃, where each EMA is applied to the previous result. The Z-score of TEMA helps identify when price has moved significantly away from this responsive trend line.
VWAP (Volume Weighted Average Price):
Calculates the average price weighted by volume, giving more importance to prices where more volume occurred. VWAP = Σ(Price × Volume) / Σ(Volume). This represents the "fair value" based on actual trading activity. Z-score normalization shows when current VWAP is statistically extreme relative to historical VWAP levels.
Hurst Exponent:
Advanced mathematical concept measuring market efficiency and trend persistence. Values near 0.5 indicate random walk (efficient market), above 0.5 suggest trending behavior, and below 0.5 indicate mean-reverting markets. The indicator converts this to an oscillator: (Hurst - 0.5) × 100, then applies Z-score normalization to identify extreme efficiency/inefficiency periods.
Risk Ratios:
Sharpe Ratio:
Classic risk-adjusted return measure: (Return - Risk-free Rate) / Standard Deviation of Returns. Higher values indicate better risk-adjusted performance. The Z-score normalization reveals when current risk-adjusted returns are historically high or low, helping identify periods of exceptional or poor risk-adjusted performance.
Sortino Ratio:
Improvement over Sharpe ratio that only penalizes downside volatility: (Return - Risk-free Rate) / Downside Deviation. This gives a more accurate picture of risk-adjusted returns since upside volatility isn't necessarily bad. Z-score normalization helps identify when downside risk-adjusted returns reach extreme levels.
Omega Ratio:
Sophisticated risk measure that considers the probability-weighted ratio of gains versus losses above a threshold: Σ(Gains above threshold) / Σ(Losses below threshold). Values above 1.0 indicate positive expected returns above the threshold. Z-score normalization reveals when probability-weighted risk/reward ratios reach historically significant levels.
🎨 Valuation Phases:
The composite Z-score translates into clear valuation phases:
🔵 Extremely Undervalued: Z-Score ≤ -2.0 (Rare buying opportunities)
🟦 Strongly Undervalued: Z-Score ≤ -1.3 (Strong buying signals)
🟨 Moderately Undervalued: Z-Score ≤ -0.65 (Potential value plays)
⚪ Fairly Valued: Z-Score -0.65 to 0.5 (Neutral territory)
🟨 Slightly Overvalued: Z-Score 0.5 to 1.2 (Caution advised)
🟧 Moderately Overvalued: Z-Score 1.2 to 2.0 (Consider profit-taking)
🔴 Strongly Overvalued: Z-Score > 2.0 (High risk, potential sell signals)
12H GOLD
🌍 Universal Application:
Why "Universal"?
Timeframe Independent: Statistical normalization adapts to any timeframe's volatility characteristics
Market Neutral: Works across different market conditions (trending, ranging, volatile, calm)
Configurable Components: Enable/disable specific indicators based on asset type and market conditions
Adaptive Parameters: All lookback periods are customizable for different trading styles
💡 Optimal Use Cases:
Swing Trading: Identify intermediate-term reversal points
Position Trading: Long-term value assessment for portfolio allocation
Day Trading: Intraday extreme condition alerts
Risk Management: Position sizing based on valuation extremes
Multi-Asset Analysis: Compare relative value across different instruments
Market Timing: Entry and exit point optimization
⚙️ Customization Options:
Component Selection: Enable/disable any of the 14 indicators
Lookback Periods: Adjust Z-score calculation periods for each component
Visual Themes: 9 professional color schemes plus custom colors
Alert Thresholds: Configurable extreme condition notifications
Dashboard Display: Toggle individual component visibility
Background Highlighting: Visual emphasis for extreme conditions
🎯 Interpretation Guide:
For Long Positions:
• Look for Z-scores below -1.3 for entry opportunities
• Consider profit-taking when Z-scores exceed +1.2
• Use extreme readings (< -2.0) for high-conviction entries
For Short Positions:
• Look for Z-scores above +2.0 for entry opportunities
• Cover positions when Z-scores fall below +0.5
• Avoid shorting during extreme undervaluation (< -1.3)
For Risk Management:
• Reduce position sizes during overvalued conditions
• Increase allocation during undervalued periods
• Use neutral zones (±0.5) for position adjustments
🔔 Alert System:
Built-in alerts notify you when:
Composite score enters/exits strong overvalued territory (±2.0)
Composite score enters/exits strong undervalued territory (±1.3)
Extreme conditions are reached (±2.5 for overvalued, -2.0 for undervalued)
Neutral crossovers occur (useful for trend changes)
📈 Performance Optimization:
The indicator includes several performance optimizations:
Efficient calculation methods to minimize processing load
Clamped Z-scores to prevent extreme outliers
Optimized table rendering for smooth operation
🎨 Visual Elements:
Main Plot: Composite Z-score line with dynamic gradient coloring
Zone Fills: Visual bands showing valuation regions
Reference Lines: Key threshold levels clearly marked
Background Highlighting: Extreme condition emphasis
Dashboard Table: Comprehensive component breakdown
Bar Coloring: Optional candlestick coloring based on valuation
🔧 Technical Requirements:
Requires sufficient historical data for accurate Z-score calculations
Recommended minimum: 300+ bars for optimal performance
Works on all TradingView subscription levels
📚 Educational Value:
This indicator serves as an excellent educational tool for:
Understanding statistical normalization in trading
Learning how multiple indicators can be combined effectively
Studying market valuation concepts across different assets
Developing a systematic approach to market analysis
⚠️ Important Notes:
The indicator works best with sufficient historical data
Consider market context and fundamental factors alongside technical signals
Backtest thoroughly before implementing in live trading
Adjust parameters based on specific asset characteristics and trading timeframe
Use in conjunction with other analysis methods for best results
---
⚠️ DISCLAIMER:
This indicator is provided for educational and informational purposes only and should not be considered as financial advice, investment advice, trading advice, or any other type of advice.
The Universal Valuation indicator is a technical analysis tool that provides statistical information about price movements and market conditions. It does not guarantee profits or predict future market movements with certainty.
---
Developed with precision for the TradingView community ~ GForge
Gemini RSI Divergence SignalsLolLol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
Lol
HWEMA + Ceiling/Channel Combo testThis is a test script. Was developed as a decaying ATR smoothed with HMA
Bullish_1Hour_entry_Indicator with Alertsthis indicator consioders entry basis of EMAs convergence , VWAP & Multitime frame analysis
Combined Indicator - D (Optimized)// @description This indicator combines multiple technical analysis tools in a single view:
// - Moving Averages: WMA 21 (short-term), EMA 50 (medium), EMA 125 (medium-long), and EMA 200 (long-term)
// - Bollinger Bands: With configurable basis (SMA, EMA, WMA, etc.) and customizable standard deviation
// - CAGR Calculation: Shows compound annual growth rate and total growth for the visible period
// Moving averages help identify trends and dynamic support/resistance levels. Bollinger Bands indicate volatility
// and potential overbought/oversold zones. CAGR provides long-term performance perspective. Optimized for better
// performance with efficient calculations and reduced memory usage.
DHYT 6 MAs, BMSB, Pi Cycle TopThis indicator has 6 Moving averages that are highly customizable and visible on all time frames, it also includes the Bull Market Support Band (BMSB) and the Pi Cycle Top indicator which has been very good at predicting Cycle Tops for Bitcoin (BTC).
You can customize all the moving averages, as well as using simple or exponential. You can also easily customize colors and line weights.
Created by: Dan Heilman
BOCS AdaptiveBOCS Adaptive Strategy - Automated Volatility Breakout System
WHAT THIS STRATEGY DOES:
This is an automated trading strategy that detects consolidation patterns through volatility analysis and executes trades when price breaks out of these channels. Take-profit and stop-loss levels are calculated dynamically using Average True Range (ATR) to adapt to current market volatility. The strategy closes positions partially at the first profit target and exits the remainder at the second target or stop loss.
TECHNICAL METHODOLOGY:
Price Normalization Process:
The strategy begins by normalizing price to create a consistent measurement scale. It calculates the highest high and lowest low over a user-defined lookback period (default 100 bars). The current close price is then normalized using the formula: (close - lowest_low) / (highest_high - lowest_low). This produces values between 0 and 1, allowing volatility analysis to work consistently across different instruments and price levels.
Volatility Detection:
A 14-period standard deviation is applied to the normalized price series. Standard deviation measures how much prices deviate from their average - higher values indicate volatility expansion, lower values indicate consolidation. The strategy uses ta.highestbars() and ta.lowestbars() functions to track when volatility reaches peaks and troughs over the detection length period (default 14 bars).
Channel Formation Logic:
When volatility crosses from a high level to a low level, this signals the beginning of a consolidation phase. The strategy records this moment using ta.crossover(upper, lower) and begins tracking the highest and lowest prices during the consolidation. These become the channel boundaries. The duration between the crossover and current bar must exceed 10 bars minimum to avoid false channels from brief volatility spikes. Channels are drawn using box objects with the recorded high/low boundaries.
Breakout Signal Generation:
Two detection modes are available:
Strong Closes Mode (default): Breakout occurs when the candle body midpoint math.avg(close, open) exceeds the channel boundary. This filters out wick-only breaks.
Any Touch Mode: Breakout occurs when the close price exceeds the boundary.
When price closes above the upper channel boundary, a bullish breakout signal generates. When price closes below the lower boundary, a bearish breakout signal generates. The channel is then removed from the chart.
ATR-Based Risk Management:
The strategy uses request.security() to fetch ATR values from a specified timeframe, which can differ from the chart timeframe. For example, on a 5-minute chart, you can use 1-minute ATR for more responsive calculations. The ATR is calculated using ta.atr(length) with a user-defined period (default 14).
Exit levels are calculated at the moment of breakout:
Long Entry Price = Upper channel boundary
Long TP1 = Entry + (ATR × TP1 Multiplier)
Long TP2 = Entry + (ATR × TP2 Multiplier)
Long SL = Entry - (ATR × SL Multiplier)
For short trades, the calculation inverts:
Short Entry Price = Lower channel boundary
Short TP1 = Entry - (ATR × TP1 Multiplier)
Short TP2 = Entry - (ATR × TP2 Multiplier)
Short SL = Entry + (ATR × SL Multiplier)
Trade Execution Logic:
When a breakout occurs, the strategy checks if trading hours filter is satisfied (if enabled) and if position size equals zero (no existing position). If volume confirmation is enabled, it also verifies that current volume exceeds 1.2 times the 20-period simple moving average.
If all conditions are met:
strategy.entry() opens a position using the user-defined number of contracts
strategy.exit() immediately places a stop loss order
The code monitors price against TP1 and TP2 levels on each bar
When price reaches TP1, strategy.close() closes the specified number of contracts (e.g., if you enter with 3 contracts and set TP1 close to 1, it closes 1 contract). When price reaches TP2, it closes all remaining contracts. If stop loss is hit first, the entire position exits via the strategy.exit() order.
Volume Analysis System:
The strategy uses ta.requestUpAndDownVolume(timeframe) to fetch up volume, down volume, and volume delta from a specified timeframe. Three display modes are available:
Volume Mode: Shows total volume as bars scaled relative to the 20-period average
Comparison Mode: Shows up volume and down volume as separate bars above/below the channel midline
Delta Mode: Shows net volume delta (up volume - down volume) as bars, positive values above midline, negative below
The volume confirmation logic compares breakout bar volume to the 20-period SMA. If volume ÷ average > 1.2, the breakout is classified as "confirmed." When volume confirmation is enabled in settings, only confirmed breakouts generate trades.
INPUT PARAMETERS:
Strategy Settings:
Number of Contracts: Fixed quantity to trade per signal (1-1000)
Require Volume Confirmation: Toggle to only trade signals with volume >120% of average
TP1 Close Contracts: Exact number of contracts to close at first target (1-1000)
Use Trading Hours Filter: Toggle to restrict trading to specified session
Trading Hours: Session input in HHMM-HHMM format (e.g., "0930-1600")
Main Settings:
Normalization Length: Lookback bars for high/low calculation (1-500, default 100)
Box Detection Length: Period for volatility peak/trough detection (1-100, default 14)
Strong Closes Only: Toggle between body midpoint vs close price for breakout detection
Nested Channels: Allow multiple overlapping channels vs single channel at a time
ATR TP/SL Settings:
ATR Timeframe: Source timeframe for ATR calculation (1, 5, 15, 60, etc.)
ATR Length: Smoothing period for ATR (1-100, default 14)
Take Profit 1 Multiplier: Distance from entry as multiple of ATR (0.1-10.0, default 2.0)
Take Profit 2 Multiplier: Distance from entry as multiple of ATR (0.1-10.0, default 3.0)
Stop Loss Multiplier: Distance from entry as multiple of ATR (0.1-10.0, default 1.0)
Enable Take Profit 2: Toggle second profit target on/off
VISUAL INDICATORS:
Channel boxes with semi-transparent fill showing consolidation zones
Green/red colored zones at channel boundaries indicating breakout areas
Volume bars displayed within channels using selected mode
TP/SL lines with labels showing both price level and distance in points
Entry signals marked with up/down triangles at breakout price
Strategy status table showing position, contracts, P&L, ATR values, and volume confirmation status
HOW TO USE:
For 2-Minute Scalping:
Set ATR Timeframe to "1" (1-minute), ATR Length to 12, TP1 Multiplier to 2.0, TP2 Multiplier to 3.0, SL Multiplier to 1.5. Enable volume confirmation and strong closes only. Use trading hours filter to avoid low-volume periods.
For 5-15 Minute Day Trading:
Set ATR Timeframe to match chart or use 5-minute, ATR Length to 14, TP1 Multiplier to 2.0, TP2 Multiplier to 3.5, SL Multiplier to 1.2. Volume confirmation recommended but optional.
For Hourly+ Swing Trading:
Set ATR Timeframe to 15-30 minute, ATR Length to 14-21, TP1 Multiplier to 2.5, TP2 Multiplier to 4.0, SL Multiplier to 1.5. Volume confirmation optional, nested channels can be enabled for multiple setups.
BACKTEST CONSIDERATIONS:
Strategy performs best during trending or volatility expansion phases
Consolidation-heavy or choppy markets produce more false signals
Shorter timeframes require wider stop loss multipliers due to noise
Commission and slippage significantly impact performance on sub-5-minute charts
Volume confirmation generally improves win rate but reduces trade frequency
ATR multipliers should be optimized for specific instrument characteristics
COMPATIBLE MARKETS:
Works on any instrument with price and volume data including forex pairs, stock indices, individual stocks, cryptocurrency, commodities, and futures contracts. Requires TradingView data feed that includes volume for volume confirmation features to function.
KNOWN LIMITATIONS:
Stop losses execute via strategy.exit() and may not fill at exact levels during gaps or extreme volatility
request.security() on lower timeframes requires higher-tier TradingView subscription
False breakouts inherent to breakout strategies cannot be completely eliminated
Performance varies significantly based on market regime (trending vs ranging)
Partial closing logic requires sufficient position size relative to TP1 close contracts setting
RISK DISCLOSURE:
Trading involves substantial risk of loss. Past performance of this or any strategy does not guarantee future results. This strategy is provided for educational purposes and automated backtesting. Thoroughly test on historical data and paper trade before risking real capital. Market conditions change and strategies that worked historically may fail in the future. Use appropriate position sizing and never risk more than you can afford to lose. Consider consulting a licensed financial advisor before making trading decisions.
ACKNOWLEDGMENT & CREDITS:
This strategy is built upon the channel detection methodology created by AlgoAlpha in the "Smart Money Breakout Channels" indicator. Full credit and appreciation to AlgoAlpha for pioneering the normalized volatility approach to identifying consolidation patterns and sharing this innovative technique with the TradingView community. The enhancements added to the original concept include automated trade execution, multi-timeframe ATR-based risk management, partial position closing by contract count, volume confirmation filtering, and real-time position monitoring.
EMA AND TREND TABLE Dual EMA System: Includes a fast and a slow EMA to track both short-term momentum and long-term trends.
Crossover Signals: Automatically plots arrows on the chart when the fast EMA crosses over or under the slow EMA, signaling a potential shift in momentum.
Trend Coloring: The EMA lines change color based on the trend direction (e.g., green for an uptrend, red for a downtrend) for at-a-glance analysis.
Customizable Alerts: Create TradingView alerts for key events, such as EMA crossovers, so you never miss a potential setup.
Adjustable Inputs: Easily customize the length (period) and source (close, open, hl2, etc.) for each EMA directly from the settings menu.
Valuation Bands (Dynamic + Table)Valuation Bands (Dynamic + Table)
This indicator helps investors assess whether a stock is trading at cheap, fair, or expensive levels relative to its historical valuation multiples. It dynamically calculates valuation ratios such as P/E, P/B, P/S, P/Operating Income, P/Cash Flow, or Dividend Yield over a customizable lookback period (e.g., 10 years).
Using these ratios, the script plots the long-term average alongside ±1σ and ±2σ standard deviation bands, highlighting valuation zones. The included data table displays both the multiple values and their corresponding price levels, making it easy to interpret fair value ranges.
Alerts are built in to notify when the current ratio crosses into undervalued (–2σ) or overvalued (+2σ) zones, helping investors spot potential opportunities or risks.
In short, this tool bridges fundamentals with technical visualization, giving a quick snapshot of how today’s valuation compares to historical norms.
Valuation Bands (Dynamic + Table)Valuation Bands (Dynamic + Table)
This indicator helps investors assess whether a stock is trading at cheap, fair, or expensive levels relative to its historical valuation multiples. It dynamically calculates valuation ratios such as P/E, P/B, P/S, P/Operating Income, P/Cash Flow, or Dividend Yield over a customizable lookback period (e.g., 10 years).
Using these ratios, the script plots the long-term average alongside ±1σ and ±2σ standard deviation bands, highlighting valuation zones. The included data table displays both the multiple values and their corresponding price levels, making it easy to interpret fair value ranges.
Alerts are built in to notify when the current ratio crosses into undervalued (–2σ) or overvalued (+2σ) zones, helping investors spot potential opportunities or risks.
In short, this tool bridges fundamentals with technical visualization, giving a quick snapshot of how today’s valuation compares to historical norms.
TOP-RSI Double Confirm + Heiken Ashi + Buy/Sell Labels v01📊 RSI Double Confirm + Heiken Ashi + Labels
🔎 Concept
This indicator combines a Zero-based RSI filter with strict candle close confirmation, overlays Heiken Ashi candles for clearer trend visualization, and adds Buy/Sell labels directly on the chart for easier interpretation.
⚙️ Components
1. RSI Double Confirm
RSI is calculated from OHLC4 (open+high+low+close)/4.
The RSI value is shifted by -50 to center it around zero (above 0 = bullish, below 0 = bearish).
Uses user-defined thresholds: Overbought (OB) and Oversold (OS).
📌 Entry conditions:
Buy Signal → RSI crosses upward through OS and the last closed candle is higher than the previous candle.
Sell Signal → RSI crosses downward through OB and the last closed candle is lower than the previous candle.
2. Heiken Ashi Candles
Custom Heiken Ashi values are calculated: haOpen, haClose, haHigh, haLow.
Candles are colored green (if haClose > haOpen) or red (if haClose < haOpen).
Helps smooth price action and highlight trend direction.
3. Alerts
alertcondition is set for both Buy and Sell signals.
Users can create TradingView alerts that trigger whenever a new signal appears.
4. Signals & Labels
A green up arrow is plotted under the candle when a Buy signal is triggered.
A red down arrow is plotted above the candle when a Sell signal is triggered.
Additionally, labels ("Buy" or "Sell") are added at the respective candle to make signals more visible.
📝 How to Use
Add the indicator to your chart (it overlays directly on price).
Adjust inputs:
OB (Overbought) → e.g. 20
OS (Oversold) → e.g. -20
RSI Length → e.g. 7
Watch for signals:
Buy Signal → Green arrow + "Buy" label → potential bullish entry.
Sell Signal → Red arrow + "Sell" label → potential bearish entry.
Set up alerts in TradingView to be notified when new signals appear.
✅ Benefits
Combines RSI confirmation + Heiken Ashi trend filter + Clear chart labels.
Reduces false signals by requiring both RSI cross and strict close confirmation.
Easy to interpret visually with arrows and text labels.
⚠️ Notes
This indicator is meant as a signal confirmation tool, not a standalone strategy.
Best used alongside support/resistance analysis, price action, or volume.
Does not provide automatic stop loss / take profit levels → risk management must be applied by the trader.
Trader Marks Trailing SL + TP (BE @ 60%)This script provides a unique stop-loss and take-profit management tool designed for swing traders.
It introduces a two-stage stop-loss logic that is not available in standard TradingView tools:
Break-Even Protection: Once a defined profit threshold (e.g. 66%) is reached, the stop-loss automatically moves to break-even.
ATR-Based Trailing Stop: After a chosen delay (e.g. 12 hours), the script activates a dynamic trailing stop that follows market volatility using the ATR.
Flexible Ratchet Mechanism: The stop-loss can be locked at new profit levels and will never move backwards.
This combination allows traders to secure profits while still giving the trade room to develop. The indicator is especially useful for swing trading on 4H and daily timeframes but can be applied to other styles as well.
How to use:
Enter your entry price, stop-loss, and take-profit levels.
Choose your trailing mode: Exact S/L+ (simple) or Advanced (Delay + BE + Ratchet).
Adjust parameters such as ATR length or activation delay to match your strategy.
The script helps you balance risk and reward by ensuring that once the trade moves in your favor, you cannot lose the initial risk, while still benefiting from extended market moves.
ADAUSDT Profitalgo Day‑Trading IndicatorMeet the **ADAUSDT Profitalgo Day-Trading Indicator** — a fast, no-nonsense signal engine built for intraday action on a single coin.
It locks onto trend with a classic **9/21 EMA** backbone (with an optional higher-time-frame filter), then times entries using a nimble **RSI(7) midline cross**. When momentum flips **up** in trend, you get a clean **Long** triangle; when it snaps **down**, a **Short** triangle. Once you’re in, an **ATR-based trailing stop** ratchets behind price — tightening on strength, bailing on weakness — and prints crisp **Exit** markers the moment the move fades. A subtle green/red background heatmap keeps the bigger picture in view at a glance.
Why traders love it:
* **Aligned entries** only: RSI triggers are gated by EMA trend (and optional HTF trend) to cut the chop.
* **Self-managed exits:** ATR(14) × Multiplier trails automatically — no second guessing.
* **Fully tunable:** EMA/RSI lengths, midline, ATR settings, and higher-TF period are all adjustable.
* **Set-and-forget alerts:** Long/Short/Exit alerts fire in real time so you never miss the turn.
Add it to your chart, switch on alerts, and tune the inputs to your style. It’s everything you need to spot the push, ride the burst, and step aside when the edge is gone. *(Not financial advice; always test before going live.)*
Bollinger Bands (Log Scale)📈 Bollinger Bands on log scale are broken.
Many traders use log charts for better price symmetry—but still apply Bollinger Bands calculated on linear price. That mismatch creates distorted signals.
Here’s what I found:
- Standard deviation becomes misleading on log scale
- Band width no longer reflects true volatility
- Breakout signals lose behavioral clarity
🛠 So I rewrote the logic.
My version calculates Bollinger Bands using log(price) for both mean and deviation, then maps the result back to price. It behaves correctly on log charts and aligns better with behavioral scoring.
VWAP Divergence LevelsThis is an indicator which paints levels on your chart based on degrees of historical divergence from VWAP. I conceived and designed it for my personal use trading index funds (QQQ, SPY) on the NYSE. It is one of the primary indicators I use on a daily basis, and may be of interest to traders with a focus on volume.
This indicator works by tracking, each session, the maximum amount that price diverges from VWAP that day. The lookback period is locked to 21 days, or about 1 month's worth of trading days. Bearish and bullish divergences are tracked separately.
From this data, we take the average of all maximum daily bullish divergences (the "Mean Bull" divergence amount), and paint that line relative to the current VWAP. In other words, if the VWAP for the current bar is at $2.50 and the Mean Bull divergence is $0.40, the line will be painted at $2.90. The largest value from the lookback period ("Max Bull") is also painted. The same is done for bearish divergences.
Finally, midpoints between the VWAP and the Mean and Max levels are drawn. Optionally, quarter-levels are drawn in the spaces between Mean and VWAP.
When I created this indicator, I found that price very often responds and retraces around these levels, allowing me to more easily visualize the relationship between price and volume. Personally, I have found it useful for finding entrance and exit points-- especially when the levels coincide with important previous daily levels, or other support/resistance points.
Good luck & happy trading.
Disclaimer : Use at your own risk. This indicator and the strategy described herein are not in any way financial advice, nor does the author of this script make any claims about the effectiveness of this indicator or of any related strategy, which may depend highly on the discretion and skill of the trader executing it, among many other factors outside of the author's control. The author of this script accepts no liability, and is not responsible for any trading decisions that you may or may not make as a result of this indicator. You should expect to lose money if using this indicator.
EMA & HMA with ShadingA simple indicator you can use to shade the area between an EMA and HMA for easier visualization. Hope you find it useful in your trading.