Zero Lag Liquidity [AlgoAlpha]🟠 OVERVIEW
This script plots liquidity zones with zero lag using lower-timeframe wick profiles and high-volume wicks to mark key price reactions. It’s called Zero Lag Liquidity because it captures significant liquidity imbalances in real time by processing lower-TF price-volume distributions directly inside the wick of abnormal candles. The tool builds a volume histogram inside long upper/lower wicks, then calculates a local Point of Control (POC) to mark the price where most volume occurred. These levels act as visual liquidity zones, which can trigger labels, break signals, and trend detection depending on price interaction.
🟠 CONCEPTS
The core concept relies on identifying high-volume candles with unusually long wicks—often a sign of opposing liquidity. When a large upper or lower wick appears with a strong volume spike, the script builds a histogram of lower-timeframe closes and volumes inside that wick. It bins the wick into segments, sums volume per bin, and finds the POC. This POC becomes the liquidity level. The script then dynamically tracks whether price breaks above or rejects off these levels, adjusts the active trend regime accordingly, and highlights bars to help users spot continuation or reversal behavior. The logic avoids repainting or subjective interpretation by using fixed thresholds and lower-TF price action.
🟠 FEATURES
Dynamic liquidity levels rendered at POC of significant wicks, colored by bullish/bearish direction.
Break detection that removes levels once price decisively crosses them twice in the same direction.
Rejection detection that plots ▲/▼ markers when price bounces off levels intrabar.
Volume labels for each level, shown either as raw volume or percentage of total level volume.
Candle coloring based on trend direction (break-dominant).
🟠 USAGE
Use this indicator to track where liquidity has most likely entered the market via abnormal wick events. When a long wick forms with high volume, the script looks inside it (using your chosen lower timeframe) and marks the most traded price within it. These levels can serve as expected reversal or breakout zones. Rejections are marked with small arrows, while breaks trigger trend shifts and remove the level. You can toggle trend coloring to see directional bias after a breakout. Use the wick multiplier to control how selective the detector is (higher = stricter). Alerts and label modes help customize the signal for different asset types and chart styles.
Indicadores e estratégias
TCP | Market Session | Session Analyzer📌 TCP | Market Session Indicator | Crypto Version
A powerful, real-time market session visualization tool tailored for crypto traders. Track the heartbeat of Asia, Europe, and US trading hours directly on your chart with live session boxes, behavioral analysis, liquidity grab detection, and countdown timers. Know when the action starts, how the market behaves, and where the traps lie.
🔰 Introduction:
Trade the Right Hours with the Right Tools
Time matters in trading. Most significant moves happen during key sessions—and knowing when and how each session unfolds can give you a sharp edge. The TCP Market Session Indicator, developed by Trade City Pro (TCP), puts professional session tracking and behavioral insights at your fingertips.
Whether you're a scalper or swing trader, this indicator gives you the timing context to enter and exit trades with greater confidence and clarity.
🕒 Core Features
• Live Session Boxes :
Highlight active ranges during Asia, Europe, and US sessions with dynamic high/low updates.
• Session Start/End Labels :
Know exactly when each session begins and ends plotted clearly on your chart with context.
• Session Behavior Analysis :
At the end of each session, the indicator classifies the price action as:
- Trend Up
- Trend Down
- Consolidation
- Manipulation
• Liquidity Grab Detection: Automatically detects possible stop hunts (fake breakouts) and marks them on the chart with precision filters (volume, ATR, reversal).
• Session Countdown Table: A live dashboard showing:
- Current active session
- Time left in session
- Upcoming session and how many minutes until it starts
- Utility time converter (e.g. 90 min = 01:30)
• Vertical Session Lines: Visualize past and upcoming session boundaries with customizable history and future range.
• Multi-Day Support: Draw session ranges for previous, current, and future days for better backtesting and forecasting.
⚙️ Settings Panel
Customize everything to fit your trading style and schedule:
• Session Time Settings:
Set the opening and closing time for each session manually using UTC-based minute inputs.
→ For example, enter Asia Start: 0, Asia End: 480 for 00:00–08:00 UTC.
This gives full flexibility to adjust session hours to match your preferred market behavior.
• Enable or Disable Elements:
Toggle the visibility of each session (Asia, Europe, US), as well as:
- Session Boxes
- Countdown Table
- Session Lines
- Liquidity Grab Labels
• Timezone Selection:
Choose between using UTC or your chart’s local timezone for session calculations.
• Customization Options:
Select number of past and future days to draw session data
Adjust vertical line transparency
Fine-tune label offset and spacing for clean layout
📊 Smart Session Boxes
Each session box tracks high, low, open, and close in real time, providing visual clarity on market structure. Once a session ends, the box closes, and the behavior type is saved and labeled ideal for spotting patterns across sessions.
• Asia: Green Box
• Europe: Orange Box
• US: Blue Box
💡 Why Use This Tool?
• Perfect Timing: Don’t get chopped in low-liquidity hours. Focus on sessions where volume and volatility align.
• Pattern Recognition: Study how price behaves session-to-session to build better strategies.
• Trap Detection: Spot manipulation moves (liquidity grabs) early and avoid common retail pitfalls.
• Macro Session Mapping: Use as a foundational layer to align trades with market structure and news cycles.
🔍 Example Use Case
You're watching BTC at 12:45 UTC. The indicator tells you:
The Asia session just ended (label shows “Asia Session End: Trend Up”)
Europe session starts in 15 minutes
A liquidity grab just triggered at the previous high—label confirmed
Now you know who’s active, what the market just did, and what’s about to start—all in one glance.
✅ Why Traders Trust It
• Visual & Intuitive: Fully chart-based, no clutter, no guessing
• Crypto-Focused: Designed specifically for 24/7 crypto markets (not outdated forex models)
• Non-Repainting: All labels and boxes stay as printed—no tricks
• Reliable: Tested across multiple exchanges, pairs, and timeframes
🧩 Built by Trade City Pro (TCP)
The TCP Market Session Indicator is part of a suite of professional tools used by over 150,000 traders. It’s coded in Pine Script v6 for full compatibility with TradingView’s latest capabilities.
🔗 Resources
• Tutorial: Learn how to analyze sessions like a pro in our TradingView guide:
"TradeCityPro Academy: Session Mapping & Liquidity Traps"
• More Tools: Explore our full library of indicators on
Advanced Market TheoryADVANCED MARKET THEORY (AMT)
This is not an indicator. It is a lens through which to see the true nature of the market.
Welcome to the definitive application of Auction Market Theory. What you have before you is the culmination of decades of market theory, fused with state-of-the-art data analysis and visual engineering. It is an institutional-grade intelligence engine designed for the serious trader who seeks to move beyond simplistic indicators and understand the fundamental forces that drive price.
This guide is your complete reference. Read it. Study it. Internalize it. The market is a complex story, and this tool is the language with which to read it.
PART I: THE GRAND THEORY - A UNIVERSE IN AN AUCTION
To understand the market, you must first understand its purpose. The market is a mechanism of discovery, organized by a continuous, two-way auction.
This foundational concept was pioneered by the legendary trader J. Peter Steidlmayer at the Chicago Board of Trade in the 1980s. He observed that beneath the chaotic facade of ticking prices lies a beautifully organized structure. The market's primary function is not to go up or down, but to facilitate trade by seeking a price level that encourages the maximum amount of interaction between buyers and sellers. This price is "value."
The Organizing Principle: The Normal Distribution
Over any given period, the market's activity will naturally form a bell curve (a normal distribution) turned on its side. This is the blueprint of the auction.
The Point of Control (POC): This is the peak of the bell curve—the single price level where the most trade occurred. It represents the point of maximum consensus, the "fairest price" as determined by the market participants. It is the gravitational center of the session.
The Value Area (VA): This is the heart of the bell curve, typically containing 70% of the session's activity (one standard deviation). This is the zone of "accepted value." Prices within this area are considered fair and are where the market is most comfortable conducting business.
The Extremes: The thin areas at the top and bottom of the curve are the "unfair" prices. These are levels where one side of the auction (buyers at the top, sellers at the bottom) was shut off, and trade was quickly rejected. These are areas of emotional trading and excess.
The Narrative of the Day: Balance vs. Imbalance
Every trading session is a story of the market's search for value.
Balance: When the market rotates and builds a symmetrical, bell-shaped profile, it is in a state of balance . Buyers and sellers are in agreement, and the market is range-bound.
Imbalance: When the market moves decisively away from a balanced area, it is in a state of imbalance . This is a trend. The market is actively seeking new information and a new area of value because the old one was rejected.
Your Purpose as a Trader
Your job is to read this story in real-time. Are we in balance or imbalance? Is the auction succeeding or failing at these new prices? The Advanced Market Theory engine is your Rosetta Stone to translate this complex narrative into actionable intelligence.
PART II: THE AMT ENGINE - AN EVOLUTION IN MARKET VISION
A standard market profile tool shows you a picture. The AMT Engine gives you the architect's full schematics, the engineer's stress tests, and the psychologist's behavioral analysis, all at once.
This is what makes it the Advanced Market Theory. We have fused the timeless principles with layers of modern intelligence:
TRINITY ANALYSIS: You can view the market through three distinct lenses. A Volume Profile shows where the money traded. A TPO (Time) Profile shows where the market spent its time. The revolutionary Hybrid Profile fuses both, giving you a complete picture of market conviction—marrying volume with duration.
AUTOMATED STRUCTURAL DECODING: The engine acts as your automated analyst, identifying critical structural phenomena in real-time:
Poor Highs/Lows: Weak auction points that signal a high probability of reversal.
Single Prints & Ledges: Footprints of rapid, aggressive market moves and areas of strong institutional acceptance.
Day Type Classification: The engine analyzes the session's personality as it develops ("Trend Day," "Normal Day," etc.), allowing you to adapt your strategy to the market's current character.
MACRO & MICRO FUSION: Via the Composite Profile , the engine merges weeks of data to reveal the major institutional battlegrounds that govern long-term price action. You can see the daily skirmish and the multi-month war on a single chart.
ORDER FLOW INTELLIGENCE: The ultimate advancement is the integrated Cumulative Volume Delta (CVD) engine. This moves beyond structure to analyze the raw aggression of buyers versus sellers. It is your window into the market's soul, automatically detecting critical Divergences that often precede major trend shifts.
ADAPTIVE SIGNALING: The engine's signal generation is not static; it is a thinking system. It evaluates setups based on a multi-factor Confluence Score , understands the market Regime (e.g., High Volatility), and adjusts its own confidence ( Probability % ) based on the complete context.
This is not a tool that gives you signals. This is a tool that gives you understanding .
PART III: THE VISUAL KEY - A LEXICON OF MARKET STRUCTURE
Every element on your chart is a piece of information. This is your guide to reading it fluently.
--- THE CORE ARCHITECTURE ---
The Profile Histogram: The primary visual on the left of each session. Its shape is the story. A thin profile is a trend; a fat, symmetrical profile is balance.
Blue Box : The zone of accepted, "fair" value. The heart of the session's business.
Bright Orange Line & Label : The Point of Control. The gravitational center. The price of maximum consensus. The most significant intraday level.
Dashed Blue Lines & Labels : The boundaries of value. Critical inflection points where the market decides to either remain in balance or seek value elsewhere.
Dashed Cyan Lines & Labels : The major, long-term structural levels derived from weeks of data. These are institutional reference points and carry immense weight. Treat them as primary support and resistance.
Dashed Orange Lines & Labels : Marks a Poor or Unfinished Auction . These represent emotional, weak extremes and are high-probability targets for future price action.
Diamond Markers : Mark Single Prints , which are footprints of aggressive, one-sided moves that left a "liquidity vacuum." Price is often drawn back to these levels to "repair" the poor structure.
Arrow Markers : Mark Ledges , which are areas of strong horizontal acceptance. They often act as powerful support/resistance in the future.
Dotted Gray Lines & Labels : The projected daily range based on multiples of the Initial Balance . Use them to set realistic profit targets and gauge the day's potential.
--- THE SIGNAL SUITE ---
Colored Triangles : These are your high-probability entry signals. The color is a strategic playbook:
Gold Triangle : ELITE Signal. An A+ setup with overwhelming confluence. This is the highest quality signal the engine can produce.
Yellow Triangle : FADE Signal. A counter-trend setup against an exhausted move at a structural extreme.
Cyan Triangle : BREAKOUT Signal. A momentum setup attempting to capitalize on a breakout from the value area.
Purple Triangle : ROTATION Signal. A mean-reversion setup within the value area, typically from one edge towards the POC.
Magenta Triangle : LIQUIDITY Signal. A sophisticated setup that identifies a "stop run" or liquidity sweep.
Percentage Number: The engine's calculated probability of success . This is not a guarantee, but a data-driven confidence score.
Dotted Gray Line: The signal's Entry Price .
Dashed Green Lines: The calculated Take Profit Targets .
Dashed Red Line: The calculated Stop Loss level.
PART IV: THE DASHBOARD - YOUR STRATEGIC COMMAND CENTER
The dashboard is your real-time intelligence briefing. It synthesizes all the engine's analysis into a clear, concise, and constantly updating summary.
--- CURRENT SESSION ---
POC, VAH, VAL: The live values for the core structure.
Profile Shape: Is the current auction top-heavy ( b-shaped ), bottom-heavy ( P-shaped ), or balanced ( D-shaped )?
VA Width: Is the value area expanding (trending) or contracting (balancing)?
Day Type: The engine's judgment on the day's personality. Use this to select the right strategy.
IB Range & POC Trend: Key metrics for understanding the opening sentiment and its evolution.
--- CVD ANALYSIS ---
Session CVD: The raw order flow. Is there more net buying or selling pressure in this session?
CVD Trend & DIVERGENCE: This is your order flow intelligence. Is the order flow confirming the price action? If "DIVERGENCE" flashes, it is a critical, high-alert warning of a potential reversal.
--- MARKET METRICS ---
Volume, ATR, RSI: Your standard contextual metrics, providing a quick read on activity, volatility, and momentum.
Regime: The engine's assessment of the broad market environment: High Volatility (favor breakouts), Low Volatility (favor mean reversion), or Normal .
--- PROFILE STATS, COMPOSITE, & STRUCTURE ---
These sections give you a quick quantitative summary of the profile structure, the major long-term Composite levels, and any active Poor Structures.
--- SIGNAL TYPES & ACTIVE SIGNAL ---
A permanent key to the signal colors and their meanings, along with the full details of the most recent active signal: its Type , Probability , Entry , Stop , and Target .
PART V: THE INPUTS MENU - CALIBRATING YOUR LENS
This engine is designed to be calibrated to your specific needs as a trader. Every input is a lever. This is not a "one size fits all" tool. The extensive tooltips are your built-in user manual, but here are the key areas of focus:
--- MARKET PROFILE ENGINE ---
Profile Mode: This is the most fundamental choice. Volume is the standard for price-based support and resistance. TPO is for analyzing time-based acceptance. Hybrid is the professional's choice, fusing both for a complete picture.
Profile Resolution: This is your zoom lens. Lower values for scalping and intraday precision. Higher values for a cleaner, big-picture view suitable for swing trading.
Composite Sessions: Your timeframe for macro analysis. 5-10 sessions for a weekly view; 20-30 sessions for a monthly, structural view.
--- SESSION & VALUE AREA ---
These settings must be configured correctly for your specific asset. The Session times are critical. The Initial Balance should reflect the key opening period for your market (60 minutes is standard for equities).
--- SIGNAL ENGINE & RISK MANAGEMENT ---
Signal Mode: THIS IS YOUR PERSONAL RISK PROFILE. Set it to Conservative to see only the absolute best A+ setups. Use Elite or Balanced for a standard approach. Use Aggressive only if you are an experienced scalper comfortable with managing more frequent, lower-probability setups.
ATR Multipliers: This suite gives you full, dynamic control over your risk/reward parameters. You can precisely define your initial stop loss distance and profit targets based on the market's current volatility.
A FINAL WORD FROM THE ARCHITECT
The creation of this engine was a journey into the very heart of market dynamics. It was born from a frustrating truth: that the most profound market theories were often confined to books and expensive institutional platforms, inaccessible to the modern retail trader. The goal was to bridge that gap.
The challenge was monumental. Making each discrete system—the volume profile, the TPO counter, the composite engine, the CVD tracker, the signal generator, the dynamic dashboard—work was a task in itself. But the true struggle, the frustrating, painstaking process that consumed countless hours, was making them work in unison . It was about ensuring the CVD analysis could intelligently inform the signal engine, that the day type classification could adjust the probability scores, and that the composite levels could provide context to the intraday structure, all in a seamless, real-time dance of data.
This engine is the result of that relentless pursuit of integration. It is built on the belief that a trader's greatest asset is not a signal, but clarity . It was designed to clear the noise, to organize the chaos, and to present the elegant, underlying logic of the market auction so that you can make better, more informed, and more confident decisions.
It is now in your hands. Use it not as a crutch, but as a lens. See the market for what it truly is.
"The market can remain irrational longer than you can remain solvent."
- John Maynard Keynes
DISCLAIMER
This script is an advanced analytical tool provided for informational and educational purposes only. It is not financial advice. All trading involves substantial risk, and past performance is not indicative of future results. The signals, probabilities, and metrics generated by this indicator do not constitute a recommendation to buy or sell any financial instrument. You, the user, are solely responsible for all trading decisions, risk management, and outcomes. Use this tool to supplement your own analysis and trading strategy.
PUBLISHING CATEGORIES
Volume Profile
Market Profile
Order Flow
On-Chain Signals [LuxAlgo]The On-Chain Signals indicator uses fundamental blockchain metrics to provide traders with an objective technical view of their favorite cryptocurrencies.
It uses IntoTheBlock datasets integrated within TradingView to generate four key signals: Net Network Growth, In the Money, Concentration, and Large Transactions.
Together, these four signals provide traders with an overall directional bias of the market. All of the data can be visualized as a gauge, table, historical plot, or average.
🔶 USAGE
The main goal of this tool is to provide an overall directional bias based on four blockchain signals, each with three possible biases: bearish, neutral, or bullish. The thresholds for each signal bias can be adjusted on the settings panel.
These signals are based on IntoTheBlock's On-Chain Signals.
Net network growth: Change in the total number of addresses over the last seven periods; i.e., how many new addresses are being created.
In the Money: Change in the seven-period moving average of the total supply in the money. This shows how many addresses are profitable.
Concentration: Change in the aggregate addresses of whales and investors from the previous period. These are addresses holding at least 0.1% of the supply. This shows how many addresses are in the hands of a few.
Large Transactions: Changes in the number of transactions over $100,000. This metric tracks convergence or divergence from the 21- and 30-day EMAs and indicates the momentum of large transactions.
All of these signals together form the blockchain's overall directional bias.
Bearish: The number of bearish individual signals is greater than the number of bullish individual signals.
Neutral: The number of bearish individual signals is equal to the number of bullish individual signals.
Bullish: The number of bullish individual signals is greater than the number of bearish individual signals.
If the overall directional bias is bullish, we can expect the price of the observed cryptocurrency to increase. If the bias is bearish, we can expect the price to decrease. If the signal is neutral, the price may be more likely to stay the same.
Traders should be aware of two things. First, the signals provide optimal results when the chart is set to the daily timeframe. Second, the tool uses IntoTheBlock data, which is available on TradingView. Therefore, some cryptocurrencies may not be available.
🔹 Display Mode
Traders have three different display modes at their disposal. These modes can be easily selected from the settings panel. The gauge is set by default.
🔹 Gauge
The gauge will appear in the center of the visible space. Traders can adjust its size using the Scale parameter in the Settings panel. They can also give it a curved effect.
The number of bars displayed directly affects the gauge's resolution: More bars result in better resolution.
The chart above shows the effect that different scale configurations have on the gauge.
🔹 Historical Data
The chart above shows the historical data for each of the four signals.
Traders can use this mode to adjust the thresholds for each signal on the settings panel to fit the behavior of each cryptocurrency. They can also analyze how each metric impacts price behavior over time.
🔹 Average
This display mode provides an easy way to see the overall bias of past prices in order to analyze price behavior in relation to the underlying blockchain's directional bias.
The average is calculated by taking the values of the overall bias as -1 for bearish, 0 for neutral, and +1 for bullish, and then applying a triangular moving average over 20 periods by default. Simple and exponential moving averages are available, and traders can select the period length from the settings panel.
🔶 DETAILS
The four signals are based on IntoTheBlock's On-Chain Signals. We gather the data, manipulate it, and build the signals depending on each threshold.
Net network growth
float netNetworkGrowthData = customData('_TOTALADDRESSES')
float netNetworkGrowth = 100*(netNetworkGrowthData /netNetworkGrowthData - 1)
In the Money
float inTheMoneyData = customData('_INOUTMONEYIN')
float averageBalance = customData('_AVGBALANCE')
float inTheMoneyBalance = inTheMoneyData*averageBalance
float sma = ta.sma(inTheMoneyBalance,7)
float inTheMoney = ta.roc(sma,1)
Concentration
float whalesData = customData('_WHALESPERCENTAGE')
float inverstorsData = customData('_INVESTORSPERCENTAGE')
float bigHands = whalesData+inverstorsData
float concentration = ta.change(bigHands )*100
Large Transactions
float largeTransacionsData = customData('_LARGETXCOUNT')
float largeTX21 = ta.ema(largeTransacionsData,21)
float largeTX30 = ta.ema(largeTransacionsData,30)
float largeTransacions = ((largeTX21 - largeTX30)/largeTX30)*100
🔶 SETTINGS
Display mode: Select between gauge, historical data and average.
Average: Select a smoothing method and length period.
🔹 Thresholds
Net Network Growth : Bullish and bearish thresholds for this signal.
In The Money : Bullish and bearish thresholds for this signal.
Concentration : Bullish and bearish thresholds for this signal.
Transactions : Bullish and bearish thresholds for this signal.
🔹 Dashboard
Dashboard : Enable/disable dashboard display
Position : Select dashboard location
Size : Select dashboard size
🔹 Gauge
Scale : Select the size of the gauge
Curved : Enable/disable curved mode
Select Gauge colors for bearish, neutral and bullish bias
🔹 Style
Net Network Growth : Enable/disable historical plot and choose color
In The Money : Enable/disable historical plot and choose color
Concentration : Enable/disable historical plot and choose color
Large Transacions : Enable/disable historical plot and choose color
Mutanabby_AI | Ultimate Algo | Remastered+Overview
The Mutanabby_AI Ultimate Algo Remastered+ represents a sophisticated trend-following system that combines Supertrend analysis with multiple moving average confirmations. This comprehensive indicator is designed specifically for identifying high-probability trend continuation and reversal opportunities across various market conditions.
Core Algorithm Components
**Supertrend Foundation**: The primary signal generation relies on a customizable Supertrend indicator with adjustable sensitivity (1-20 range). This adaptive trend-following tool uses Average True Range calculations to establish dynamic support and resistance levels that respond to market volatility.
**SMA Confirmation Matrix**: Multiple Simple Moving Averages (SMA 4, 5, 9, 13) provide layered confirmation for signal strength. The algorithm distinguishes between regular signals and "Strong" signals based on SMA 4 vs SMA 5 relationship, offering traders different conviction levels for position sizing.
**Trend Ribbon Visualization**: SMA 21 and SMA 34 create a visual trend ribbon that changes color based on their relationship. Green ribbon indicates bullish momentum while red signals bearish conditions, providing immediate visual trend context.
**RSI-Based Candle Coloring**: Advanced 61-tier RSI system colors candles with gradient precision from deep red (RSI ≤20) through purple transitions to bright green (RSI ≥79). This visual enhancement helps traders instantly assess momentum strength and overbought/oversold conditions.
Signal Generation Logic
**Buy Signal Criteria**:
- Price crosses above Supertrend line
- Close price must be above SMA 9 (trend confirmation)
- Signal strength determined by SMA 4 vs SMA 5 relationship
- "Strong Buy" when SMA 4 ≥ SMA 5
- Regular "Buy" when SMA 4 < SMA 5
**Sell Signal Criteria**:
- Price crosses below Supertrend line
- Close price must be below SMA 9 (trend confirmation)
- Signal strength based on SMA relationship
- "Strong Sell" when SMA 4 ≤ SMA 5
- Regular "Sell" when SMA 4 > SMA 5
Advanced Risk Management System
**Automated TP/SL Calculation**: The indicator automatically calculates stop loss and take profit levels using ATR-based measurements. Risk percentage and ATR length are fully customizable, allowing traders to adapt to different market conditions and personal risk tolerance.
**Multiple Take Profit Targets**:
- 1:1 Risk-Reward ratio for conservative profit taking
- 2:1 Risk-Reward for balanced trade management
- 3:1 Risk-Reward for maximum profit potential
**Visual Risk Display**: All risk management levels appear as both labels and optional trend lines on the chart. Customizable line styles (solid, dashed, dotted) and positioning ensure clear visualization without chart clutter.
**Dynamic Level Updates**: Risk levels automatically recalculate with each new signal, maintaining current market relevance throughout position lifecycles.
Visual Enhancement Features
**Customizable Display Options**: Toggle trend ribbon, TP/SL levels, and risk lines independently. Decimal precision adjustments (1-8 decimal places) accommodate different instrument price formats and personal preferences.
**Professional Label System**: Clean, informative labels show entry points, stop losses, and take profit targets with precise price levels. Labels automatically position themselves for optimal chart readability.
**Color-Coded Momentum**: The gradient RSI candle coloring system provides instant visual feedback on momentum strength, helping traders assess market energy and potential reversal zones.
Implementation Strategy
**Timeframe Optimization**: The algorithm performs effectively across multiple timeframes, with higher timeframes (4H, Daily) providing more reliable signals for swing trading. Lower timeframes work well for day trading with appropriate risk adjustments.
**Sensitivity Adjustment**: Lower sensitivity values (1-5) generate fewer but higher-quality signals, ideal for conservative approaches. Higher sensitivity (15-20) increases signal frequency for active trading styles.
**Risk Management Integration**: Use the automated risk calculations as baseline parameters, adjusting risk percentage based on account size and market conditions. The 1:1, 2:1, 3:1 targets enable systematic profit-taking strategies.
Market Application
**Trend Following Excellence**: Primary strength lies in capturing significant trend movements through the Supertrend foundation with SMA confirmation. The dual-layer approach reduces false signals common in single-indicator systems.
**Momentum Assessment**: RSI-based candle coloring provides immediate momentum context, helping traders assess signal strength and potential continuation probability.
**Range Detection**: The trend ribbon helps identify ranging conditions when SMA 21 and SMA 34 converge, alerting traders to potential breakout opportunities.
Performance Optimization
**Signal Quality**: The requirement for both Supertrend crossover AND SMA 9 confirmation significantly improves signal reliability compared to basic trend-following approaches.
**Visual Clarity**: The comprehensive visual system enables rapid market assessment without complex calculations, ideal for traders managing multiple instruments.
**Adaptability**: Extensive customization options allow fine-tuning for specific markets, trading styles, and risk preferences while maintaining the core algorithm integrity.
## Non-Repainting Design
**Educational Note**: This indicator uses standard TradingView functions (Supertrend, SMA, RSI) with normal behavior patterns. Real-time updates on current candles are expected and standard across all technical indicators. Historical signals on closed candles remain fixed and unchanged, ensuring reliable backtesting and analysis.
**Signal Confirmation**: Final signals are confirmed only when candles close, following standard technical analysis principles. The algorithm provides clear distinction between developing signals and confirmed entries.
Technical Specifications
**Supertrend Parameters**: Default sensitivity of 4 with ATR length of 11 provides balanced signal generation. Sensitivity range from 1-20 allows adaptation to different market volatilities and trading preferences.
**Moving Average Configuration**: SMA periods of 8, 9, and 13 create multi-layered trend confirmation, while SMA 21 and 34 form the visual trend ribbon for broader market context.
**Risk Management**: ATR-based calculations with customizable risk percentage ensure dynamic adaptation to market volatility while maintaining consistent risk exposure principles.
Recommended Settings
**Conservative Approach**: Sensitivity 4-5, RSI length 14, higher timeframes (4H, Daily) for swing trading with maximum signal reliability.
**Active Trading**: Sensitivity 6-8, RSI length 8-10, intermediate timeframes (1H) for balanced signal frequency and quality.
**Scalping Setup**: Sensitivity 10-15, RSI length 5-8, lower timeframes (15-30min) with enhanced risk management protocols.
## Conclusion
The Mutanabby_AI Ultimate Algo Remastered+ combines proven trend-following principles with modern visual enhancements and comprehensive risk management. The algorithm's strength lies in its multi-layered confirmation approach and automated risk calculations, providing both novice and experienced traders with clear signals and systematic trade management.
Success with this system requires understanding the relationship between signal strength indicators and adapting sensitivity settings to match current market conditions. The comprehensive visual feedback system enables rapid decision-making while the automated risk management ensures consistent trade parameters.
Practice with different sensitivity settings and timeframes to optimize performance for your specific trading style and risk tolerance. The algorithm's systematic approach provides an excellent framework for disciplined trend-following strategies across various market environments.
GOLD SCALPER SESSIONS - By The Homerun SeriesThis zones should be used to turn on/off your gold scalper, for access to our gold scalper please dm the author or @_theindiantrader_ on instagram
TOTAL3ES/ETH Mean ReversionTOTAL3ES/ETH Mean Reversion Indicator
Overview
The TOTAL3ES/ETH Mean Reversion indicator is a specialized tool designed exclusively for analyzing the ratio between TOTAL3 excluding stablecoins (TOTAL3ES) and Ethereum's market capitalization. This ratio provides crucial insights into the relative performance and valuation cycles between altcoins and ETH, making it an essential tool for cryptocurrency portfolio allocation and market timing decisions.
What This Indicator Measures
This indicator tracks the market cap ratio of all altcoins (excluding ETH and stablecoins) to Ethereum's market cap. When the ratio is:
Above 1.0 (Parity): Altcoins have a larger combined market cap than ETH
Below 1.0 (Parity): ETH's market cap exceeds the combined altcoin market cap
Key Features
Historical Context
Historical Range: 0.64 (July 2017 low) to 3.49 (all-time high)
Midpoint: 2.065 - the mathematical center of the historical range
Parity Line: 1.0 - the psychological level where altcoins = ETH market cap
Mean Reversion Zones
The indicator identifies extreme valuation zones based on historical data:
Upper Extreme Zone (~2.92 at 80% threshold): Suggests altcoins may be overvalued relative to ETH
Lower Extreme Zone (~1.21 at 80% threshold): Suggests altcoins may be undervalued relative to ETH
Visual Elements
Color-coded zones: Red shading for bearish reversion areas, green for bullish reversion areas
Multiple reference lines: Parity, midpoint, and historical extremes
Information table: Real-time metrics including current ratio, range position, and reversion pressure
Customizable display: Toggle zones, lines, and adjust transparency
How to Use This Indicator
Market Cycle Analysis
Extreme High Zone (Red): When ratio enters this zone, consider potential ETH outperformance
Extreme Low Zone (Green): When ratio enters this zone, consider potential altcoin season
Parity Crossovers: Monitor when ratio crosses above/below 1.0 for sentiment shifts
Portfolio Allocation Signals
High Ratio Values: May indicate overextended altcoin valuations relative to ETH
Low Ratio Values: May suggest undervalued altcoins relative to ETH
Midpoint Reversions: Historical tendency to revert toward the 2.065 midpoint
Alert Conditions
The indicator includes built-in alerts for:
Entering extreme high/low zones
Parity crossovers (above/below 1.0)
Mean reversion signals
Input Parameters
Display Settings
Show Reversion Zones: Toggle colored extreme zones on/off
Show Midpoint: Display the historical midpoint line
Show Parity Line: Show the 1.0 parity reference line
Zone Transparency: Adjust shaded area opacity (70-95%)
Calculation Settings
Reversion Strength Period: Moving average period for reversion calculations (10-50)
Extreme Threshold: Percentage of historical range defining extreme zones (0.5-1.0)
Information Table Metrics
The bottom-right table displays:
Current Ratio: Live TOTAL3ES/ETH value
Range Position: Current position within historical range (%)
From Parity: Distance from 1.0 parity level (%)
Reversion Pressure: Intensity of mean reversion forces (%)
Zone: Current market zone classification
Historical Range: Reference boundaries (0.64 - 3.49)
Midpoint: Historical center value
Important Notes
Chart Compatibility
Exclusively designed for CRYPTOCAP:TOTAL3ES/CRYPTOCAP:ETH
Built-in validation ensures proper chart usage
Will display error message if applied to incorrect charts
Trading Considerations
This is an analytical tool, not trading advice
Mean reversion is a tendency, not a guarantee
Consider multiple timeframes and confirmations
Factor in overall market conditions and trends
Risk Disclaimer
Past performance does not guarantee future results. Cryptocurrency markets are highly volatile and unpredictable. Always conduct your own research and consider your risk tolerance before making investment decisions.
Ideal Use Cases
Portfolio rebalancing between ETH and altcoins
Market cycle timing for position adjustments
Sentiment analysis of crypto market phases
Long-term allocation strategies based on historical patterns
Risk management through extreme zone identification
This indicator serves as a quantitative framework for understanding the cyclical relationship between Ethereum and the broader altcoin market, helping traders and investors make more informed allocation decisions based on historical valuation patterns.ons
- Factor in overall market conditions and trends
### Risk Disclaimer
Past performance does not guarantee future results. Cryptocurrency markets are highly volatile and unpredictable. Always conduct your own research and consider your risk tolerance before making investment decisions.
Liquidation Heatmap Proxy [victhoreb]Author: victhoreb
This script was inspired by the Coinglass indicator: www.coinglass.com
It divides each bar into subbars determined by the intrabar period. For each bar, it considers subbars with a positive OID (open interest delta) (if the user sets "Filter by Signal" to true, it only considers subbars with OID > 0 from a main bar that had a peak in open interest). In these subbars, it considers opened long/short positions based on the intrabar price movement and the dispersion factor (which becomes completely unnecessary if the user is using Intrabar Resolution in ticks; in this case, set the dispersion factor = 0).
After determining the opened long and short positions, it determines, based on the user-selected leverages, the liquidation level for each position. The width of each level is given by syminfo.mintick * scale. The script uses the intrabar OID from the previous step to store an estimate of the number of contracts to be liquidated at each level. This estimate is used to color the levels by order of magnitude.
If there is a subsequent increase in liquidations at a pre-existing level, the script accumulates the estimated number of contracts to be liquidated and repaints the level. A note about a visual limitation of the script is important: in Coinglass' version, when there is a subsequent increase in liquidations at a pre-existing level, Coinglass paints the level a brighter color ONLY from the moment of the increase—however, this script does not do this; it repaints the entire level with the brighter color. Note: While accurate, this script is only a proxy. Use at your own risk.
This script has alerts for when there is liquidation in the long or short direction.
Volume Statistics - IntraweekVolume Statistics - Intraweek: For Orderflow Traders
This tool is designed for traders using volume footprint charts and orderflow methods.
Why it matters:
In orderflow trading, you care about the quality of volume behind each move. You’re not just watching price; you’re watching how much aggression is behind that price move. That’s where this indicator helps.
What to look at:
* Current Volume shows you how much volume is trading right now.
* Central Volume (median or average over 24h or 7D) gives you a baseline for what's normal volume VS abnormal volume.
* The Diff vs Central tells you immediately if current volume is above or below normal.
How this helps:
* If volume is above normal, it suggested elevated levels of buyer or seller aggression. Look for strong follow-through or continuation.
* If volume is below normal, it may signal low interest, passive participation, a lack of conviction, or a fake move.
* Use this context to decide if what you're seeing in the footprint (imbalances, absorption, traps) is actually worth acting on.
Extra context:
* The highest and lowest volume levels and their timestamps help you spot prior key reactions.
* Second and third highest bars help you see other major effort points in the recent window.
Comment with any suggestions on how to improve this indicator.
Mutanabby_AI __ OSC+ST+SQZMOMMutanabby_AI OSC+ST+SQZMOM: Multi-Component Trading Analysis Tool
Overview
The Mutanabby_AI OSC+ST+SQZMOM indicator combines three proven technical analysis components into a unified trading system, providing comprehensive market analysis through integrated oscillator signals, trend identification, and volatility assessment.
Core Components
Wave Trend Oscillator (OSC): Identifies overbought and oversold market conditions using exponential moving average calculations. Key threshold levels include overbought zones at 60 and 53, with oversold areas marked at -60 and -53. Crossover signals between the two oscillator lines generate entry opportunities, displayed as colored circles on the chart for easy identification.
Supertrend Indicator (ST): Determines overall market direction using Average True Range calculations with a 2.5 factor and 10-period ATR configuration. Green lines indicate confirmed uptrends while red lines signal downtrend conditions. The indicator automatically adapts to market volatility changes, providing reliable trend identification across different market environments.
Squeeze Momentum (SQZMOM): Compares Bollinger Bands with Keltner Channels to identify consolidation periods and potential breakout scenarios. Black squares indicate squeeze conditions representing low volatility periods, green triangles signal confirmed upward breakouts, and red triangles mark downward breakout confirmations.
Signal Generation Logic
Long Entry Conditions:
Green triangles from Squeeze Momentum component
Supertrend line transitioning to green
Bullish crossovers in Wave Trend Oscillator from oversold territory
Short Entry Conditions:
Red triangles from Squeeze Momentum component
Supertrend line transitioning to red
Bearish crossovers in Wave Trend Oscillator from overbought territory
Automated Risk Management
The indicator incorporates comprehensive risk management through ATR-based calculations. Stop losses are automatically positioned at 3x ATR distance from entry points, while three progressive take profit targets are established at 1x, 2x, and 3x ATR multiples respectively. All risk management levels are clearly displayed on the chart using colored lines and informative labels.
When trend direction changes, the system automatically clears previous risk levels and generates new calculations, ensuring all risk parameters remain current and relevant to existing market conditions.
Alert and Notification System
Comprehensive alert framework includes trend change notifications with complete trade setup details, squeeze release alerts for breakout opportunity identification, and trend weakness warnings for active position management. Alert messages contain specific trading pair information, timeframe specifications, and all relevant entry and exit level data.
Implementation Guidelines
Timeframe Selection: Higher timeframes including 4-hour and daily charts provide the most reliable signals for position trading strategies. One-hour charts demonstrate good performance for day trading applications, while 15-30 minute timeframes enable scalping approaches with enhanced risk management requirements.
Risk Management Integration: Limit individual trade risk to 1-2% of total capital using the automatically calculated stop loss levels for precise position sizing. Implement systematic profit-taking at each target level while adjusting stop loss positions to protect accumulated gains.
Market Volatility Adaptation: The indicator's ATR-based calculations automatically adjust to changing market volatility conditions. During high volatility periods, risk management levels appropriately widen, while low volatility conditions result in tighter risk parameters.
Optimization Techniques
Combine indicator signals with fundamental support and resistance level analysis for enhanced signal validation. Monitor volume patterns to confirm breakout strength, particularly when Squeeze Momentum signals develop. Maintain awareness of scheduled economic events that may influence market behavior independent of technical indicator signals.
The multi-component design provides internal signal confirmation through multiple alignment requirements, significantly reducing false signal occurrence while maintaining reasonable trade frequency for active trading strategies.
Technical Specifications
The Wave Trend Oscillator utilizes customizable channel length (default 10) and average length (default 21) parameters for optimal market sensitivity. Supertrend calculations employ ATR period of 10 with factor multiplier of 2.5 for balanced signal quality. Squeeze Momentum analysis uses Bollinger Band length of 20 periods with 2.0 multiplication factor, combined with Keltner Channel length of 20 periods and 1.5 multiplication factor.
Conclusion
The Mutanabby_AI OSC+ST+SQZMOM indicator provides a systematic approach to technical market analysis through the integration of proven oscillator, trend, and momentum components. Success requires thorough understanding of each element's functionality and disciplined implementation of proper risk management principles.
Practice with demo trading accounts before live implementation to develop familiarity with signal interpretation and trade management procedures. The indicator's systematic approach effectively reduces emotional decision-making while providing clear, objective guidelines for trade entry, management, and exit strategies across various market conditions.
SMC Structure IndicatorTitle: SMC Structures Indicator
Description:
The SMC Structures indicator is a powerful tool designed to identify and visualize key structural elements in price action, based on the principles of Smart Money Concepts (SMC). This indicator helps traders identify potential areas of support, resistance, and price reversals by highlighting significant market structures.
Key Features:
Structure Identification: The indicator automatically detects and marks important high and low structures in the market.
Break of Structure (BOS) Detection: It identifies and labels instances where previous structures are broken, indicating potential trend changes or continuations.
Change of Character (CHoCH) Detection: The indicator recognizes and marks Changes of Character, which are significant shifts in market behavior.
Customizable Visuals: Users can personalize the appearance of BOS and CHoCH markings, including colors, line styles, and widths.
Current Structure Display: The indicator can optionally show the current active structure, helping traders understand the immediate market context.
Historical Structure Tracking: Users can specify the number of historical structure breaks to display, allowing for a cleaner chart while maintaining relevant information.
Flexible Break Confirmation: The indicator offers the option to confirm structure breaks using either the candle body or wick, accommodating different trading styles.
Technical Details:
The indicator uses advanced algorithms to identify significant price structures based on local highs and lows.
It employs a lookback period of 10 bars for structure detection, ensuring relevance to current market conditions.
The code includes safeguards to handle different market phases and avoid false signals during ranging periods.
Customization Options:
Colors for Bullish and Bearish BOS and CHoCH markings
Line styles and widths for all structure markings
Number of historical breaks to display
Option to show or hide the current active structure
Choice between candle body or wick for structure break confirmation
Use Cases:
Trend Analysis: Identify the start of new trends or potential trend reversals.
Support and Resistance: Pinpoint key levels where price may react.
Trade Entry and Exit: Use structure breaks as potential entry or exit signals.
Market Context: Understand the broader market structure to make informed trading decisions.
iBBi Smart Levels – Daily + Weekly + MonthlyThis is a level indicator. In trading levels make lots of difference - this indicator gives us, daily, weekly and monthly levels. Then, it gives last 12-hours high and low level. This means at any given time you will have these EIGHT LEVELS available to you.
Profitable SuperTrend + MA + Stoch StrategyThe **SuperTrend + Moving Average + Stochastic** strategy is a multi-layered technical approach that blends trend identification, momentum validation, and signal smoothing to enhance trade precision and profitability.
At its core, the **SuperTrend** indicator—sensitive to market volatility—detects shifts in trend direction with clear buy and sell cues. The **Moving Average** (MA) acts as a trend filter and dynamic stop-loss benchmark, ensuring price aligns with a broader directional bias. Meanwhile, the **Stochastic Oscillator** introduces a momentum confirmation layer by identifying overbought and oversold conditions, thereby filtering entries to periods where underlying momentum supports the move.
Together, these components create a robust system: trades are initiated only when the SuperTrend signals align with trend direction (supported by the MA), and the Stochastic crossover confirms momentum. The strategy is versatile across timeframes—from intraday to swing or positional trading—and allows traders to calibrate sensitivity via adjustable parameters. Designed for disciplined execution, it offers clear entries, exits, and risk management via dynamic stops for a consistent and systematic trading framework.
Essa - Market Structure & Fibonacci ToolkitEssa – Market Structure & Fibonacci Toolkit” is an all-in-one TradingView Pine Script indicator that detects and labels multi-tier market structure (HH, HL, LH, LL), draws dynamic Fibonacci retracements with customizable levels and a highlighted “Golden Zone,” marks Fair Value Gaps, and overlays enhanced session ranges. It also computes a weighted multi-timeframe trend strength score, displays comprehensive tables for trend analysis and Fibonacci distance/touches, and generates optional alerts for confluence events.
Key Features
Adaptive Pivot Detection: Volatility-scaled lookbacks automatically adjust pivot sensitivity.
Multi-Tier Structure Labelling: Short, intermediate, and long-term swing highs/lows with CHoCH (change-of-character) break lines.
Custom Fibonacci Toolkit: 0–100% retracements plus user-configurable 23.6, 38.2, 50, 61.8, 70.5, 78.6 levels; dynamic Golden Zone shading.
Fair Value Gaps (FVG): Bullish/bearish gap detection, age display, and confluence highlighting when in the Golden Zone.
Session Analysis: Colorized backgrounds, high/low/mid plots and range calculations for London, New York, and Asia sessions.
Multi-Timeframe Confirmation: Auto-selected higher-timeframe pivot alignment and weighted scoring.
Trend Strength Table: Scores HTF alignment, current-TF pattern, momentum, and confluence in a compact dashboard.
Distance & Touch Tracking: Fibonacci price-distance table with pip/point calculations, touch counts, and session annotations.
Alert System: Configurable alerts for CHoCH, Golden Zone entries, FVGs, and level touches.
Who It’s For
Price-Action Traders seeking visual confirmation of market swings and trend shifts.
Fibonacci Enthusiasts who want fully custom retracement levels with confluence zones.
Multi-Timeframe Analysts needing a single overlay to gauge alignment across chart horizons.
Session Strategists trading specific forex or equity sessions with clear range and momentum cues.
Advanced Traders who appreciate consolidated tables, exact touch markers, and automated alerting for high-conviction setups.
Time-Based Range w/ FibsThis is a simple indicator for automatically placing fib levels on a range, primarily time based.
We can use fibs from time ranges to seek exhaustion levels where price will respect and return to the range and/or back through it. The default levels are the ones I like to use and is derived from the fib levels I seen @JJumboFX on X use.
5 EMA No-Touch Breakout 1:3 (Only 5m)This strategy is built for traders who want to ride strong trends using the principle of EMA rejection.
The concept is simple:
📉 Sell when price stays below the 5 EMA without touching it — indicating strong bearish momentum.
📈 Buy when price stays above the 5 EMA without touching it — indicating strong bullish momentum.
Divergence Mucho Indicators w/ AlertsUsed to signal divergences of well known indicators bearish or bullish. I prefer to create the alert option that shows 4 or more signaling.
Mean Reversion & Momentum Hybrid | D_QUANT 📌 Mean Reversion & Momentum Hybrid | D_QUANT
📖 Description:
This indicator combines mean reversion logic, volatility filtering, and percentile-based momentum to deliver clear, context-aware buy/sell signals designed for trend-following and contrarian setups.
At its core, it merges:
A Bollinger Band % Positioning Model (BB%)
A 75th/25th Percentile Momentum System
A Volatility-Adjusted Trend Filter using RMA + ATR
All tied together with a dynamic gradient-style oscillator that visualizes signal strength and persistence over time — making it easy to track high-conviction setups.
Signals only trigger when all three core components align, filtering out noise and emphasizing high-probability turning points or trend continuations.
⚙️ Methodology Overview:
Bollinger Bands % (BB%):
Price is measured as a percentage between upper and lower Bollinger Bands (based on OHLC4). Entries are only considered when price exceeds custom BB% thresholds — emphasizing market extremes.
Volatility-Based Trend Filter (RMA + ATR):
A smoothed RMA baseline is paired with ATR to define trend bias. This ensures signals only occur when price deviates meaningfully beyond recent volatility.
Percentile Momentum Model (75th/25th Rank):
Price is compared against its rolling 75th and 25th percentile. If price breaks these statistical boundaries (adjusted by ATR), it triggers a directional momentum condition.
Signal Consensus Engine:
All three layers must agree — BB% condition, trend filter, and percentile momentum — before a buy or sell signal is plotted.
Gradient Oscillator Visualization:
Signals appear as a fading oscillator line with a gradient-filled area beneath it. The color intensity represents how “fresh” or “strong” the signal is, fading over time if not reconfirmed, offering both clarity and signal aging at a glance.
🔧 User Inputs:
🧠 Core Settings:
Source: Select the price input (default: close)
Bollinger Bands Length: Period for BB basis and deviation
Bollinger Bands Multiplier: Width of the bands
Minimum BB Width (% of Price): Prevents signals during low-volatility chop
📊 BB% Thresholds:
BB% Long Threshold (L): Minimum %B to consider a long
BB% Short Threshold (S): Maximum %B to consider a short
🔍 Trend Filter Parameters:
RMA Length: Period for the smoothed trend baseline
ATR Length: Lookback for ATR in trend deviation filter
⚡️ Momentum Parameters:
Momentum Length: Period for percentile momentum calculation
Mult_75 / Mult_25: ATR-adjusted thresholds for breakout above/below percentile levels
🎨 Visualization:
Bar Coloring: Highlights candles during active signals
Background Coloring: Optional background shading for signals
Show Oscillator Plot: Toggle the gradient-style oscillator
🧪 Use Case:
This indicator works well across all assets for trend identification. It is particularly effective when used on higher timeframes (e.g. 12H, 1D,2D) to capture mean reversion bounces or confirm breakouts backed by percentile momentum and volatility expansion.
⚠️ Notes:
This is not financial advice. Use in combination with proper risk management and confluence from other tools.
Universal Valuation[public code]Universal valuation indicator for all assets. Consists of 12 different indicators which are z-scored and averaged out.
> Volatility bands via Keltner Channels with a NWMA
> Confluence when price > vol.bands and valuation is high/low. The confluence is marked with red arrows when above the upper third band(green when below the lower on the downside), and 50% transparency when between 2/3 band(green when below the lower 2/3 bands on the downside.)
> Can be used separately of course.
> Can be used as valuation of indicators, when possible. (eg. Global Liquidity index valuation)
Code is a mess a bit, but parts can be extracted and a new strategy/indicator can be made.
*Big probs to the creator of this indicator . Inspired by him. I want to make it possible for people to extrapolate and create their own indicators/strategies. And of course, so I can do the same.
RSI ⇄ Price Divergence on Graphic//@version=5
indicator("RSI ⇄ Price Divergence with Emphasis", overlay=true, max_lines_count=500)
// === Inputs ===
rsiLength = input.int(14, "RSI Length")
pivotLR = input.int(5, "Pivot Left/Right", minval=1)
rescaleLook = input.int(100, "Bars to rescale RSI→Price", minval=10)
minLabelSize = input.string("small", "Label size", options= )
// === Calculate RSI & price pivots ===
rsi = ta.rsi(close, rsiLength)
isPh = ta.pivothigh(high, pivotLR, pivotLR)
isPl = ta.pivotlow(low, pivotLR, pivotLR)
// === Helpers to map RSI into price range ===
priceHigh = ta.highest(high, rescaleLook)
priceLow = ta.lowest(low, rescaleLook)
priceRange = priceHigh - priceLow
scaleRsi(x) => priceLow + (x / 100.0) * priceRange
// Utility to measure divergence strength
getStrength(p0, p1, r0, r1) =>
math.abs((p1 - p0) / p0) + math.abs((r1 - r0) / 100)
// === State storage ===
var int lastPhBar = na
var float lastPhPrice = na
var float lastPhRsi = na
var float lastPhStrength = 0.0
var int lastPlBar = na
var float lastPlPrice = na
var float lastPlRsi = na
var float lastPlStrength = 0.0
// === Containers for drawings ===
var line divLines = array.new_line()
var label divLabels = array.new_label()
// Function to clear old drawings ===
clearAll() =>
if array.size(divLines) > 0
for i = 0 to array.size(divLines) - 1
line.delete(array.get(divLines, i))
array.clear(divLines)
if array.size(divLabels) > 0
for i = 0 to array.size(divLabels) - 1
label.delete(array.get(divLabels, i))
array.clear(divLabels)
// === Bearish divergence ===
if isPh
curBar = bar_index - pivotLR
curPrice = high
curRsi = rsi
if not na(lastPhBar)
if (curPrice > lastPhPrice) and (curRsi < lastPhRsi)
strength = getStrength(lastPhPrice, curPrice, lastPhRsi, curRsi)
if strength >= lastPlStrength
clearAll()
l1 = line.new(lastPhBar, lastPhPrice, curBar, curPrice, color=color.red, width=2)
l2 = line.new(lastPhBar, scaleRsi(lastPhRsi), curBar, scaleRsi(curRsi), color=color.red, style=line.style_dashed, width=1)
lbl = label.new(curBar, curPrice, "Bear Div", xloc=xloc.bar_index, yloc=yloc.price, color=color.red, style=label.style_label_down, textcolor=color.white, size=size.small)
array.push(divLines, l1)
array.push(divLines, l2)
array.push(divLabels, lbl)
lastPhStrength := strength
lastPhBar := curBar
lastPhPrice := curPrice
lastPhRsi := curRsi
// === Bullish divergence ===
if isPl
curBar = bar_index - pivotLR
curPrice = low
curRsi = rsi
if not na(lastPlBar)
if (curPrice < lastPlPrice) and (curRsi > lastPlRsi)
strength = getStrength(lastPlPrice, curPrice, lastPlRsi, curRsi)
if strength > lastPhStrength
clearAll()
l1 = line.new(lastPlBar, lastPlPrice, curBar, curPrice, color=color.green, width=2)
l2 = line.new(lastPlBar, scaleRsi(lastPlRsi), curBar, scaleRsi(curRsi), color=color.green, style=line.style_dashed, width=1)
lbl = label.new(curBar, curPrice, "Bull Div", xloc=xloc.bar_index, yloc=yloc.price, color=color.green, style=label.style_label_up, textcolor=color.white, size=size.small)
array.push(divLines, l1)
array.push(divLines, l2)
array.push(divLabels, lbl)
lastPlStrength := strength
lastPlBar := curBar
lastPlPrice := curPrice
lastPlRsi := curRsi
// Plot RSI pane for context ===
plot(rsi, title="RSI", color=color.blue)
hline(70, "Overbought", color=color.gray, linestyle=hline.style_dotted)
hline(30, "Oversold", color=color.gray, linestyle=hline.style_dotted)
/*
HOW TO USE (for TradingView Publishing)
1. Apply to Chart
- Copy and paste the full Pine v5 script into the TradingView Pine Editor.
- Save the script and click “Add to Chart”.
2. Configure Inputs
• RSI Length: Number of bars for the RSI calculation (default 14).
• Pivot Left/Right: Bars on each side to define a pivot high/low (default 5).
• Bars to Rescale RSI→Price: Lookback window for mapping RSI to price scale for on-chart lines (default 100).
3. Interpret Signals
- **Bearish Divergence** (Red): Price makes higher highs, RSI makes lower highs. The stronger signal replaces any existing bullish divergence.
- **Bullish Divergence** (Green): Price makes lower lows, RSI makes higher lows. The stronger signal replaces any existing bearish divergence.
- A dashed line connects RSI pivots in the price pane to highlight the divergence visually.
4. Alerts
- (Optional) Create custom alerts based on label text or line drawings using the `plotshape` or alertcondition functions if desired.
5. Best Practices
- Check divergences on higher timeframes (4H, Daily) for reliability.
- Use in conjunction with support/resistance zones and volume confirmation.
- Adjust inputs to match the volatility profile of the instrument and timeframe.
*/
Multi-Tool Nasdaq US100 IndikatorA combination of several tools such as moving averages (EMA 50, 100, 200), Fibonacci retracements, pivot points, RSI (Relative Strength Index), order blocks, fair value gaps, supply and demand zones, and a simple volume profile.
The indicator is designed to enable high profitability by combining various established technical analysis approaches into one tool, facilitating decision-making regarding entry and exit points.
The script can be integrated and used directly in TradingView by creating a new indicator script and pasting the code there.
Bishop Chicken Biryani RibbonChicken Biryani is great and the greatest dish out there, if you havent had it you should defitinitley try it out at your local indian resturaunt