Relative Performance Tracker [QuantAlgo]🟢 Overview
The Relative Performance Tracker is a multi-asset comparison tool designed to monitor and rank up to 30 different tickers simultaneously based on their relative price performance. This indicator enables traders and investors to quickly identify market leaders and laggards across their watchlist, facilitating rotation strategies, strength-based trading decisions, and cross-asset momentum analysis.
🟢 Key Features
1. Multi-Asset Monitoring
Track up to 30 tickers across any market (stocks, crypto, forex, commodities, indices)
Individual enable/disable toggles for each ticker to customize your watchlist
Universal compatibility with any TradingView symbol format (EXCHANGE:TICKER)
2. Ranking Tables (Up to 3 Tables)
Each ticker's percentage change over your chosen lookback period, calculated as:
(Current Price - Past Price) / Past Price × 100
Automatic sorting from strongest to weakest performers
Rank: Position from 1-30 (1 = strongest performer)
Ticker: Symbol name with color-coded background (green for gains, red for losses)
% Change: Exact percentage with color intensity matching magnitude
For example, Rank #1 has the highest gain among all enabled tickers, Rank #30 has the lowest (or most negative) return.
3. Histogram Visualization
Adjustable bar count: Display anywhere from 1 to 30 top-ranked tickers (user customizable)
Bar height = magnitude of percentage change.
Bars extend upward for gains, downward for losses. Taller bars = larger moves.
Green bars for positive returns, red for negative returns.
4. Customizable Color Schemes
Classic: Traditional green/red for intuitive interpretation
Aqua: Blue/orange combination for reduced eye strain
Cosmic: Vibrant aqua/purple optimized for dark mode
Custom: Full personalization of positive and negative colors
5. Built-In Ranking Alerts
Six alert conditions detect when rankings change:
Top 1 Changed: New #1 leader emerges
Top 3/5/10/15/20 Changed: Shifts within those tiers
🟢 Practical Applications
→ Momentum Trading: Focus on top-ranked assets (Rank 1-10) that show strongest relative strength for trend-following strategies
→ Market Breadth Analysis: Monitor how many tickers are above vs. below zero on the histogram to gauge overall market health
→ Divergence Spotting: Identify when previously leading assets lose momentum (drop out of top ranks) as potential trend reversal signals
→ Multi-Timeframe Analysis: Use different lookback periods on different charts to align short-term and long-term relative strength
→ Customized Focus: Adjust histogram bars to show only top 5-10 strongest movers for concentrated analysis, or expand to 20-30 for comprehensive overview
Educational
CQ_(0)_Essential Indicators [BITCOIN HOY]Essential indicators (BitcoinHoy)
A Comprehensive TradingView Indicator for Crypto Traders and Analysts
Introduction
The Essential indicators (BitcoinHoy) is a versatile TradingView indicator designed to streamline and enrich the trading experience for cryptocurrency traders and analysts. Developed as a practical complement to popular Fibonacci-based range tools, this indicator brings together manual input capabilities and a curated suite of proven Pine Script tools, providing users with a robust, all-in-one solution for technical analysis.
Complementary Indicators
Essential indicators (BitcoinHoy) is specifically crafted to work alongside the Fibonacci IntraDay Range, Fibonacci IntraWeek Range, and Fibonacci IntraMonth Range tools. By integrating with these established indicators, it enhances multi-timeframe analysis, allowing traders to visualize and act upon key price levels within daily, weekly, and monthly contexts. This synergy helps users refine their strategies and better anticipate market movements.
Manual Input Features
A standout feature of Essential indicators (BitcoinHoy) is its support for manual input of both mid and long-term price targets. Users can easily enter their own key levels, including potential entries and target prices, directly on the chart. Additionally, the indicator enables the marking of specific entry events and target events, offering a clear historical and forward-looking view of trading plans and outcomes. This manual flexibility empowers traders to adapt their analysis to evolving market conditions and personal strategies.
Integrated Indicators
To further enhance its utility, Essential indicators (BitcoinHoy) integrates a selection of carefully chosen indicators authored by respected members of the Pine Script community. Each tool adds unique analytical power, covering various aspects of price action, trend identification, and market structure.
Candles in a Row: Sequence Visualization
Based on Zeiierman's popular "Candles in a Row," this feature counts and displays consecutive green (bullish) and red (bearish) candles on the chart. By visualizing these sequences, traders can quickly identify streaks of buying or selling pressure, spot potential exhaustion points, and time entries or exits more effectively. This clarity is especially valuable in volatile crypto markets, where momentum shifts can be rapid and impactful.
Trend Range Detector: Range and Breakout Identification
Also from Zeiierman, the "Trend Range Detector" module identifies and highlights price ranges, signaling periods of consolidation or equilibrium. When price action breaks out of these defined ranges, the indicator draws attention to these events, helping traders recognize emerging trends and potential trade opportunities. This detection capability supports both range-bound and breakout trading strategies.
Fibonacci Retracement Neo: Key Level Progress Tracking
Incorporating .srb's "Fibonacci Retracement Neo," Essential indicators (BitcoinHoy) displays a dynamic progress gauge, showing how far price has moved through significant Fibonacci retracement levels. The indicator also marks entry events at these key levels, providing actionable signals for traders who rely on Fibonacci-based strategies. This visual feedback aids in tracking price reactions at important support and resistance zones.
ZigZag Trend Metrics Delta: Pivot Analysis
Leveraging Fract's "ZigZag Trend Metrics Delta," this component identifies and annotates major price pivots, offering insight into the broader trend structure. By highlighting significant swing highs and lows, the indicator helps users spot trend reversals, continuation patterns, and optimal points for entry or exit. This information is crucial for analyzing market cycles and refining risk management.
Conclusion
Essential indicators (BitcoinHoy) provides a holistic and user-friendly solution for crypto traders and analysts seeking to enhance their technical analysis on TradingView. By combining the flexibility of manual input with a suite of trusted Pine Script indicators, it enables users to monitor price action, track key events, and respond proactively to market developments. Whether used alone or in conjunction with Fibonacci range tools, Essential indicators (BitcoinHoy) supports informed decision-making and improved trading outcomes
CQ_(0)_Essential Indicators [BITCOIN HOY]Essential indicators (BitcoinHoy)
A Comprehensive TradingView Indicator for Crypto Traders and Analysts
Introduction
The Essential indicators (BitcoinHoy) is a versatile TradingView indicator designed to streamline and enrich the trading experience for cryptocurrency traders and analysts. Developed as a practical complement to popular Fibonacci-based range tools, this indicator brings together manual input capabilities and a curated suite of proven Pine Script tools, providing users with a robust, all-in-one solution for technical analysis.
Complementary Indicators
Essential indicators (BitcoinHoy) is specifically crafted to work alongside the Fibonacci IntraDay Range, Fibonacci IntraWeek Range, and Fibonacci IntraMonth Range tools. By integrating with these established indicators, it enhances multi-timeframe analysis, allowing traders to visualize and act upon key price levels within daily, weekly, and monthly contexts. This synergy helps users refine their strategies and better anticipate market movements.
Manual Input Features
A standout feature of Essential indicators (BitcoinHoy) is its support for manual input of both mid and long-term price targets. Users can easily enter their own key levels, including potential entries and target prices, directly on the chart. Additionally, the indicator enables the marking of specific entry events and target events, offering a clear historical and forward-looking view of trading plans and outcomes. This manual flexibility empowers traders to adapt their analysis to evolving market conditions and personal strategies.
Integrated Indicators
To further enhance its utility, Essential indicators (BitcoinHoy) integrates a selection of carefully chosen indicators authored by respected members of the Pine Script community. Each tool adds unique analytical power, covering various aspects of price action, trend identification, and market structure.
Candles in a Row: Sequence Visualization
Based on Zeiierman's popular "Candles in a Row," this feature counts and displays consecutive green (bullish) and red (bearish) candles on the chart. By visualizing these sequences, traders can quickly identify streaks of buying or selling pressure, spot potential exhaustion points, and time entries or exits more effectively. This clarity is especially valuable in volatile crypto markets, where momentum shifts can be rapid and impactful.
Trend Range Detector: Range and Breakout Identification
Also from Zeiierman, the "Trend Range Detector" module identifies and highlights price ranges, signaling periods of consolidation or equilibrium. When price action breaks out of these defined ranges, the indicator draws attention to these events, helping traders recognize emerging trends and potential trade opportunities. This detection capability supports both range-bound and breakout trading strategies.
Fibonacci Retracement Neo: Key Level Progress Tracking
Incorporating .srb's "Fibonacci Retracement Neo," Essential indicators (BitcoinHoy) displays a dynamic progress gauge, showing how far price has moved through significant Fibonacci retracement levels. The indicator also marks entry events at these key levels, providing actionable signals for traders who rely on Fibonacci-based strategies. This visual feedback aids in tracking price reactions at important support and resistance zones.
ZigZag Trend Metrics Delta: Pivot Analysis
Leveraging Fract's "ZigZag Trend Metrics Delta," this component identifies and annotates major price pivots, offering insight into the broader trend structure. By highlighting significant swing highs and lows, the indicator helps users spot trend reversals, continuation patterns, and optimal points for entry or exit. This information is crucial for analyzing market cycles and refining risk management.
Conclusion
Essential indicators (BitcoinHoy) provides a holistic and user-friendly solution for crypto traders and analysts seeking to enhance their technical analysis on TradingView. By combining the flexibility of manual input with a suite of trusted Pine Script indicators, it enables users to monitor price action, track key events, and respond proactively to market developments. Whether used alone or in conjunction with Fibonacci range tools, Essential indicators (BitcoinHoy) supports informed decision-making and improved trading outcomes
Signal vs. Noise Have been working on this to get a better feel for market conditions. Am generally a pretty shit trader so just wanted to give this a go. Any feedback is appreciated.
Manual Range FR1 — Open Source ( Miresync )Made by Rafael Matos (Miresync)
EMA 9 – Scalp Trading XAUUSD (Gold)
The EMA 9 (Exponential Moving Average) is a short-term moving average widely used by scalpers and day traders to identify quick price movements with precision and agility.
In this setup, the EMA 9 acts as a dynamic trend guide, helping to pinpoint entry and exit zones for short, fast trades on XAUUSD (Gold).
🎯 Core Strategy:
When price is above EMA 9 → indicates bullish strength → focus on long entries during pullbacks.
When price is below EMA 9 → indicates bearish strength → focus on short entries during pullbacks.
EMA 9 reacts quickly to direction changes, allowing for short and precise scalps that take advantage of microtrends.
Volume Profile Pro
Volume Profile Pro is an advanced market analysis tool that displays trading activity distribution across price levels. It identifies key market structure levels including Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL) based on actual volume data.
ORIGINALITY & VALUE:
This indicator provides unique volume distribution analysis with intelligent timeframe detection, real-time profile development, and professional visualization. Unlike basic volume indicators, it calculates precise volume distribution across price levels and identifies high-volume nodes that act as dynamic support/resistance zones.
KEY FEATURES:
Smart Timeframe Detection - Automatically uses chart timeframe with manual override option
Value Area Calculation - Customizable percentage (68% recommended for standard deviation)
Real-time Profile Updates - Live developing profile during active trading sessions
Session Awareness - Adjusts for regular vs extended trading hours
Professional Visualization - Clean, customizable display with multiple placement options
Advanced Alert System - POC breach detection with multiple extension options
CORE COMPONENTS:
Point of Control (POC) - Price level with highest traded volume (market consensus price)
Value Area (VA) - Price range containing specified percentage of total volume
Value Area High (VAH) - Upper boundary of value area (Orange)
Value Area Low (VAL) - Lower boundary of value area (Bright Blue)
Volume Distribution - Visual histogram showing volume concentration at price levels
TRADING APPLICATIONS:
Dynamic Support/Resistance - POC and Value Area act as evolving S/R levels
Breakout Confirmation - Volume-backed breakouts from Value Area
Mean Reversion - Trading opportunities at Value Area boundaries
Market Structure - Understanding volume distribution and market acceptance
Risk Management - Using Value Area for strategic stop placement
SETUP INSTRUCTIONS:
Timeframe: Uses current chart timeframe by default (customizable in settings)
Value Area: Set to 68% for standard market profile or adjust based on volatility
Profile Placement: Choose Left for historical analysis or Right for current session
Alerts: Enable POC breach alerts for real-time trading signals
Visualization: Customize colors and widths to match your trading style
This indicator provides institutional-grade market structure analysis in an accessible format, helping traders identify high-probability trading zones based on actual volume data rather than just price action.
SALSA MultiStrategy DashboardSALSA MultiStrategy Dashboard - Comprehensive Technical Analysis Tool
🎯 ORIGINALITY & PURPOSE
The SALSA MultiStrategy Dashboard addresses a critical challenge in technical analysis: indicator fragmentation. Unlike simple mashups that merely combine indicators, this tool provides a unified analytical framework that identifies trading confluence across multiple technical methodologies.
Unique Value Proposition:
Integrated Analysis System: Rather than analyzing isolated signals, SALSA identifies when multiple technical approaches align, providing higher-probability trade setups
Cognitive Load Reduction: Consolidates 7+ technical indicators into a single, organized view while maintaining analytical depth
Dynamic Market State Detection: Automatically classifies market conditions (ranging vs. trending) and adjusts strategy recommendations accordingly
🔍 TECHNICAL METHODOLOGY
Core Component Integration:
1. Squeeze Momentum System
Purpose: Identifies market consolidation periods and potential breakout directions
Methodology: Combines Bollinger Bands® and Keltner Channels to detect volatility compression
Momentum Calculation: Uses linear regression of price relative to dynamic support/resistance levels
Original Enhancement: Integrated divergence detection within squeeze momentum signals
2. ADX Trend Strength Analysis
Purpose: Quantifies trend strength with customizable threshold levels
Methodology: Average Directional Index with configurable key level (default: 23)
Original Enhancement: Dynamic color coding based on slope and key level positioning
3. RSI with Multi-Timeframe Divergence
Purpose: Momentum analysis with built-in divergence detection
Methodology: Traditional RSI with fast/slow period comparison for early momentum shifts
Original Enhancement: Integrated bullish/bearish divergence detection with visual alerts
4. Confluence Confirmation Suite
Money Flow Index (MFI): Volume-weighted momentum confirmation
Stochastic Oscillator: Momentum and overbought/oversold conditions
Awesome Oscillator: Market momentum and acceleration
MACD: Trend direction and momentum shifts
CCI: Cycle identification and extreme level detection
⚙️ HOW COMPONENTS WORK TOGETHER
The dashboard creates a hierarchical analysis system:
Market State Identification: Squeeze Momentum determines consolidation vs. expansion phases
Trend Quality Assessment: ADX evaluates whether trends are trade-worthy
Momentum Confirmation: RSI and additional oscillators validate directional bias
Confluence Scoring: Multiple confirmations create weighted probability assessments
Practical Workflow:
Squeeze Release + ADX > 23 + RSI Bullish = High-Probability Long
Squeeze Active + ADX < 23 = Range-Bound Strategy
Multiple Divergence Alerts + Momentum Shift = Reversal Watch
🎨 USER CUSTOMIZATION FEATURES
Comprehensive Color Customization:
Squeeze Momentum: 5 customizable colors for different momentum states
ADX System: Separate colors for rising/falling ADX and DI lines
RSI: Customizable line colors with overbought/oversold highlighting
Zero Lines: Configurable reference level colors
Flexible Display Options:
Toggle individual indicators on/off
Adjustable scaling and sensitivity parameters
Customizable lookback periods for all components
📊 PRACTICAL APPLICATION
Trading Scenarios:
Trend Following Setup:
Squeeze Momentum shows directional bias
ADX confirms trend strength above key level
RSI maintains momentum without divergence
Additional oscillators align with primary direction
Reversal Identification:
Squeeze Momentum shows exhaustion
Multiple divergence signals across indicators
ADX indicates weakening trend strength
Confluence of momentum shift signals
Range Trading:
Squeeze active (consolidation)
ADX below key level (lack of trend)
Oscillators bouncing between boundaries
Focus on mean-reversion strategies
🔧 TECHNICAL IMPLEMENTATION
Code Structure:
Modular Design: Each component operates independently yet integrates seamlessly
Performance Optimized: Efficient calculations suitable for multiple timeframes
Real-time Processing: Instant signal updates without repainting
Original Algorithms:
Enhanced Squeeze Detection: Improved volatility measurement
Multi-timeframe Divergence: Simultaneous analysis across different periods
Dynamic Scaling System: Automatic adjustment to market conditions
📈 EDUCATIONAL VALUE
This indicator serves as an educational framework for:
Understanding technical analysis confluence
Developing systematic trading approaches
Learning how different indicators interact
Building disciplined trading habits
⚠️ RISK MANAGEMENT NOTES
Not Financial Advice: This tool provides analytical insights, not trading recommendations
Multiple Timeframe Analysis: Always confirm signals across different timeframes
Risk Management: Use proper position sizing and stop-loss strategies
Market Context: Consider fundamental factors and market conditions
🔄 VERSION HISTORY & CONTINUOUS IMPROVEMENT
This publication represents the culmination of extensive research and testing. Future updates will focus on:
Additional confluence detection methods
Enhanced visualization options
Performance optimization
User-requested features
The SALSA MultiStrategy Dashboard represents a significant advancement in technical analysis tools by providing a structured, multi-faceted approach to market analysis that emphasizes confluence and probability assessment over isolated signals.
DayTrader Plug and Play Score Strategy HSBeen playing around with automating a strategy and to make something more flexible in updating indicators/ risk reward scenarios.
I Trade on 5 min timeframe choosing stocks from a day trading scanner I use to evaluate premarket movement.
This script take into account short term EMA crossovers, VWAP, RSI, Candlesticks, and previous day S/R lines to determine buy/sell points. It Mostly runs on a VWAP strategy and will only buy when price is above VWAP and only sell when price is below VWAP. But uses the other indicators as more confirmations.
All of these indicators come together to form a score 1-8.5 and gives buy/sell signals based on the score.
Strategy is as below:
My Stock scanner gives me anywhere from 3-5 stocks per day to trade. (Not included)
Strategy will only trade once per day per stock.
Strategy closes positions after 2 hours in the market.
Strategy closes all positions 5 min before end of day close.
Trade size is set to 1% of the account size. The risk is 2% of that trade, reward is 4%.
Score threshold for hitting the indicator threshold is set to 5.5 score
^^This is all editable in the script.
After building and testing an rebuilding for a few months this has been my most profitable strategy in PAPER TRADING so I thought id share. I enjoy this kind of tinkering and scenario testing. Enjoy!
cashflowThe Cashflow GoldAI Strategy is an advanced price-action and indicator-based trading system designed for gold (XAUUSD).
It combines EMA crossover, RSI trend strength, ADX momentum confirmation, and Break of Structure (BOS) logic to identify high-confidence buy/sell zones.
The strategy includes:
✅ EMA-based trend direction (fast vs slow)
✅ RSI filtering for overbought/oversold control
✅ ADX confirmation for strong trend validation
✅ Pullback & BOS detection for precision entries
✅ Per-bar change logic for adaptive entry timing
✅ Session/day gating to control trading hours
✅ JSON alert integration for AI trading bots or webhooks
This script is Pine Script v6 compatible and optimized for automated alert-based trading setups such as AI trading bots, webhook systems, and VPS-linked executions.
Recommended Timeframes: 5m, 15m, 30m
Markets: XAUUSD, FX pairs, indices, and metals
N Order EMAThe exponential moving average is one of the most fundamental tools in technical analysis, but its implementation is almost always locked to a single mathematical approach. I've always wanted to extend the EMA into an n-order filter, and after some time working through the digital signal processing mathematics, I finally managed to do it. This indicator takes the familiar EMA concept and opens it up to four different discretization methods, each representing a valid way to transform a continuous-time exponential smoother into a discrete-time recursive filter. On top of that, it includes adjustable filter order, which fundamentally changes the frequency response characteristics in ways that simply changing the period length cannot achieve.
The four discretization styles are impulse-matched, all-pole, matched z-transform, and bilinear (Tustin). The all-pole version is exactly like stacking multiple EMAs together but implemented in a single function with proper coefficient calculation. It uses a canonical form where you get one gain coefficient and the rest are zeros, with the feedback coefficients derived from the binomial expansion of the pole polynomial. The other three methods are attempts at making generalizations of the EMA in different ways. Impulse-matched creates the filter by matching the discrete-time impulse response to what the continuous EMA would produce. Matched z-transform directly maps the continuous poles to the z-domain using the exponential relationship. Bilinear uses the Tustin transformation with frequency prewarping to ensure the cutoff frequency is preserved despite the inherent warping of the mapping.
Honestly, they're all mostly the same in practice, which is exactly what you'd expect since they're all valid discretizations of the same underlying filter. The differences show up in subtle ways during volatile market conditions or in the exact phase characteristics, but for most trading applications the outputs will track each other closely. That said, the bilinear version works particularly well at low periods like 2, where other methods can sometimes produce numerical artifacts. I personally like the z-match for its clean frequency-domain properties, but the real point here is demonstrating that you can tackle the same problem from multiple mathematical angles and end up with slightly different but equally valid implementations.
The order parameter is where things get interesting. A first-order EMA is the standard single-pole recursive filter everyone knows. When you move to second-order, you're essentially cascading two filter sections, which steepens the roll-off in the frequency domain and changes how the filter responds to sudden price movements. Higher orders continue this progression. The all-pole style makes this particularly clear since it's literally stacking EMA operations, but all four discretization methods support arbitrary order. This gives you control over the aggressiveness of the smoothing that goes beyond just adjusting the period length.
On top of the core EMA calculation, I've included all the standard variants that people use for reducing lag. DEMA applies the EMA twice and combines the results to get faster response. TEMA takes it further with three applications. HEMA uses a Hull-style calculation with fractional periods, applying the EMA to the difference between a half-period EMA and a full-period EMA, then smoothing that result with the square root of the period. These are all implemented using whichever discretization method you select, so you're not mixing different mathematical approaches. Everything stays consistent within the chosen framework.
The practical upside of this indicator is flexibility for people building trading systems. If you need a moving average with specific frequency response characteristics, you can tune the order parameter instead of hunting for the right period length. If you want to test whether different discretization methods affect your strategy's performance, you can swap between them without changing any other code. For most users, the impulse-matched style at order 1 will behave almost identically to a standard EMA, which gives you a familiar baseline to work from. From there you can experiment with higher orders or different styles to see if they provide any edge in your particular market or timeframe.
What this really highlights is that even something as seemingly simple as an exponential moving average involves mathematical choices that usually stay hidden. The standard EMA formula you see in textbooks is already a discretized version of a continuous exponential decay, and there are multiple valid ways to perform that discretization. By exposing these options, this indicator lets you explore a parameter space that most traders never even know exists. Whether that exploration leads to better trading results is an empirical question that depends on your strategy and market, but at minimum it's a useful reminder that the tools we take for granted are built on arbitrary but reasonable mathematical decisions.
SALSA Multi-Framework Analysis SuiteThis indicator, SALSA (SALSA Multi-Framework Analysis Suite), is an original compilation designed to provide a multi-dimensional view of the market by integrating several distinct analytical frameworks into a single tool. It is not a simple aggregation of standard indicators without purpose.
The core concept is to combine the analytical power of different technical methodologies:
1. Multi-Length Moving Averages (MAs):A customizable set of 6 MAs (with user-defined types and lengths) provides trend direction, potential support/resistance levels, and generates signals through crossovers. Their rainbow color scheme (Red to Violet) helps visualize different timeframes.
2. **Volume Profile (VP):** Displays the distribution of trading volume at different price levels over a defined lookback period. Key levels like the Point of Control (PoC), Value Area High (VAH), and Value Area Low (VAL) are highlighted with specific, user-adjustable colors (e.g., red PoC, orange VAH, blue VAL) to identify significant price zones where institutional interest may have occurred.
3. Divergence Detection: Implements an algorithm to identify regular and hidden bullish and bearish divergences between an internal oscillator (`sz`) and the asset's price action. This helps anticipate potential trend reversals before they are confirmed by price.
4. Trend & Volatility Indicators: Includes VWAP, Bollinger Bands, and Ichimoku Cloud, offering additional layers for trend confirmation, volatility assessment, and dynamic support/resistance levels.
5. Momentum Indicators:** Features an internal oscillator inspired by Koncorde concepts, using CMF, OBV, RSI, and Stochastic to provide momentum-based buy/sell shapes.
6. Trading Signals (SALSA System):Generates potential buy/sell signals based on the interaction between the `sz` oscillator and ADX values.
7. Whale Detector:Aims to identify potential large player activity based on specific volume and price action patterns.
The primary goal is to allow traders to cross-reference signals from different analytical frameworks (trend, momentum, volume, volatility) simultaneously, increasing the potential for robust trade setups. The extensive input options allow for significant customization to fit various trading styles and preferences.
This script is provided for educational purposes to demonstrate the integration of multiple technical analysis concepts in Pine Script.
Directional Momentum VisualizerDescription
This script provides a color-coded column visualization of a classic momentum oscillator that measures relative strength and weakness. Instead of a single line, it uses conditional coloring to make directional changes easier to identify at a glance.
The tool is designed for clarity and adaptability, offering both column and line displays, with optional overbought, oversold, and midpoint guides.
How It Works
The script evaluates the oscillator’s value relative to a midpoint and its previous reading.
Depending on whether it’s above or below the midpoint — and whether it’s rising or falling — each column changes color:
Strong upward momentum (above midpoint and rising) → bright green
Fading upward momentum (above midpoint but falling) → pale green
Strong downward momentum (below midpoint and falling) → bright red
Fading downward momentum (below midpoint but rising) → pale red
Unchanged from the previous value → gray
This structure makes momentum shifts instantly visible without relying on line crossings or alerts.
Key Features
Color-coded momentum columns for instant visual interpretation
Adjustable midpoint, overbought, and oversold levels
Optional line overlay for smoother reference
Dynamic background highlighting in extreme zones
Works on any symbol or timeframe
Inputs Overview
Length: Controls the sensitivity of the oscillator calculation.
Source: Selects the price source (Close, HL2, etc.).
Midpoint Level: Defines the central reference level separating bullish and bearish momentum.
Show Line: Toggles visibility of the traditional line overlay.
Overbought / Oversold Levels: Define upper and lower boundaries for potential exhaustion zones.
How to Use
Add the script to your chart from the Indicators tab.
Adjust the midpoint and level settings to fit your preferred configuration.
Observe how column colors shift to reflect strength or weakness in momentum.
Use these transitions as visual context, not as trade signals.
How it Helps
This visual approach offers a clearer perspective on momentum dynamics by replacing the traditional single-line display with color-coded columns. The conditional coloring instantly reveals whether momentum is strengthening or weakening around a chosen midpoint, making trend shifts and fading pressure easier to interpret at a glance. It helps reduce visual noise and allows for quicker, more intuitive analysis of market behavior.
This tool is intended purely as a visual aid to help identify changing momentum conditions at a glance. It is not a buy or sell signal generator and should be used in combination with other forms of analysis and sound risk management.
⚠️ Disclaimer:
This script is provided for educational and informational purposes only. It is not financial advice and should not be considered a recommendation to buy, sell, or hold any financial instrument. Trading involves significant risk of loss and is not suitable for every investor. Users should perform their own due diligence and consult with a licensed financial advisor before making any trading decisions. The author does not guarantee any profits or results from using this script, and assumes no liability for any losses incurred. Use this script at your own risk.
Mythical EMAs + Dynamic VWAP BandThis indicator titled "Mythical EMAs + Dynamic VWAP Band." It overlays several volatility-adjusted Exponential Moving Averages (EMAs) on the chart, along with a Volume Weighted Average Price (VWAP) line and a dynamic band around it.
Additionally, it uses background coloring (clouds) to visualize bullish or bearish trends, with intensity modulated by the price's position relative to the VWAP.
The EMAs are themed with mythical names (e.g., Hermes for the 9-period EMA), but this is just stylistic flavoring and doesn't affect functionality.
I'll break it down section by section, explaining what each part does, how it works, and its purpose in the context of technical analysis. This indicator is designed for traders to identify trends, momentum, and price fairness relative to volume-weighted averages, with volatility adjustments to make the EMAs more responsive in volatile markets.
### 1. **Volatility Calculation (ATR)**
```pine
atrLength = 14
volatility = ta.atr(atrLength)
```
- **What it does**: Calculates the Average True Range (ATR) over 14 periods (a common default). ATR measures market volatility by averaging the true range (the greatest of: high-low, |high-previous close|, |low-previous close|).
- **Purpose**: This volatility value is used later to dynamically adjust the EMAs, making them more sensitive in high-volatility conditions (e.g., during market swings) and smoother in low-volatility periods. It helps the indicator adapt to changing market environments rather than using static EMAs.
### 2. **Custom Mythical EMA Function**
```pine
mythical_ema(src, length, base_alpha, vol_factor) =>
alpha = (2 / (length + 1)) * base_alpha * (1 + vol_factor * (volatility / src))
ema = 0.0
ema := na(ema ) ? src : alpha * src + (1 - alpha) * ema
ema
```
- **What it does**: Defines a custom function to compute a modified EMA.
- It starts with the standard EMA smoothing factor formula: `2 / (length + 1)`.
- Multiplies it by a `base_alpha` (a user-defined multiplier to tweak responsiveness).
- Adjusts further for volatility: Adds a term `(1 + vol_factor * (volatility / src))`, where `vol_factor` scales the impact, and `volatility / src` normalizes ATR relative to the source price (making it scale-invariant).
- The EMA is then calculated recursively: If the previous EMA is NA (e.g., at the start), it uses the current source value; otherwise, it weights the current source by `alpha` and the prior EMA by `(1 - alpha)`.
- **Purpose**: This creates "adaptive" EMAs that react faster in volatile markets (higher alpha when volatility is high relative to price) without overreacting in calm periods. It's an enhancement over standard EMAs, which use fixed alphas and can lag in choppy conditions. The mythical theme is just naming—functionally, it's a volatility-weighted EMA.
### 3. **Calculating the EMAs**
```pine
ema9 = mythical_ema(close, 9, 1.2, 0.5) // Hermes - quick & nimble
ema20 = mythical_ema(close, 20, 1.0, 0.3) // Apollo - short-term foresight
ema50 = mythical_ema(close, 50, 0.9, 0.2) // Athena - wise strategist
ema100 = mythical_ema(close, 100, 0.8, 0.1) // Zeus - powerful oversight
ema200 = mythical_ema(close, 200, 0.7, 0.05) // Kronos - long-term patience
```
- **What it does**: Applies the custom EMA function to the close price with varying lengths (9, 20, 50, 100, 200 periods), base alphas (decreasing from 1.2 to 0.7 for longer periods to make shorter ones more responsive), and volatility factors (decreasing from 0.5 to 0.05 to reduce volatility influence on longer-term EMAs).
- **Purpose**: These form a multi-timeframe EMA ribbon:
- Shorter EMAs (e.g., 9 and 20) capture short-term momentum.
- Longer ones (e.g., 200) show long-term trends.
- Crossovers (e.g., short EMA crossing above long EMA) can signal buy/sell opportunities. The volatility adjustment makes them "mythical" by adding dynamism, potentially improving signal quality in real markets.
### 4. **VWAP Calculation**
```pine
vwap_val = ta.vwap(close) // VWAP based on close price
```
- **What it does**: Computes the Volume Weighted Average Price (VWAP) using the built-in `ta.vwap` function, anchored to the close price. VWAP is the average price weighted by volume over the session (resets daily by default in Pine Script).
- **Purpose**: VWAP acts as a benchmark for "fair value." Prices above VWAP suggest bullishness (buyers in control), below indicate bearishness (sellers dominant). It's commonly used by institutional traders to assess entry/exit points.
### 5. **Plotting EMAs and VWAP**
```pine
plot(ema9, color=color.fuchsia, title='EMA 9 (Hermes)')
plot(ema20, color=color.red, title='EMA 20 (Apollo)')
plot(ema50, color=color.orange, title='EMA 50 (Athena)')
plot(ema100, color=color.aqua, title='EMA 100 (Zeus)')
plot(ema200, color=color.blue, title='EMA 200 (Kronos)')
plot(vwap_val, color=color.yellow, linewidth=2, title='VWAP')
```
- **What it does**: Overlays the EMAs and VWAP on the chart with distinct colors and titles for easy identification in TradingView's legend.
- **Purpose**: Visualizes the EMA ribbon and VWAP line. Traders can watch for EMA alignments (e.g., all sloping up for uptrend) or price interactions with VWAP.
### 6. **Dynamic VWAP Band**
```pine
band_pct = 0.005
vwap_upper = vwap_val * (1 + band_pct)
vwap_lower = vwap_val * (1 - band_pct)
p1 = plot(vwap_upper, color=color.new(color.yellow, 0), title="VWAP Upper Band")
p2 = plot(vwap_lower, color=color.new(color.yellow, 0), title="VWAP Lower Band")
fill_color = close >= vwap_val ? color.new(color.green, 80) : color.new(color.red, 80)
fill(p1, p2, color=fill_color, title="Dynamic VWAP Band")
```
- **What it does**: Creates a band ±0.5% around the VWAP.
- Plots the upper/lower bands with full transparency (color opacity 0, so lines are invisible).
- Fills the area between them dynamically: Semi-transparent green (opacity 80) if close ≥ VWAP (bullish bias), red if below (bearish bias).
- **Purpose**: Highlights deviations from VWAP visually. The color change provides an at-a-glance sentiment indicator—green for "above fair value" (potential strength), red for "below" (potential weakness). The narrow band (0.5%) focuses on short-term fairness, and the fill makes it easier to spot than just the line.
### 7. **Trend Clouds with VWAP Interaction**
```pine
bullish = ema9 > ema20 and ema20 > ema50
bearish = ema9 < ema20 and ema20 < ema50
bullish_above_vwap = bullish and close > vwap_val
bullish_below_vwap = bullish and close <= vwap_val
bearish_below_vwap = bearish and close < vwap_val
bearish_above_vwap = bearish and close >= vwap_val
bgcolor(bullish_above_vwap ? color.new(color.green, 50) : na, title="Bullish Above VWAP")
bgcolor(bullish_below_vwap ? color.new(color.green, 80) : na, title="Bullish Below VWAP")
bgcolor(bearish_below_vwap ? color.new(color.red, 50) : na, title="Bearish Below VWAP")
bgcolor(bearish_above_vwap ? color.new(color.red, 80) : na, title="Bearish Above VWAP")
```
- **What it does**: Defines trend conditions based on EMA alignments:
- Bullish: Shorter EMAs stacked above longer ones (9 > 20 > 50, indicating upward momentum).
- Bearish: The opposite (downward momentum).
- Sub-conditions combine with VWAP: E.g., bullish_above_vwap is true only if bullish and price > VWAP.
- Applies background colors (bgcolor) to the entire chart pane:
- Strong bullish (above VWAP): Green with opacity 50 (less transparent, more intense).
- Weak bullish (below VWAP): Green with opacity 80 (more transparent, less intense).
- Strong bearish (below VWAP): Red with opacity 50.
- Weak bearish (above VWAP): Red with opacity 80.
- If no condition matches, no color (na).
- **Purpose**: Creates "clouds" for trend visualization, enhanced by VWAP context. This helps traders confirm trends—e.g., a strong bullish cloud (darker green) suggests a high-conviction uptrend when price is above VWAP. The varying opacity differentiates signal strength: Darker for aligned conditions (trend + VWAP agreement), lighter for misaligned (potential weakening or reversal).
### Overall Indicator Usage and Limitations
- **How to use it**: Add this to a TradingView chart (e.g., stocks, crypto, forex). Look for EMA crossovers, price bouncing off EMAs/VWAP, or cloud color changes as signals. Bullish clouds with price above VWAP might signal buys; bearish below for sells.
- **Strengths**: Combines momentum (EMAs), volume (VWAP), and volatility adaptation for a multi-layered view. Dynamic colors make it intuitive.
- **Limitations**:
- EMAs lag in ranging markets; volatility adjustment helps but doesn't eliminate whipsaws.
- VWAP resets daily (standard behavior), so it's best for intraday/session trading.
- No alerts or inputs for customization (e.g., changeable lengths)—it's hardcoded.
- Performance depends on the asset/timeframe; backtest before using.
- **License**: Mozilla Public License 2.0, so it's open-source and modifiable.
G Position Size Calculator (Crypto)G Position Size Calculator (Crypto)
This tool helps traders quickly visualize and calculate risk, position size, leverage, and R:R ratio directly on the chart for crypto trading.
It works similarly to TradingView’s Long/Short Position tool but automatically computes all metrics based on your clicks.
⚙️ How to Use
Add to Chart
Click Indicators → My Scripts → G Position Size Calculator (Crypto)
Set Entry, Stop-Loss, and Take-Profit
Open the script’s ⚙️ Settings.
Click the crosshair icon next to Entry, then click on the chart.
Do the same for Stop-Loss and Take-Profit.
Adjust Account & Risk Settings
Enter your Account Size (USD).
Set your Risk % per trade (default: 1%).
Visual Feedback
A green box shows your profit zone (Entry → TP).
A red box shows your loss zone (Entry → SL).
The label on the right displays:
Risk (% and $)
R:R ratio
Position size (units)
Leverage required
Fine-Tune Without Re-clicking
Use the nudge inputs (Entry, Stop, TP) to move levels up/down by 1 tick at a time.
Positive = up, negative = down.
Re-pick Levels Anytime
Re-open settings and click the crosshair again to redefine a level.
📈 Features
Automatic calculation of risk, position size, leverage, and R:R ratio.
Visual green/red box representing profit and loss areas.
Adjustable risk %, account balance, and label offset.
“Nudge” controls to emulate quick drag adjustments.
Clean layout designed for crypto price charts (works on any symbol).
Leverage & Liquidations (Margins) Plotter - [SANIXLAB]Leverage & Liquidations (Margins) Plotter —
This indicator visualises liquidation zones across multiple leverage tiers and helps traders manage margin exposure .
It dynamically plots the liquidation ranges for 5x → 100x positions, highlighting where leveraged traders could get wiped out.
Add manual long / short markers , choose leverage and margin size, and the script calculates your exact liquidation prices — buffered for realism.
A clean control panel shows entries, liquidation levels, and percentage distance to liquidation.
Features
Visual leverage zones (5x → 100x)
Manual Long / Short marker system
Margin-based liquidation math with buffer
Toggleable entry & liq lines
Compact top-right control panel
Floating mid-zone leverage labels
Fully customizable colors
Use Case
Quickly see:
Where 10x / 20x traders get squeezed
How far your own trade can move before margin burn
Where cascading liquidations might begin
Perfect for futures & leverage traders who want to keep one eye on price … and the other on survival.
— MR.L ☕
Brewed with caffeine, coded with care.
Swing Points LiquiditySwing Points Liquidity
Unlock advanced swing detection and liquidity zone marking for smarter trading decisions.
Overview:
Swing Points Liquidity automatically identifies key swing highs and swing lows using a five-candle “palm” structure, marking each significant price turn with precise labels: “BSL swing high” for potential bearish liquidity and “SSL swing low” for potential bullish liquidity. This transparent swing logic provides a robust way to highlight areas where price is most likely to react—making it an invaluable tool for traders applying Smart Money Concepts, supply and demand, or liquidity-based strategies.
How It Works:
The indicator scans every candle on your chart to detect and label swing highs and lows.
A swing high (“BSL swing high”) is identified when a central candle’s high is greater than the highs of the previous two and next two candles.
A swing low (“SSL swing low”) is identified when a central candle’s low is lower than the lows of the previous two and next two candles.
Labels are plotted for every detected swing point, providing clear visualization of important market liquidity levels on any symbol and timeframe.
How to Use:
Liquidity levels marked by the indicator are potential price reversal zones. To optimize your entries, combine these levels with confirmation signals such as reversal candlestick patterns, order blocks, or fair value gaps (FVGs).
When you see a “BSL swing high” or “SSL swing low” label, observe the price action at that area—if a reliable reversal pattern or order block/FVG forms, it can signal a high-probability trade opportunity.
These marked liquidity swings are also excellent for locating confluence zones, setting stop losses, and identifying where institutional activity or smart money may trigger significant moves. Always use market structure and price action in conjunction with these levels for greater consistency and confidence in your trading.
Features:
Customizable label display for swing highs (BSL) and swing lows (SSL)
Automatic detection using robust 5-candle palm logic
Works with all symbols and chart timeframes
Lightweight, clear visual style—easy for manual and algorithmic traders
Notes:
The indicator requires at least two candles both before and after each swing point, so labels will start appearing after enough historical data is loaded.
For deeper historical analysis, simply scroll left or zoom out on your chart to load more candles—the indicator will automatically process and display swing points on all available data.
Matt Market EfficiencyThis is a custom Pine Script v5 indicator for TradingView that creates a Market Efficiency Heatmap as a background overlay on your chart. It visualizes how "efficient" the market's price movement is over a specified period—essentially measuring how much of the total price volatility (wiggle room) resulted in net directional progress, weighted with volume activity.
High efficiency (stronger, less transparent color) indicates a clean trend with minimal wasted movement (e.g., a strong uptrend or downtrend).
Low efficiency (fainter color) suggests choppy, inefficient price action (e.g., ranging or noisy market).
Color coding: Teal for bullish (net price up), Purple for bearish (net price down).
The heatmap intensity scales from 1% opacity (very low efficiency) to 25% opacity (high efficiency), making it subtle yet informative without overwhelming the chart.
CQ_(2)_Fibonacci IntraWeek Range [UkutaLabs]//█ OVERVIEW
//
//The Fibonacci Intraweek Period Range Indicator is a powerful trading tool that draws levels of support and resistance that are based on key
//Fibonacci levels.
//█ OVERVIEW
//
//The Fibonacci Intramonth Period Range Indicator is a powerful trading tool that draws levels of support and resistance that are based on key
//Fibonacci levels. Created by © UkutaLabs and modified by me to include a progress gauge. The script will identify the high and low of a range
//that is specified by the user, then draw several levels of support and resistance based on Fibonacci levels.
//
//The script will also draw extension levels outside of the specified range that are also based on Fibonacci levels. These extension
//levels can be turned off in the indicator settings.
//
//Each level is also labelled to help traders understand what each line represents. These labels can be turned off in the indicator
//settings.
//
//The purpose of this script is to simplify the trading experience of users by giving them the ability to customize the time period
//that is identified, then draw levels of support and resistance that are based on the price action during this time.
//
//█ USAGE
//
//In the indicator settings, the user has access to a setting called Session Range. This gives users control over the range that will
//be used.
//
//The script will then identify the high and low of the range that was specified and draw several levels of support and resistance based
//on Fibonacci levels between this range. The user can also choose to have extension levels that display more levels outside of the range.
//
//█ SETTINGS
//
//Configuration
//
//• Display Mode: Determines the number of days that will be displayed by the script.
//• Show Labels: Determines whether or not identifying labels will be displayed on each line.
//• Font Size: Determines the text size of labels.
//• Label Position: Determines the justification of labels.
//• Extension Levels: Determines whether or not extension levels will be drawn outside of the high and low of the specified range.
//
//Session
//
//• Session Range: Determines the time period that will be used for calculations.
//• Timezone Offset (+/-): Determines how many hours the session should be offset by.
//support and resistance based on Fibonacci levels.
//
//The script will also draw extension levels outside of the specified range that are also based on Fibonacci levels. These extension
//levels can be turned off in the indicator settings.
//
//Each level is also labelled to help traders understand what each line represents. These labels can be turned off in the indicator
//settings.
//
//The purpose of this script is to simplify the trading experience of users by giving them the ability to customize the time period
//that is identified, then draw levels of support and resistance that are based on the price action during this time.
//
//█ USAGE
//
//In the indicator settings, the user has access to a setting called Session Range. This gives users control over the range that will
//be used.
//
//The script will then identify the high and low of the range that was specified and draw several levels of support and resistance based
//on Fibonacci levels between this range. The user can also choose to have extension levels that display more levels outside of the range.
//
//█ SETTINGS
//
//Configuration
//
//• Display Mode: Determines the number of days that will be displayed by the script.
//• Show Labels: Determines whether or not identifying labels will be displayed on each line.
//• Font Size: Determines the text size of labels.
//• Label Position: Determines the justification of labels.
//• Extension Levels: Determines whether or not extension levels will be drawn outside of the high and low of the specified range.
//
//Session
//
//• Session Range: Determines the time period that will be used for calculations.
//• Timezone Offset (+/-): Determines how many hours the session should be offset by.
CQ_Fibonacci IntraMonth Range [UkutaLabs]//█ OVERVIEW
//
//The Fibonacci Intramonth Period Range Indicator is a powerful trading tool that draws levels of support and resistance that are based on key
//Fibonacci levels. Created by © UkutaLabs and modified by me to include a progress gauge. The script will identify the high and low of a range
//that is specified by the user, then draw several levels of support and resistance based on Fibonacci levels.
//
//The script will also draw extension levels outside of the specified range that are also based on Fibonacci levels. These extension
//levels can be turned off in the indicator settings.
//
//Each level is also labelled to help traders understand what each line represents. These labels can be turned off in the indicator
//settings.
//
//The purpose of this script is to simplify the trading experience of users by giving them the ability to customize the time period
//that is identified, then draw levels of support and resistance that are based on the price action during this time.
//
//█ USAGE
//
//In the indicator settings, the user has access to a setting called Session Range. This gives users control over the range that will
//be used.
//
//The script will then identify the high and low of the range that was specified and draw several levels of support and resistance based
//on Fibonacci levels between this range. The user can also choose to have extension levels that display more levels outside of the range.
//
//█ SETTINGS
//
//Configuration
//
//• Display Mode: Determines the number of days that will be displayed by the script.
//• Show Labels: Determines whether or not identifying labels will be displayed on each line.
//• Font Size: Determines the text size of labels.
//• Label Position: Determines the justification of labels.
//• Extension Levels: Determines whether or not extension levels will be drawn outside of the high and low of the specified range.
//
//Session
//
//• Session Range: Determines the time period that will be used for calculations.
//• Timezone Offset (+/-): Determines how many hours the session should be offset by.
CQ_Fibonacci IntraDay Range [UkutaLabs]//█ OVERVIEW
//
//The "Fibonacci Intraday Period Range Indicator" is a powerful trading tool that draws levels of support and resistance that are based on key
//Fibonacci levels. Created by © UkutaLabs and modified by me to include a progress gauge. The script will identify the high and low
//of a range that is specified by the user, then draw several levels of support and resistance based on Fibonacci levels.
//
//The script will also draw extension levels outside of the specified range that are also based on Fibonacci levels. These extension
//levels can be turned off in the indicator settings.
//
//Each level is also labelled to help traders understand what each line represents. These labels can be turned off in the indicator
//settings.
//
//The purpose of this script is to simplify the trading experience of users by giving them the ability to customize the time period
//that is identified, then draw levels of support and resistance that are based on the price action during this time.
//
//█ USAGE
//
//In the indicator settings, the user has access to a setting called Session Range. This gives users control over the range that will
//be used.
//
//The script will then identify the high and low of the range that was specified and draw several levels of support and resistance based
//on Fibonacci levels between this range. The user can also choose to have extension levels that display more levels outside of the range.
//
//These lines will extend until the end of the current trading day at 5:00 pm EST.
//
//█ SETTINGS
//
//Configuration
//
//• Display Mode: Determines the number of days that will be displayed by the script.
//• Show Labels: Determines whether or not identifying labels will be displayed on each line.
//• Font Size: Determines the text size of labels.
//• Label Position: Determines the justification of labels.
//• Extension Levels: Determines whether or not extension levels will be drawn outside of the high and low of the specified range.
//
//Session
//
//• Session Range: Determines the time period that will be used for calculations.
//• Timezone Offset (+/-): Determines how many hours the session should be offset by.
SMA 10/20 Here are two simple moving averages that can help you see the underlying trend. These are the moving averages used by the famous trader Qullamagie
HTF Fibonacci on intraday ChartThis indicator plots Higher Timeframe (HTF) Fibonacci retracement levels directly on your intraday chart, allowing you to visualize how the current price action reacts to key retracement zones derived from the higher timeframe trend.
Concept
Fibonacci retracement levels are powerful tools used to identify potential support and resistance zones within a price trend.
However, these levels are often calculated on a higher timeframe (like Daily or Weekly), while most traders execute entries on lower timeframes (like 15m, 30m, or 1H).
This indicator bridges that gap — it projects the higher timeframe’s Fibonacci levels onto your current intraday chart, helping you see where institutional reactions or swing pivots might occur in real time.
How It Works
Select the Higher Timeframe (HTF)
You can choose which higher timeframe the Fibonacci structure is derived from — default is Daily.
Define the Lookback Period
The script looks back over the chosen number of bars on the higher timeframe to find the highest high and lowest low — the base for Fibonacci calculations.
Plots Key Fibonacci Levels Automatically:
0% (Low)
23.6%
38.2%
50.0%
61.8%
78.6%
100% (High)
Dynamic Labels
Each Fibonacci level is labelled on the latest bar, updating in real time as new data forms on the higher timeframe.
Best Used For
Intraday traders who want to align lower-timeframe entries with higher-timeframe structure.
Swing traders confirming price reactions around major Fibonacci retracement zones.
Contextual analysis for pullback entries, breakout confirmations, or retests of key levels.
Recommended Settings
Higher Timeframe: Daily (for intraday analysis)
Lookback: 50 bars (adjust based on volatility)
Combine with MACD, RSI, CPR, or Pivots for confluence.
License & Credits
Created and published for educational and analytical purposes.
Inspired by standard Fibonacci analysis practices.