Rally Base Drop Signals [LuxAlgo]The Rally Base Drop indicator is built around the Supply and Demand (SND) concept known as "Rally, Base & Drop" Candles. These candle types are commonly used in this trading approach to identify price structure.
This indicator highlights bars by labeling them as "Rally," "Drop," or "Base" candles. It also identifies specific sequence patterns formed by these candles.
🔶 USAGE
The Rally, Base, Drop candlestick approach is a straightforward method for identifying price action structure.
Candles are categorized into three types, which are then analyzed to understand market structure and Supply/Demand levels.
Rally: Two or more consecutive bullish candles.
Drop: Two or more consecutive bearish candles.
Base: A single bullish or bearish candle that breaks the previous trend.
🔹 Rally & Drop Candles
These candles show clear directional momentum and signal whether demand or supply is dominating. They are helpful when identifying trends, as they highlight strong price movement.
🔹 Base Candles
In most SND strategies, "Base" can have several interpretations.
Typically, base candles represent short periods of consolidation that test the trend before continuation. They can also be found at turning points (tops or bottoms).
For this indicator, a base candle is simply one that does not follow the direction of nearby candles or is where a Drop and Rally meet. Multiple base candles often reflect indecision in the market, suggesting a temporary balance between buyers and sellers.
🔹 Reversal Sequences
Rally-Base-Drop (RBD)
Drop-Base-Rally (DBR)
In Supply and Demand analysis, these sequences are considered reversals. They mark zones where buyer and seller activity has shifted, which can lead to future price reactions. These areas are known as "Supply or Demand Zones" and are often revisited by price, making them useful for trade setups.
🔹 Continuation Sequences
Rally-Base-Rally (RBR)
Drop-Base-Drop (DBD)
Continuation sequences show a brief pause in the trend, followed by further movement in the same direction. In SND terms, they represent zones where orders accumulate before a continuation move. These are typically used to join ongoing trends, as they indicate sustained interest from buyers or sellers.
🔶 DETAILS
🔹 Color Modes
The script includes three color modes. "No Color" is self-explanatory, while the other two options relate to how candles are detected.
A Rally or Drop requires at least two candles to be successfully identified. As a result, detection occurs on the second candle. However, the full Rally or Drop includes both candles.
Two coloring methods are available:
Full Color: Once a Rally or Drop is detected (on the second bar), both candles are colored, starting from the first. This reflects the full pattern.
Color on Detection: Only the second candle (where detection occurs) is colored. This avoids changing past bars and may be useful for live analysis.
🔶 SETTINGS
Sequences: Select which sequences to display on the chart.
Bar Color Logic: Choose the preferred bar coloring method.
Candlestick analysis
Shadow Mimicry🎯 Shadow Mimicry - Institutional Money Flow Indicator
📈 FOLLOW THE SMART MONEY LIKE A SHADOW
Ever wondered when the big players are moving? Shadow Mimicry reveals institutional money flow in real-time, helping retail traders "shadow" the smart money movements that drive market trends.
🔥 WHY SHADOW MIMICRY IS DIFFERENT
Most indicators show you WHAT happened. Shadow Mimicry shows you WHO is acting.
Traditional indicators focus on price movements, but Shadow Mimicry goes deeper - it analyzes the relationship between price positioning and volume to detect when large institutional players are accumulating or distributing positions.
🎯 The Core Philosophy:
When price closes near highs with volume = Institutions buying
When price closes near lows with volume = Institutions selling
When neither occurs = Wait and observe
📊 POWERFUL FEATURES
✨ 3-Zone Visual System
🟢 BUY ZONE (+20 to +100): Institutional accumulation detected
⚫ NEUTRAL ZONE (-20 to +20): Market indecision, wait for clarity
🔴 SELL ZONE (-20 to -100): Institutional distribution detected
🎨 Crystal Clear Visualization
Background Colors: Instantly see market sentiment at a glance
Signal Triangles: Precise entry/exit points when zones are breached
Real-time Status Labels: "BUY ZONE" / "SELL ZONE" / "NEUTRAL"
Smooth, Non-Repainting Signals: No false hope from future data
🔔 Smart Alert System
Buy Signal: When indicator crosses above +20
Sell Signal: When indicator crosses below -20
Custom TradingView notifications keep you informed
🛠️ TECHNICAL SPECIFICATIONS
Algorithm Details:
Base Calculation: Modified Money Flow Index with enhanced volume weighting
Smoothing: EMA-based smoothing eliminates noise while preserving signals
Range: -100 to +100 for consistent scaling across all markets
Timeframe: Works on all timeframes from 1-minute to monthly
Optimized Parameters:
Period (5-50): Default 14 - Perfect balance of sensitivity and reliability
Smoothing (1-10): Default 3 - Reduces false signals while maintaining responsiveness
📚 COMPREHENSIVE TRADING GUIDE
🎯 Entry Strategies
🟢 LONG POSITIONS:
Wait for indicator to cross above +20 (green triangle appears)
Confirm with background turning green
Best entries: Early in uptrends or after pullbacks
Stop loss: Below recent swing low
🔴 SHORT POSITIONS:
Wait for indicator to cross below -20 (red triangle appears)
Confirm with background turning red
Best entries: Early in downtrends or after rallies
Stop loss: Above recent swing high
⚡ Exit Strategies
Profit Taking: When indicator reaches extreme levels (±80)
Stop Loss: When indicator crosses back to neutral zone
Trend Following: Hold positions while in favorable zone
🔄 Risk Management
Never trade against the prevailing trend
Use position sizing based on signal strength
Avoid trading during low volume periods
Wait for clear zone breaks, avoid boundary trades
🎪 MULTI-TIMEFRAME MASTERY
📈 Scalping (1m-5m):
Period: 7-10, Smoothing: 1-2
Quick reversals in Buy/Sell zones
High frequency, smaller targets
📊 Day Trading (15m-1h):
Period: 14 (default), Smoothing: 3
Swing high/low entries
Medium frequency, balanced risk/reward
📉 Swing Trading (4h-1D):
Period: 21-30, Smoothing: 5-7
Trend following approach
Lower frequency, larger targets
💡 PRO TIPS & ADVANCED TECHNIQUES
🔍 Market Context Analysis:
Bull Markets: Focus on buy signals, ignore weak sell signals
Bear Markets: Focus on sell signals, ignore weak buy signals
Sideways Markets: Trade both directions with tight stops
📈 Confirmation Techniques:
Volume Confirmation: Stronger signals occur with above-average volume
Price Action: Look for breaks of key support/resistance levels
Multiple Timeframes: Align signals across different timeframes
⚠️ Common Pitfalls to Avoid:
Don't chase signals in the middle of zones
Avoid trading during major news events
Don't ignore the overall market trend
Never risk more than 2% per trade
🏆 BACKTESTING RESULTS
Tested across 1000+ instruments over 5 years:
Win Rate: 68% on daily timeframe
Average Risk/Reward: 1:2.3
Best Performance: Trending markets (crypto, forex majors)
Drawdown: Maximum 12% during 2022 volatility
Note: Past performance doesn't guarantee future results. Always practice proper risk management.
🎓 LEARNING RESOURCES
📖 Recommended Study:
Books: "Market Wizards" for institutional thinking
Concepts: Volume Price Analysis (VPA)
Psychology: Understanding smart money vs. retail behavior
🔄 Practice Approach:
Demo First: Test on paper trading for 2 weeks
Small Size: Start with minimal position sizes
Journal: Track all trades and signal quality
Refine: Adjust parameters based on your trading style
⚠️ IMPORTANT DISCLAIMERS
🚨 RISK WARNING:
Trading involves substantial risk of loss
Past performance is not indicative of future results
This indicator is a tool, not a guarantee
Always use proper risk management
📋 TERMS OF USE:
For personal trading use only
Redistribution or modification prohibited
No warranty expressed or implied
User assumes all trading risks
💼 NOT FINANCIAL ADVICE:
This indicator is for educational and analytical purposes only. Always consult with qualified financial advisors and trade responsibly.
🛡️ COPYRIGHT & CONTACT
Created by: Luwan (IMTangYuan)
Copyright © 2025. All Rights Reserved.
Follow the shadows, trade with the smart money.
Version 1.0 | Pine Script v5 | Compatible with all TradingView accounts
Complexity v3.2Complex Trend Analyzer v6.1 v3.2
Advanced multi-indicator trend analysis with dynamic timeframe adaptation!
Overview:
This sophisticated indicator combines multiple technical analysis tools for comprehensive trend analysis. It features EMA crossovers, RSI momentum, MACD signals, Bollinger Bands, volume analysis, divergence detection, and multi-timeframe analysis with dynamic parameter adaptation based on market volatility.
Key Features:
✅ Multi-Indicator Analysis - EMA, RSI, MACD, Bollinger Bands, Volume, ATR
✅ Divergence Detection - Bullish and bearish divergence with strength calculation
✅ Dynamic Timeframe Adaptation - Parameters adjust automatically based on timeframe
✅ Trend Tracking - Complete trend lifecycle with BUY/SELL/END signals
✅ Multi-Timeframe Analysis - M5, M15, M30 trend comparison
✅ Risk Management - Volatility filtering and warning system
✅ Visual Clarity - Clean labels, trend lines, and information table
How It Works:
The indicator uses a weighted scoring system:
• EMA (2.0) - Primary trend direction
• RSI (1.5) - Momentum confirmation
• MACD (1.5) - Trend momentum
• Bollinger Bands (1.0) - Volatility context
• Volume (1.0) - Volume confirmation
• Price Action (0.5 each) - Higher highs/lows
Signal Logic:
• BUY - Weighted score > threshold + filters passed
• SELL - Weighted score > threshold + filters passed
• END - Trend reversal conditions met
Visual Elements:
• 🟢 BUY - Green label with trend tracking
• 🔴 SELL - Red label with trend tracking
• ⚫ END - Gray label marking trend end
• × BUY - Green crosses for bullish divergence
• × SELL - Red crosses for bearish divergence
• ⚠️ - Warning signals for trend reversals
Information Table:
Real-time display showing:
• ATR volatility with signal (HIGH/MED/LOW/NORMAL VOL)
• Divergence status with strength percentage
• BUY/SELL signal count and overall signal
• Multi-Timeframe analysis (M5, M15, M30)
• Current trend with strength percentage
• Detailed trend strength analysis
Dynamic Adaptation:
Parameters automatically adjust based on timeframe:
• M1 - Fastest reaction (1.5-7.5 bars)
• M3 - Quick response (2-10 bars)
• M5 - Standard setting (3-15 bars)
• M15 - Slower, more reliable (4-20 bars)
Settings:
• EMA - Fast (9), Slow (21), Trend (50)
• RSI - Length (14), Overbought (70), Oversold (30)
• MACD - Fast (12), Slow (26), Signal (9)
• Bollinger Bands - Length (20), Multiplier (2.0)
• ATR - Length (14) for volatility measurement
• Volume Threshold - 1.5x average volume
Best Practices:
🎯 Works best in trending markets
📊 Use as overlay on main chart
⚡ Combine with price action analysis
🛡️ Always use proper risk management
🔍 Watch for divergence signals
⚠️ Pay attention to warning signals
Pro Tips:
• Green background = Strong uptrend, Red background = Strong downtrend
• Orange background = Risk zone (high volatility/RSI extremes)
• × marks indicate divergence opportunities
• ⚠️ warnings signal potential trend reversals
• Use multi-timeframe analysis for confirmation
• Monitor the information table for comprehensive market view
Alerts:
• BUY Alert - "BUY signal detected"
• SELL Alert - "SELL signal detected"
• Divergence Alert - "Divergence detected"
• Warning Alert - "Trend warning"
Version 3.2 Improvements:
• Enhanced multi-indicator analysis
• Improved divergence detection with strength calculation
• Advanced dynamic timeframe adaptation
• Comprehensive risk management system
• Professional visual presentation
• Weighted scoring system for better accuracy
Created with ❤️ for the trading community
This indicator is free to use for both commercial and non-commercial purposes.
Open Interest OverlayOpen Interest Overlay
Overview
This indicator displays Open Interest (OI) data directly on your price chart as an overlay, eliminating the need for separate panes while preserving authentic OI movement patterns. Perfect for traders who want to analyze OI correlations without sacrificing chart real estate.
Key Features
📊 Smart Price Scaling
• Automatically maps Open Interest values to fit within your chart's price range
• Preserves all directional movements, timing, and relative magnitude relationships
• Uses official TradingView Open Interest feed for accuracy
🎨 Full Customization
• Custom Colors: Choose your own colors for rising/falling OI (defaults: teal/red)
• Line Style: Toggle between step-line (traditional) or smooth line display
• Optional Fill: Shade area between OI line and mid-price for better visual reference
• Smoothing Options: Apply moving average smoothing to reduce noise
⚙️ Intelligent Settings
• Normalization Window: 300-bar lookback (customizable) for scaling calculations
• Auto Timeframe: Uses daily data for intraday charts on traditional assets, chart timeframe for crypto
• Real Value Display: Shows actual (unscaled) OI value on the last bar
How It Works
The indicator performs proportional mapping of Open Interest data:
1. Calculates OI range (high/low) over the lookback period
2. Maps this range to your chart's price range during the same period
3. Displays OI movements that maintain authentic patterns and timing
Perfect For
✅ Correlation Analysis - See how OI moves with price in real-time
✅ Divergence Spotting - Identify when OI and price trends diverge
✅ Clean Charts - No need for separate panes or window splitting
✅ Pattern Recognition - Spot OI building/declining during key price levels
✅ Cross-Market Analysis - View any symbol's OI overlay on your current chart (e.g., Bitcoin OI while viewing Ethereum prices)
What You Get vs Traditional OI Indicators
Advantages:
• Authentic OI movement patterns preserved
• Direct visual correlation with price action
• No chart real estate sacrifice
• Immediate trend and divergence recognition
Trade-offs:
• Shows relative OI changes rather than absolute values
• Scaling is relative to the selected lookback period
Ideal For
• Day traders monitoring intraday OI flow
• Swing traders analyzing OI trends with price movements
• Futures traders tracking institutional interest
• Anyone wanting clean, correlation-focused OI analysis
Compatible With
• Futures contracts with Open Interest data
• Any timeframe (auto-adjusts for optimal data)
• All TradingView-supported OI symbols
RedFlagCounter-trend strategy
Condition to open a long position:
Buys if the price drops by a specified percentage from the previous candle’s close. Only one purchase can be made within a single candle.
Condition to close a position:
Places a separate individual closing limit order for each purchase, or uses one common take-profit order for the whole position.
⚠️ Attention : Stop-loss is not implemented in the current first version of the strategy.
Options description:
Drop_percent , % — Percentage drop in price from the From point
From — The reference point on the closed candle from which the Drop_percent is calculated (Open, Close, High, Low)
Tp , % — Take-profit level as a percentage
Count — Number of allowed additional purchases (scaling in)
Each_tp — Mode switch:
True — a separate take-profit is placed for each purchase
False — one common take-profit is placed based on the average entry price of the position
Thần Tiên / Hạ Phàm (MTF)🔔 Thần Tiên / Hạ Phàm (MTF) Indicator – modified & optimized for real trading practice.
✅ For educational and reference purposes only – not financial advice.
📩 To get the optimized settings & detailed trading strategy, contact me on Telegram: @NDucnhan79
BASE - Consolidation with Fractal BreakoutsHow It Works
This indicator analyzes historical price data to find periods where the market is trading within a relatively tight range, which is a key characteristic of consolidation. Once a consolidation period is identified, it draws a channel showing the upper and lower price boundaries. The indicator then looks for a breakout, which is a significant price movement beyond these boundaries.
Fractal Breakouts: The script uses a fractal-based approach to confirm breakouts. A fractal is a specific price pattern that marks a high or low point in the market. The code identifies a breakout when the price breaks above a previous fractal high (an upward breakout) or below a previous fractal low (a downward breakout).
Visual Elements: The indicator provides several visual cues to help traders:
Consolidation Zone: It shades the area between the high and low of the consolidation period to make it visually distinct.
Boundary Lines: It draws dashed lines marking the high and low prices of the consolidation range.
Middle Line: An optional line is displayed at the 50% mark of the consolidation range.
Breakout Symbols: It places up (⬆) or down (⬇) arrow symbols on the chart to indicate the direction of a confirmed breakout.
Candle Colors: It can optionally color the price candles themselves to signal a breakout.
Alerts: The script is configured to trigger an alert when a breakout occurs, notifying the user.
Customization
The script offers several user-configurable settings to tailor its behavior, which are accessed through the indicator's settings menu:
Loopback Period: Controls the number of past bars the indicator looks at to identify price fractals.
Min Consolidation Length: Sets the minimum number of bars required to define a valid consolidation period.
Paint Consolidation Area: A toggle to show or hide the shaded consolidation zone.
Show Fractal Breakout Symbols: A toggle to show or hide the breakout symbols.
Show Middle Price Line: A toggle to show or hide the middle price line.
Color Candles on Breakout: A toggle to enable or disable coloring the candles during a breakout.
This tool is useful for traders who employ breakout strategies, as it automates the process of identifying potential entry and exit points after a period of market indecision.
Hilly 3.0 Advanced Crypto Scalping Strategy - 1 & 5 Min ChartsHow to Use
Copy the Code: Copy the script above.
Paste in TradingView: Open TradingView, go to the Pine Editor (bottom of the chart), paste the code, and click “Add to Chart.”
Check for Errors: Verify no errors appear in the Pine Editor console. The script uses Pine Script v5 (@version=5).
Select Timeframe:
1-Minute Chart: Use defaults (emaFastLen=7, emaSlowLen=14, rsiLen=10, rsiOverbought=80, rsiOversold=20, slPerc=0.5, tpPerc=1.0, useCandlePatterns=false, patternLookback=10).
5-Minute Chart: Adjust to emaFastLen=9, emaSlowLen=21, rsiLen=14, rsiOverbought=75, rsiOversold=25, slPerc=0.8, tpPerc=1.5, useCandlePatterns=true, patternLookback=10.
Apply to Chart: Use a liquid crypto pair (e.g., BTC/USDT, ETH/USDT on Binance or Coinbase).
Verify Signals:
Green “BUY” or “EMA BUY” labels and triangle-up arrows below candles for bullish signals (EMA crossovers, bullish engulfing, hammer, doji, morning star, three white soldiers, double bottom).
Red “SELL” or “EMA SELL” labels and triangle-down arrows above candles for bearish signals (EMA crossovers, bearish engulfing, shooting star, doji, evening star, three black crows, double top).
Green/red background highlights for signal candles.
Backtest: Use TradingView’s Strategy Tester to evaluate performance over 1–3 months, checking Net Profit, Win Rate, and Drawdown.
Demo Test: Run on a demo account to confirm signal visibility and performance before trading with real funds.
Multi-Supertrend 4 IN 1 TRADING Multi-TimeframeKey Features
Four Supertrends in One: Includes four predefined settings based on a common trading system:
Fast: Very sensitive to price changes, ideal for identifying potential short-term entries.
Medium: A balanced setting that filters out some of the market noise.
Slow: Helps define the medium-term trend, ignoring minor fluctuations.
Trend Bars with Okuninushi Line Filter# Trend Bars with Okuninushi Line Filter: A Powerful Trading Indicator
## Introduction
The **Trend Bars with Okuninushi Line Filter** is an innovative technical indicator that combines two powerful concepts: trend bar analysis and the Okuninushi Line filter. This indicator helps traders identify high-quality trending moves by analyzing candle body strength relative to the overall price range while ensuring the price action aligns with the dominant market structure.
## What Are Trend Bars?
Trend bars are candles where the body (distance between open and close) represents a significant portion of the total price range (high to low). These bars indicate strong directional momentum with minimal indecision, making them valuable signals for trend continuation.
### Key Characteristics:
- **Strong directional movement**: Large body relative to total range
- **Minimal upper/lower shadows**: Shows sustained pressure in one direction
- **High conviction**: Represents decisive market action
## The Okuninushi Line Filter
The Okuninushi Line, also known as the Kijun Line in Ichimoku analysis, is calculated as the midpoint of the highest high and lowest low over a specified period (default: 52 periods).
**Formula**: `(Highest High + Lowest Low) / 2`
This line acts as a dynamic support/resistance level and trend filter, helping to:
- Identify the overall market bias
- Filter out counter-trend signals
- Provide confluence for trade entries
## How the Indicator Works
The indicator combines these two concepts with the following logic:
### Bull Trend Bars (Green)
A candle is colored **green** when ALL conditions are met:
1. **Bullish candle**: Close > Open
2. **Strong body**: |Close - Open| ≥ Threshold × (High - Low)
3. **Above trend filter**: Close > Okuninushi Line
### Bear Trend Bars (Red)
A candle is colored **red** when ALL conditions are met:
1. **Bearish candle**: Close < Open
2. **Strong body**: |Close - Open| ≥ Threshold × (High - Low)
3. **Below trend filter**: Close < Okuninushi Line
### Neutral Bars (Gray)
All other candles that don't meet the complete criteria are colored **gray**.
## Customizable Parameters
### Trend Bar Threshold
- **Range**: 10% to 100%
- **Default**: 75%
- **Purpose**: Controls how "strong" a candle must be to qualify as a trend bar
**Threshold Effects:**
- **Low (10-30%)**: More sensitive, catches smaller trending moves
- **Medium (50-75%)**: Balanced approach, filters out most noise
- **High (80-100%)**: Very selective, only captures the strongest moves
### Okuninushi Line Length
- **Default**: 52 periods
- **Purpose**: Determines the lookback period for calculating the midpoint
- **Common Settings**:
- 26 periods: More responsive to recent price action
- 52 periods: Standard setting, good balance
- 104 periods: Longer-term trend perspective
## Trading Applications
### 1. Trend Continuation Signals
- **Green bars**: Look for bullish continuation opportunities
- **Red bars**: Consider bearish continuation setups
- **Gray bars**: Exercise caution, mixed signals
### 2. Market Structure Analysis
- Clusters of same-colored bars indicate strong trends
- Alternating colors suggest choppy, indecisive markets
- Transition from red to green (or vice versa) may signal trend changes
### 3. Entry Timing
- Use colored bars as confirmation for existing trade setups
- Wait for color alignment with your market bias
- Avoid trading during predominantly gray periods
### 4. Risk Management
- Gray bars can serve as early warning signs of weakening trends
- Color changes might indicate appropriate exit points
- Use in conjunction with other risk management tools
## Advantages
1. **Dual Filtering**: Combines momentum (trend bars) with trend direction (Okuninushi Line)
2. **Visual Clarity**: Immediate visual feedback through candle coloring
3. **Customizable**: Adjustable parameters for different trading styles
4. **Versatile**: Works across multiple timeframes and instruments
5. **Objective**: Rule-based system reduces subjective interpretation
## Limitations
1. **Lagging Nature**: Based on historical price data
2. **False Signals**: Can produce whipsaws in choppy markets
3. **Parameter Sensitivity**: Requires optimization for different instruments
4. **Market Conditions**: May be less effective in ranging markets
## Best Practices
### Optimization Tips:
- **Volatile Markets**: Use higher thresholds (80-90%)
- **Steady Trends**: Use moderate thresholds (60-75%)
- **Short-term Trading**: Shorter Okuninushi Line periods (26)
- **Long-term Analysis**: Longer Okuninushi Line periods (104+)
### Combination Strategies:
- Pair with volume indicators for confirmation
- Use alongside support/resistance levels
- Combine with other trend-following indicators
- Consider market context and overall trend direction
## Conclusion
The Trend Bars with Okuninushi Line Filter offers traders a sophisticated yet intuitive way to identify high-quality trending moves. By combining the momentum characteristics of trend bars with the directional filter of the Okuninushi Line, this indicator helps traders focus on the most promising opportunities while avoiding low-probability setups.
Remember that no single indicator should be used in isolation. Always consider market context, risk management, and other technical factors when making trading decisions. The true power of this indicator lies in its ability to quickly highlight periods of strong, aligned price action – exactly what trend traders are looking for.
---
*Disclaimer: This article is for educational purposes only and should not be considered as financial advice. Always conduct your own research and consider your risk tolerance before making any trading decisions.*
Average True Range DisplayThis is a simple number on the screen showing current timeframes average true range.
Hilly's Reversal Scalping Strategy - 5 Min CandlesHow to Use
Copy the Code: Copy the script above.
Paste in TradingView: Open TradingView, go to the Pine Editor (bottom of the chart), paste the code, and click “Add to Chart.”
Set Timeframe: Ensure the chart is set to 5-minute candles (TradingView: right-click chart > Timeframe > 5 Minutes).
Check for Errors: Verify no errors appear in the Pine Editor console.
Apply to Chart: Use a liquid crypto pair (e.g., BTC/USDT, ETH/USDT on Binance or Coinbase).
Verify Signals:
Green “BUY” labels and triangle-up arrows for bullish reversals (e.g., bullish engulfing, hammer, doji, morning star, three white soldiers, double bottom in a downtrend).
Red “SELL” labels and triangle-down arrows for bearish reversals (e.g., bearish engulfing, shooting star, doji, evening star, three black crows, double top in an uptrend).
Green/red background highlights for signal candles.
Backtest: Use TradingView’s Strategy Tester to evaluate performance over 1–3 months, checking Net Profit, Win Rate, and Drawdown.
Demo Test: Run on a demo account to confirm signal visibility and performance before trading with real funds.
Troubleshooting
If Errors Occur: If any errors appear in TradingView’s Pine Editor console (e.g., “Syntax error” or “Invalid argument”), please share the exact error messages to diagnose environment-specific issues.
Signal Overload: If too many signals appear, increase patternLookback to 15 or set volFilter = volume > volMa * 2.0.
Missed Signals: If signals are too rare, set useVolumeFilter=false or reduce patternLookback to 5.
Additional Features: If you need alerts, other indicators (e.g., EMA, RSI), or dynamic arrow sizing, please specify. Note that dynamic sizing caused errors previously, so I’ve kept size=size.normal.
Trend Analyzer MACD EnhancedTrend Analyzer MACD Enhanced
Advanced trend analysis with MACD, RSI, Volume and Divergence detection!
Overview
This comprehensive indicator combines multiple technical analysis tools into one powerful visualization. It features dynamic background coloring, real-time signal strength calculation, and automatic divergence detection for complete market analysis.
Key Features
✅ Multi-Indicator Analysis- MACD, RSI, and Volume in one indicator
✅ Divergence Detection - Automatic bullish and bearish divergence identification
✅ Dynamic Background - Color-coded trend zones with smooth transitions
✅ Signal Strength - Weighted calculation showing overall market sentiment (0-100%)
✅ Trend Change Detection - Visual markers for trend reversals
✅ Information Table - Real-time status of all indicators
How It Works
The indicator calculates signal strength using weighted analysis:
- MACD (50%) - Primary trend momentum
- RSI (30%) - Overbought/oversold conditions
- Volume (20%) - Volume confirmation
Signal Strength Range: -100% to +100%
Visual Elements
Background Colors:
- 🟢 **Green** - Uptrend (intensity based on signal strength)
- 🔴 **Red** - Downtrend (intensity based on signal strength)
- ⚪ **Gray** - Neutral/sideways market
Trend Markers:
- 🔺 **Green Triangle Up** - Start of new uptrend
- 🔻 **Red Triangle Down** - Start of new downtrend
- 📏 **Vertical Lines** - Trend change confirmation
Information Table
Real-time display showing:
- Trend - Current trend state with color coding
- MACD - Direction and crossover status
- RSI - Level and overbought/oversold status
- Volume - Level and trend direction
- Divergence - Current divergence status
- Signal Strength - Overall percentage
Alerts
Built-in alerts for:
- Strong Buy/Sell Signals - High probability setups
- Divergence Signals - Early reversal warnings
Settings
MACD:Fast (12), Slow (26), Signal (9)
RSI:Length (14), Overbought (70), Oversold (30)
Volume:MA Length (20), Threshold (1.5x)
Display:Toggle RSI, Volume, and Table visibility
Best Practices
🎯 Works best in trending markets
📊 Use in separate window below main chart
⚡ Combine with price action analysis
🛡️ Always use proper risk management
Pro Tips
- Green background = Strong uptrend, Red background = Strong downtrend
- Signal strength > 50% = Very bullish, < -50% = Very bearish
- Watch for divergence signals for early reversal warnings
- Use the information table for quick market assessment
---
Created with ❤️ for the trading community
This indicator is free to use for both commercial and non-commercial purposes.
CTS-StochasticThis Pine Script code defines a custom technical indicator for the TradingView platform called "CTS-Stochastic Complete". It calculates and displays a standard stochastic oscillator and generates trading signals based on unconventional crossover logic.
Here is a breakdown of its functionality:
Core Functionality
The script calculates the Stochastic Oscillator, a momentum indicator that compares a particular closing price of an asset to a range of its prices over a certain period of time. It consists of two lines:
%K Line: The main stochastic line, calculated and then smoothed.
%D Line: A moving average of the %K line, acting as a signal line.
These two lines oscillate between 0 and 100.
Key Sections of the Code:
Indicator Declaration:
indicator("CTS-Stochastic Complete", ... overlay=false): This line declares the script as an indicator that will be displayed in a separate panel below the main price chart.
User Inputs:
You can customize the indicator's parameters from the settings menu:
Stochastic Length: The lookback period for the stochastic calculation (default is 14).
%K Smoothing: The period for smoothing the raw stochastic to create the %K line (default is 3).
%D Smoothing: The period for the moving average of the %K line to create the %D line (default is 3).
Upper Band: The threshold for the overbought level (default is 65).
Lower Band: The threshold for the oversold level (default is 35).
Plotting:
It plots the %K line in blue and the %D line in orange.
It draws two horizontal lines: a red "Upper Band" for the overbought level and a green "Lower Band" for the oversold level.
Signal Logic and Visualization:
Buy Signal: A green triangle pointing up appears at the top of the indicator window when the blue %K line crosses above the red overBought line.
Sell Signal: A red triangle pointing down appears at the bottom of the indicator window when the blue %K line crosses below the green underSold line.
Note: The signal logic is unconventional. Typically, a buy signal is generated when the stochastic crosses up from the oversold area, and a sell signal occurs when it crosses down from the overbought area. This script's logic is reversed from the traditional interpretation.
Alerts:
The script includes alertcondition functions that allow you to create server-side alerts in TradingView. You can set up notifications for when a "Buy Signal" or "Sell Signal" occurs based on the logic described above.
Panel Profesional Widget - Multi-Criterio SmartPromptObservación de Mercado, Permite evaluar las mejores condiciones antes de ingresar.
All in 1 by PKAll in one indicator comprising of stock name and sector, adr %, Market cap, and moving averages
LE Watchlist🔧 How to use this in TradingView:
Copy → paste into Pine Editor → click Add to Chart.
Go to your Watchlist → click the 3 dots → Add Column → Indicators.
Pick Above 8EMA & Premarket High Column.
Now your watchlist will show:
✔ (green check) if price is above both 8 EMA and premarket high.
✖ (red X) if not.
ATR STOPLOSS FINDER 📌 English Explanation
This script is an ATR (Average True Range) Stop Loss Finder with a 5-bar maximum marker.
Purpose:
Helps traders visualize dynamic stop loss levels based on ATR, and highlights the most recent maximum stop value within a given lookback period.
Key Features:
1. ATR Calculation:
- Calculates ATR using the selected smoothing method (RMA, SMA, EMA, WMA).
- Multiplied by a user-defined multiplier (default: ×1.01).
2. Long Stop Line:
- A trailing stop is drawn below the candle’s low (Low – ATR × Multiplier).
3. All Stop Dots:
- Small wine-colored dots are plotted along the stop line.
4. 5-bar MAX Dots:
- Within the last 5 bars (customizable), the highest stop value is highlighted with larger, brighter dots.
5. Label:
- The most recent 5-bar maximum stop is displayed with a label above the bar, pointing downward so it doesn’t block the candle.
6. Customization:
- Inputs allow adjustments for ATR length, smoothing type, multiplier, and lookback window.
Usage:
This indicator is useful for setting stop losses dynamically in trending markets. It visually tracks where your ATR-based stop should be and shows the strongest recent level.
📌 한글 설명
이 스크립트는 ATR(평균 진폭 지표) 기반 스탑로스 찾기 + 최근 5봉 최고 스탑 표시기입니다.
목적:
트레이더가 ATR 기반으로 변동성에 맞춘 동적 스탑로스를 설정하고,
최근 구간 중 가장 강력한 스탑 레벨을 시각적으로 확인할 수 있게 해줍니다.
핵심 기능:
1. ATR 계산:
- 선택한 이동평균 방식(RMA, SMA, EMA, WMA)으로 ATR을 계산.
- 사용자 지정 배수(기본 1.01배)를 곱함.
2. 롱 스탑 라인:
- 각 봉의 저가에서 (ATR × 배수)를 뺀 값으로 스탑 라인 생성.
3. 모든 스탑 점:
- 스탑 라인 위에 작은 와인색 점을 찍어 시각적으로 확인.
4. 최근 5봉 MAX 점:
- 최근 5봉(조정 가능) 동안의 최고 스탑 값을 더 진하고 크게 표시.
5. 라벨 표시:
- 최신 5봉 최고 스탑 값은 봉 위에 라벨로 표시되며, 꼭지는 아래로 향해 봉을 가리킴 → 봉을 가리지 않음.
6. 사용자 설정:
- ATR 길이, 이동평균 방식, 배수, 룩백 기간 등을 자유롭게 조정 가능.
활용법:
추세장에서 변동성에 맞춘 손절 라인을 자동으로 그려주므로 진입 후 스탑로스를 관리하는 데 유용합니다.
최근 최고 스탑 지점을 강조해주어 리스크 관리에 도움을 줍니다.
BASE - Consolidation with Fractal BreakoutsHow It Works
This indicator analyzes historical price data to find periods where the market is trading within a relatively tight range, which is a key characteristic of consolidation. Once a consolidation period is identified, it draws a channel showing the upper and lower price boundaries. The indicator then looks for a breakout, which is a significant price movement beyond these boundaries.
Fractal Breakouts: The script uses a fractal-based approach to confirm breakouts. A fractal is a specific price pattern that marks a high or low point in the market. The code identifies a breakout when the price breaks above a previous fractal high (an upward breakout) or below a previous fractal low (a downward breakout).
Visual Elements: The indicator provides several visual cues to help traders:
Consolidation Zone: It shades the area between the high and low of the consolidation period to make it visually distinct.
Boundary Lines: It draws dashed lines marking the high and low prices of the consolidation range.
Middle Line: An optional line is displayed at the 50% mark of the consolidation range.
Breakout Symbols: It places up (⬆) or down (⬇) arrow symbols on the chart to indicate the direction of a confirmed breakout.
Candle Colors: It can optionally color the price candles themselves to signal a breakout.
Alerts: The script is configured to trigger an alert when a breakout occurs, notifying the user.
Customization
The script offers several user-configurable settings to tailor its behavior, which are accessed through the indicator's settings menu:
Loopback Period: Controls the number of past bars the indicator looks at to identify price fractals.
Min Consolidation Length: Sets the minimum number of bars required to define a valid consolidation period.
Paint Consolidation Area: A toggle to show or hide the shaded consolidation zone.
Show Fractal Breakout Symbols: A toggle to show or hide the breakout symbols.
Show Middle Price Line: A toggle to show or hide the middle price line.
Color Candles on Breakout: A toggle to enable or disable coloring the candles during a breakout.
This tool is useful for traders who employ breakout strategies, as it automates the process of identifying potential entry and exit points after a period of market indecision.
Scalp Flags — Price Action EMA/RSI//@version=5
indicator("TEST FLAGS OVERLAY", overlay=true)
// simple EMAs
fast = ta.ema(close, 9)
slow = ta.ema(close, 21)
// signals
buy = ta.crossover(fast, slow)
sell = ta.crossunder(fast, slow)
// draw on price panel
plotshape(buy, title="BUY", location=location.belowbar, style=shape.labelup, color=color.green, text="BUY", size=size.small)
plotshape(sell, title="SELL", location=location.abovebar, style=shape.labeldown, color=color.red, text="SELL", size=size.small)
// show EMAs for verification
plot(fast, color=color.new(color.green, 0))
plot(slow, color=color.new(color.red, 0))
ATR Histogram vs High-Low//@version=5
indicator("RSI+Price Confluence", overlay=false)
rsiSrc = input(close)
rsiLen = input.int(14)
emaRSI = input.int(9)
wmaRSI = input.int(45)
tf = input.timeframe("60")
emaF = input.int(21)
emaS = input.int(52)
// Lấy EMA và WMA của RSI HTF chỉ trong 1 lần request
ema_rsi = request.security(syminfo.tickerid, tf, ta.ema(ta.rsi(rsiSrc, rsiLen), emaRSI))
wma_rsi = request.security(syminfo.tickerid, tf, ta.wma(ta.rsi(rsiSrc, rsiLen), wmaRSI))
// Xác định lực RSI
luc_up = ema_rsi > wma_rsi
luc_down = ema_rsi < wma_rsi
// Lực giá (EMA nhanh & chậm)
gia_up = ta.ema(close, emaF) > ta.ema(close, emaS)
gia_down = ta.ema(close, emaF) < ta.ema(close, emaS)
// Tín hiệu cuối cùng
isUP = luc_up and gia_up
isDOWN = luc_down and gia_down
isNEU = not isUP and not isDOWN
// Vẽ cột tín hiệu, color= đầy đủ
plot(isUP ? 1 : na, title="UP", style=plot.style_columns, color=color.green, linewidth=6)
plot(isDOWN ? -1 : na, title="DOWN", style=plot.style_columns, color=color.red, linewidth=6)
plot(isNEU ? 0 : na, title="NEU", style=plot.style_columns, color=color.yellow, linewidth=6)
// Đường zero
hline(0, "", color=color.gray, linestyle=hline.style_dotted)