Indicators and strategies
Aesthetic RSI [AlchimistOfCrypto]🌌 Aesthetic RSI – Unveiling the Fractal Forces of Markets 🌌
Category: Momentum Indicators 📈
"The RSI oscillator, formalized through an advanced mathematical prism, reveals the underlying fractal structures of price movements. This indicator draws inspiration from quantum principles of divergence-convergence where the probability of a return to equilibrium increases proportionally to the distance from the median point. Our implementation employs sophisticated algorithmic smoothing to filter out the stochastic noise inherent in financial markets, allowing visualization of the true momentum forces according to thermodynamic entropy principles applied to trading systems."
📊 Professional Trading Application
The Aesthetic RSI is a visually stunning and mathematically refined take on the classic Relative Strength Index. With customizable settings, advanced smoothing, and eight unique visual palettes, it empowers traders to detect momentum shifts and divergences with unparalleled clarity.
⚙️ Indicator Configuration
- Length 📏
The core parameter (default: 20) that determines the calculation period.
- Lower values (8-14): Increase sensitivity for short-term trading.
- Higher values (21-34): Provide stronger signals for position trading.
- OverBought/OverSold Thresholds 🎯
Customizable boundaries (default: 75/25) to identify extreme market conditions.
- Calibrate based on asset volatility: Higher volatility assets may need wider thresholds (80/20) to reduce false signals.
- Style 🎨
Eight meticulously crafted visual palettes optimized for pattern recognition:
- Miami Vice (default): High-contrast cyan/magenta scheme for spotting divergences.
- Cyberpunk: Yellow/purple combo to highlight momentum shifts.
- Classic: Traditional green/red for conventional analysis.
- High Contrast: Maximum visual separation for traders with visual impairments.
- Specialized palettes (Forest, Ocean, Fire, Monochrome): Tailored for diverse market conditions.
- Mode Selection 🔄
- Full: Displays a complete gradient spectrum across the RSI range, emphasizing momentum transitions between 35-65.
- OverZone: Focuses on actionable extreme zones, reducing noise in ranging markets.
🚀 How to Use
1. Adjust Length ⏰: Set the period based on your trading style (short-term or long-term).
2. Fine-Tune Thresholds 🎚️: Customize overbought/oversold levels to match the asset’s volatility.
3. Select a Palette 🌈: Choose a visual style that enhances your pattern recognition.
4. Choose Mode 🔍: Use "Full" for detailed momentum analysis or "OverZone" for extreme zone focus.
5. Spot Divergences ✅: Look for price-RSI divergences to anticipate reversals.
6. Trade with Precision 🛡️: Combine with other indicators for high-probability setups.
📅 Release Notes (April 2025)
Aesthetic RSI blends quantum-inspired mathematics with artistic visualization, redefining momentum analysis. Stay tuned for future enhancements! ✨
🏷️ Tags
#Trading #TechnicalAnalysis #RSI #Momentum #Divergence #MultiTimeframe #TradingStrategy #RiskManagement #Forex #Stocks #Crypto #Bitcoin #AlgoTrading #DayTrading #SwingTrading #TheAlchimist #QuantumTrading #VisualTrading #PatternRecognition
Liquidity Levels (Smart Swing Lows)Liquidity Levels — Smart Swing Low Detection
Efficient Liquidity Sweep Visualization for Smart Money Traders
This script automatically identifies and plots liquidity-rich swing lows based on pivot logic, filters them to remove redundant levels, and overlays daily highs/lows for added context — giving Smart Money Concept (SMC) traders a clean, actionable map of liquidity.
It’s designed to be minimal yet powerful: perfect for spotting potential liquidity grabs, mitigation zones, and sweep targets with zero chart clutter.
🔍 What This Script Does:
Detects Smart Swing Lows
Uses fixed pivot detection (left = 3, right = customizable) to identify structurally significant swing lows.
Filters out swing lows that are too close together using a percentage-based spacing threshold to reduce noise.
Mitigation Cleanup Logic
Tracks whether recent price action breaches past swing lows.
If breached, the swing level is automatically removed, keeping only relevant, unmitigated liquidity levels on your chart.
Plots Daily Highs and Lows
Each new trading day, horizontal rays mark the prior day’s high and low — useful for identifying resting liquidity and possible sweep zones.
Labeling and Style Customization
Optional labels for swing lows.
Full control over label size, color, and visibility to match any chart aesthetic.
Timeframe Filtering
Runs exclusively on 5m, 10m, and 15m charts to ensure optimal reliability and signal clarity.
⚙️ Customization Features:
Pivot sensitivity (Right side control)
Minimum distance between swing lows (in %)
Label visibility, size, and color
Line width and colors for both swing levels and daily highs/lows
Mitigation cleanup lookback length
💡 How to Use:
Add the script to a qualifying intraday chart (5–15m).
Use the swing low levels to monitor liquidity-rich zones.
Combine with your personal strategy to identify liquidity grabs, potential reversal zones, or entry points following a sweep.
Let the built-in cleanup logic remove any already-mitigated levels so you can focus on active targets.
🚀 What Makes It Unique:
This isn’t just another pivot plotter — it’s a smart, self-cleaning SMC tool designed for modern liquidity-based trading strategies.
A must-have for traders using concepts like liquidity grabs, mitigation blocks, or sweep-to-reverse trade models.
🔗 Best used in combination with:
✅ First FVG — Opening Range Fair Value Gap Detector: Pinpoint the day’s first imbalance zone for intraday setups.
✅ ICT SMC Liquidity Grabs + OB + Fibonacci OTE Levels: Confluence-based entries powered by liquidity logic, order blocks, and premium/discount zones.
Used together, these scripts form a complete Smart Money toolkit — helping you build high-probability setups with confidence, clarity, and clean charts.
Global M2 Liquidity [TheAlchimist]🌍 Global M2 Liquidity – Navigating the Quantum Field of Markets 🌍
Category: Macroeconomic Indicators 📊
"In quantum physics, the observer effect states that the mere act of observation changes the system being observed. Similarly, in financial markets, global liquidity acts as a quantum field that permeates all market states simultaneously. Just as Heisenberg’s uncertainty principle suggests we cannot precisely measure both position and momentum, the M2 money supply’s influence on market dynamics creates a complex web of cause and effect across multiple timeframes."
📈 Overview
The Global M2 Liquidity indicator is a powerful tool that tracks the combined M2 money supply from five major economies (US, EU, China, Japan, UK), converted to USD 💵, offering a panoramic view of global liquidity conditions. With multi-timeframe analysis and a customizable forward-shift feature, it empowers traders to anticipate market movements driven by liquidity trends.
✨ Features
- Global Coverage 🌎: Monitors M2 money supply from 5 major economic regions (US, EU, China, Japan, UK).
- Real-Time Conversion 💱: Converts all data to USD for consistent analysis.
- Multi-Timeframe Analysis ⏰: Tracks liquidity from 15-minute to weekly charts.
- Forward-Shift Capability 🔮: Aligns M2 data with future price action for predictive insights.
- Color-Coded Trends 🎨: Visualizes liquidity trends (🟢 Expansion, 🔴 Contraction).
🚀 How to Use
1. Main Line 📉: Displays total global M2 liquidity in trillions of USD.
2. Golden Moving Average ⭐: Identifies the overall trend direction.
3. Trend Colors 🟢🔴:
- Green: Liquidity expanding above the moving average (bullish for risk assets).
- Red: Liquidity contracting below the moving average (bearish signal).
4. Forward Shift ⏩: Use the shift parameter to align M2 data with price action for predictive analysis.
5. Combine with Price Action 🔍: Correlate liquidity trends with assets like Bitcoin, stocks, or forex for strategic entries/exits.
⚙️ Settings
- MA Period 📏: Length of the moving average (default: 50).
- Shift ⏳: Number of days to shift data forward (default: 60).
🏷️ Tags
#Trading #Macroeconomic #M2Liquidity #GlobalLiquidity #MoneySupply #MultiTimeframe #TrendAnalysis #PredictiveAnalysis #Forex #Stocks #Crypto #Bitcoin #RiskAssets #CentralBanks #USD #TheAlchimist #QuantumTrading #AlgoTrading #DayTrading #SwingTrading
MACD [AlchimistOfCrypto]🌠 MACD Optimized with Python – Decoding the Chaos of Markets 🌠
Category: Trend Analysis 📈
"Like the dynamic systems studied in chaos theory, financial markets appear unpredictable at first glance. Yet, as Edward Lorenz demonstrated, even in apparent chaos reside harmonious mathematical structures. The MACD (Moving Average Convergence Divergence) represents this quest for order within disorder—a mathematical formulation that extracts coherent signals from price noise. By combining moving averages of different periods, this indicator reveals hidden cycles and precise moments when market energy shifts, like a pendulum obeying the immutable laws of physics."
📊 Technical Overview
The MACD Optimized with Python is a revolutionary take on the classic Moving Average Convergence Divergence indicator. Powered by Python-driven optimizations 🐍, it adapts to specific timeframes, delivering razor-sharp signals for traders seeking to navigate the market’s chaos with precision.
⚙️ How It Works
- Python-Optimized Parameters 🔧: Unlike the standard MACD (12,26,9), our version uses mathematically tailored parameters for each timeframe:
- 1H: 11/38/27
- 4H: 9/98/27
- 1D: 45/90/29
- 1W: 9/16/3
- 2W: 5/20/5
- Intuitive Visuals 🎨:
- Crossovers marked by colored dots 🟢🔴 for clear entry/exit signals.
- Histogram with a color gradient 🌈 to show direction and momentum intensity.
- Customizable Signals 🎯: Choose to display long, short, or both signals to match your trading style.
🚀 How to Use This Indicator
1. Select Your Timeframe ⏰: Choose the timeframe aligned with your trading horizon (1H, 4H, 1D, 1W, or 2W).
2. Spot Crossovers 🔍: Watch for the MACD line (green) crossing the signal line (red) to identify potential trend changes.
3. Confirm with Divergence ✅: Combine crossovers with price-MACD divergence for high-probability trend reversal signals.
📅 Release Notes
Unlock the hidden order of markets with this Python-optimized MACD. Stay tuned for future enhancements! ✨
🏷️ Tags
#Trading #TechnicalAnalysis #MACD #TrendAnalysis #Python #MultiTimeframe #Divergence #Momentum #TradingStrategy #RiskManagement #Forex #Stocks #Crypto #ChaosTheory #OptimizedTrading
First FVG Custom Time RangeFirst FVG — Opening Range Fair Value Gap Detector
Smart Money Opening Imbalance Strategy Tool
This script automatically detects and highlights the first Fair Value Gap (FVG) that forms between 9:30 and 10:00 AM Eastern Time (New York session open) — a critical period often referred to as the Opening Range. It’s designed for Smart Money traders looking to isolate early-morning inefficiencies that may influence market behavior throughout the trading day.
🔍 What This Script Does:
Automatically Detects the First FVG in the Opening Range
Scans price action between 9:30 and 10:00 AM ET and identifies the first valid bullish or bearish FVG that forms.
Only one FVG is shown per day — ensuring a clean, focused view.
Draws a Visual Zone
Once detected, the FVG zone is extended forward on the chart (customizable duration).
A labeled zone helps users track how price reacts to it throughout the session.
Optional Retest Alerts
Alerts you when price re-enters the zone — a potential reaction point used by SMC traders.
Customization Options
Set your preferred session time window
Adjust zone duration (in bars)
Customize label font size, colors, and visibility
Enable/disable alert on retest
📈 Why the First FVG Matters:
Time-Sensitive Setup: The first FVG typically forms no earlier than 9:31 AM ET and represents a potential “time distortion” or imbalance zone created by aggressive market participants during the open.
Behavioral Study: Many traders journal how price behaves around this zone each day — whether it acts as support, resistance, or gets traded through later in the session.
Predictive Value: Observing how this zone is respected or broken can provide anticipatory insight into intraday price action, rather than reactive analysis.
Great for New Traders: This opening FVG is often recommended as a starting reference point for building trade models and understanding how institutional imbalances unfold.
🚀 What Makes It Unique:
This tool doesn’t spam your chart with every FVG. It laser-focuses on a single, time-bound zone backed by institutional logic — the first presented imbalance of the day during the opening range.
Use it to:
Monitor price behavior around early inefficiencies
Plan journal entries and pattern recognition
Align intraday setups with a high-probability SMC model
Whether you’re scalping, journaling market structure, or refining entries based on liquidity behavior — this script helps you make the first 30 minutes count.
ICT SMC Liquidity Grabs and OBsICT SMC Liquidity Grabs + OB + Fibonacci OTE Levels
Smart Money Concepts Trading Assistant
This script is built for traders who follow ICT (Inner Circle Trader) and Smart Money Concepts. It intelligently combines three critical components of SMC trading: Liquidity Grabs, Order Blocks, and Fibonacci-based Optimal Trade Entry (OTE) zones — giving traders visual cues for potential high-probability reversals and entry points.
🔍 What This Script Does:
Detects Liquidity Grabs
Identifies swing highs/lows where price sweeps liquidity, then immediately reverses.
Labels them with orange markers when price takes out previous highs/lows but closes back inside.
Draws Order Blocks
After a liquidity grab, the script looks for strong bullish or bearish candles and automatically highlights the OB zone.
These OB zones are visualized with transparent colored boxes extending several bars forward.
Plots Fibonacci OTE Levels
Uses recent swing high/low pivots to dynamically draw customizable OTE retracement levels (e.g., 62% and 75%) for both long and short setups.
Highlights Optimal Entry Zones
Marks valid OTE-based buy/sell opportunities only when:
Liquidity has been taken,
Price enters the OTE zone,
And a strong confirming candle appears.
Adds visual zones, trade labels, and optional alerts for each qualified entry.
Includes Take Profit Targets
Automatically calculates take-profit levels based on previous structure and risk-reward ratios.
TP1 is the previous swing, and TP2 is an extended R-multiple (customizable by user).
⚙️ Customization Options:
Toggle each feature (Liquidity Grabs, OBs, Fibonacci Levels)
Adjust Fibonacci levels (default: 62% and 75%)
Set lookback period for liquidity checks
Customize the R-multiple for TP2 levels
💡 How to Use:
Enable desired features from the input panel.
Watch for Buy/Sell OTE zones highlighted in green/red.
Confirm with liquidity sweep and OB support for stronger signals.
Use the automatically generated TP levels to manage risk.
🚀 What Makes It Unique:
Unlike other open-source mashups, this script synchronizes multiple SMC concepts into a single tool that:
Waits for high-confidence conditions (not just blind fib or OB detection)
Validates entries using multiple confluences
Visually marks actionable setups
Automates trade management zones
Whether you're trend-trading, scalping, or swing trading ICT-style, this tool offers a streamlined, smart-money-aligned workflow directly on your chart.
ICT SMC Liquidity Grabs and OBsICT SMC Liquidity Grabs + OB + Fibonacci OTE Levels
Smart Money Concepts Trading Assistant
This script is built for traders who follow ICT (Inner Circle Trader) and Smart Money Concepts. It intelligently combines three critical components of SMC trading: Liquidity Grabs, Order Blocks, and Fibonacci-based Optimal Trade Entry (OTE) zones — giving traders visual cues for potential high-probability reversals and entry points.
🔍 What This Script Does:
Detects Liquidity Grabs
Identifies swing highs/lows where price sweeps liquidity, then immediately reverses.
Labels them with orange markers when price takes out previous highs/lows but closes back inside.
Draws Order Blocks
After a liquidity grab, the script looks for strong bullish or bearish candles and automatically highlights the OB zone.
These OB zones are visualized with transparent colored boxes extending several bars forward.
Plots Fibonacci OTE Levels
Uses recent swing high/low pivots to dynamically draw customizable OTE retracement levels (e.g., 62% and 75%) for both long and short setups.
Highlights Optimal Entry Zones
Marks valid OTE-based buy/sell opportunities only when:
Liquidity has been taken,
Price enters the OTE zone,
And a strong confirming candle appears.
Adds visual zones, trade labels, and optional alerts for each qualified entry.
Includes Take Profit Targets
Automatically calculates take-profit levels based on previous structure and risk-reward ratios.
TP1 is the previous swing, and TP2 is an extended R-multiple (customizable by user).
⚙️ Customization Options:
Toggle each feature (Liquidity Grabs, OBs, Fibonacci Levels)
Adjust Fibonacci levels (default: 62% and 75%)
Set lookback period for liquidity checks
Customize the R-multiple for TP2 levels
💡 How to Use:
Enable desired features from the input panel.
Watch for Buy/Sell OTE zones highlighted in green/red.
Confirm with liquidity sweep and OB support for stronger signals.
Use the automatically generated TP levels to manage risk.
🚀 What Makes It Unique:
Unlike other open-source mashups, this script synchronizes multiple SMC concepts into a single tool that:
Waits for high-confidence conditions (not just blind fib or OB detection)
Validates entries using multiple confluences
Visually marks actionable setups
Automates trade management zones
Whether you're trend-trading, scalping, or swing trading ICT-style, this tool offers a streamlined, smart-money-aligned workflow directly on your chart.
Prop Firm Business SimulatorThe prop firm business simulator is exactly what it sounds like. It's a plug and play tool to test out any tradingview strategy and simulate hypothetical performance on CFD Prop Firms.
Now what is a modern day CFD Prop Firm?
These companies sell simulated trading challenges for a challenge fee. If you complete the challenge you get access to simulated capital and you get a portion of the profits you make on those accounts payed out.
I've included some popular firms in the code as presets so it's easy to simulate them. Take into account that this info will likely be out of date soon as these prices and challenge conditions change.
Also, this tool will never be able to 100% simulate prop firm conditions and all their rules. All I aim to do with this tool is provide estimations.
Now why is this tool helpful?
Most traders on here want to turn their passion into their full-time career, prop firms have lately been the buzz in the trading community and market themselves as a faster way to reach that goal.
While this all sounds great on paper, it is sometimes hard to estimate how much money you will have to burn on challenge fees and set realistic monthly payout expectations for yourself and your trading. This is where this tool comes in.
I've specifically developed this for traders that want to treat prop firms as a business. And as a business you want to know your monthly costs and income depending on the trading strategy and prop firm challenge you are using.
How to use this tool
It's quite simple you remove the top part of the script and replace it with your own strategy. Make sure it's written in same version of pinescript before you do that.
//--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--//--------------------------------------------------------------------------------------------------------------------------$$$$$$
//--$$$$$--Strategy-- --$$$$$$--// ******************************************************************************************************************************
//--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--//--------------------------------------------------------------------------------------------------------------------------$$$$$$
length = input.int(20, minval=1, group="Keltner Channel Breakout")
mult = input(2.0, "Multiplier", group="Keltner Channel Breakout")
src = input(close, title="Source", group="Keltner Channel Breakout")
exp = input(true, "Use Exponential MA", display = display.data_window, group="Keltner Channel Breakout")
BandsStyle = input.string("Average True Range", options = , title="Bands Style", display = display.data_window, group="Keltner Channel Breakout")
atrlength = input(10, "ATR Length", display = display.data_window, group="Keltner Channel Breakout")
esma(source, length)=>
s = ta.sma(source, length)
e = ta.ema(source, length)
exp ? e : s
ma = esma(src, length)
rangema = BandsStyle == "True Range" ? ta.tr(true) : BandsStyle == "Average True Range" ? ta.atr(atrlength) : ta.rma(high - low, length)
upper = ma + rangema * mult
lower = ma - rangema * mult
//--Graphical Display--// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-$$$$$$
u = plot(upper, color=#2962FF, title="Upper", force_overlay=true)
plot(ma, color=#2962FF, title="Basis", force_overlay=true)
l = plot(lower, color=#2962FF, title="Lower", force_overlay=true)
fill(u, l, color=color.rgb(33, 150, 243, 95), title="Background")
//--Risk Management--// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-$$$$$$
riskPerTradePerc = input.float(1, title="Risk per trade (%)", group="Keltner Channel Breakout")
le = high>upper ? false : true
se = lowlower
strategy.entry('PivRevLE', strategy.long, comment = 'PivRevLE', stop = upper, qty=riskToLots)
if se and upper>lower
strategy.entry('PivRevSE', strategy.short, comment = 'PivRevSE', stop = lower, qty=riskToLots)
The tool will then use the strategy equity of your own strategy and use this to simulat prop firms. Since these CFD prop firms work with different phases and payouts the indicator will simulate the gains until target or max drawdown / daily drawdown limit gets reached. If it reaches target it will go to the next phase and keep on doing that until it fails a challenge.
If in one of the phases there is a reward for completing, like a payout, refund, extra it will add this to the gains.
If you fail the challenge by reaching max drawdown or daily drawdown limit it will substract the challenge fee from the gains.
These gains are then visualised in the calendar so you can get an idea of yearly / monthly gains of the backtest. Remember, it is just a backtest so no guarantees of future income.
The bottom pane (non-overlay) is visualising the performance of the backtest during the phases. This way u can check if it is realistic. For instance if it only takes 1 bar on chart to reach target you are probably risking more than the firm wants you to risk. Also, it becomes much less clear if daily drawdown got hit in those high risk strategies, the results will be less accurate.
The daily drawdown limit get's reset every time there is a new dayofweek on chart.
If you set your prop firm preset setting to "'custom" the settings below that are applied as your prop firm settings. Otherwise it will use one of the template by default it's FTMO 100K.
The strategy I'm using as an example in this script is a simple Keltner Channel breakout strategy. I'm using a 0.05% commission per trade as that is what I found most common on crypto exchanges and it's close to the commissions+spread you get on a cfd prop firm. I'm targeting a 1% risk per trade in the backtest to try and stay within prop firm boundaries of max 1% risk per trade.
Lastly, the original yearly and monthly performance table was developed by Quantnomad and I've build ontop of that code. Here's a link to the original publication:
That's everything for now, hope this indicator helps people visualise the potential of prop firms better or to understand that they are not a good fit for their current financial situation.
MarketTrend [AlchimistOfCrypto]🌌 MarketTrend – Unveil the Cosmic Harmony of Markets 🌌
"What we call 'trend' is merely an illusion of our limited perception of the space-time continuum of markets. Pivots are points of singularity where potential energy ⚡️ transforms into kinetic energy 🚀. The fourth dimension isn’t just time—it’s the simultaneous awareness of all temporal states. By observing mathematical laws across time scales, we unlock the secrets of the cosmic harmony of markets."
📊 Technical Overview
MarketTrend is a multi-timeframe trend analysis powerhouse 🔥 that tracks market direction across six timeframes simultaneously. It pinpoints pivot points 📍 to classify trends as bullish 🐂, bearish 🐻, or neutral ⚖️, presenting results in a sleek, easy-to-read table.
⚙️ How It Works
- The algorithm scans for pivot highs and pivot lows using a 20-bar lookback period 🔍.
- Bullish Trend 🟢: Price breaks above a previous pivot high.
- Bearish Trend 🔴: Price drops below a previous pivot low.
- Neutral Zone 🟡: Price consolidates until a breakout sparks a new trend.
🚀 How to Use This Indicator
1. Master Multi-Timeframe Analysis 🌍: Spot trend alignment across timeframes for a holistic view.
2. Seek Confluence ✅: Stronger signals emerge when multiple timeframes align.
3. Time Your Entries ⏰: Enter trades when shorter timeframes sync with larger ones for maximum precision.
4. Manage Risk 🛡️: Avoid countertrend trades when timeframes show unified direction.
Midnight (Daily) OpenMidnight (Daily) Open v1.0
Overview
Plots a real‑time horizontal line at the U.S. session “midnight” open (i.e. the daily candle’s open price) on any intraday chart. Optionally displays a label with the exact price, making it easy to see how price reacts to the session open.
Key Benefits
Immediate Context: See at a glance where today’s session began, helping identify support/resistance.
Consistent Reference: Works on any symbol or intraday timeframe.
Customizable Styling: Tweak colors, line thickness, and label appearance to match your chart theme.
Features
Retrieves the daily open via request.security() (Pine v6).
Draws or updates a single horizontal line that extends into the future.
Optional price label on the last bar, with user‑defined text and background colors.
Zero repainting—always shows the true daily open.
SPDR Sectors TableThis script generates an interactive and customizable SPDR Sectors Table designed to monitor and analyze the performance of the 11 main sectors of the S&P 500 via sector-specific ETFs. It offers a dynamic overview of daily or periodic sector movements, making it a valuable tool for traders, analysts, and investors implementing sector rotation strategies.
█ DEFINITIONS
SPDR Sectors ETFs are exchange-traded funds managed by State Street Global Advisors, which divide the S&P 500 into the following 11 sectors:
- Communication Services (XLC)
- Consumer Discretionary (XLY)
- Consumer Staples (XLP)
- Energy (XLE)
- Financials (XLF)
- Health Care (XLV)
- Industrials (XLI)
- Materials (XLB)
- Real Estate (XLRE)
- Technology (XLK)
- Utilities (XLU)
These ETFs aim to replicate the performance of their respective sectors as defined by the Global Industry Classification Standard (GICS). The funds are periodically rebalanced to match changes in the S&P 500 composition, offering an accurate snapshot of sectoral trends.
█ INDICATOR
The table displays each sector's ticker and full name, following official GICS terminology and SPDR color coding. It also shows percentage performance, calculated daily on intraday charts or based on the selected time frame.
Users can sort the table by either percentage performance or the relative weight of each ETF in the S&P 500. The default weight values reflect data updated as of 17 April 2025, and can be manually adjusted based on the most recent sector weightings available on the official SPDR website.
RSI - 5UP Overview
The "RSI - 5UP" indicator is a versatile tool that enhances the traditional Relative Strength Index (RSI) by adding smoothing options, Bollinger Bands, and divergence detection. It provides a clear visual representation of RSI levels with customizable bands and optional moving averages, helping traders identify overbought/oversold conditions and potential trend reversals through divergence signals.
Features
Customizable RSI: Adjust the RSI length and source to fit your trading style.
Overbought/Oversold Bands: Visualizes RSI levels with intuitive color-coded bands (red for overbought at 70, white for neutral at 50, green for oversold at 30).
Smoothing Options: Apply various types of moving averages (SMA, EMA, SMMA, WMA, VWMA) to the RSI, with optional Bollinger Bands for volatility analysis.
Divergence Detection: Identifies regular bullish and bearish divergences, with visual labels ("Bull" for bullish, "Bear" for bearish) and alerts.
G radient Fills: Highlights overbought and oversold zones with gradient fills (green for overbought, red for oversold).
How to Use
1. Add to Chart: Apply the "RSI - 5UP" indicator to any chart. It works well on timeframes from 5 minutes to daily.
2. Configure Settings:
RSI Settings:
RSI Length: Adjust the period for RSI calculation (default: 14).
Source: Choose the price source for RSI (default: close).
Calculate Divergence: Enable to detect bullish/bearish divergences (default: disabled).
Smoothing:
Type: Select the type of moving average to smooth the RSI ("None", "SMA", "SMA + Bollinger Bands", "EMA", "SMMA (RMA)", "WMA", "VWMA"; default: "SMA").
Length: Set the period for the moving average (default: 14).
BB StdDev: If "SMA + Bollinger Bands" is selected, adjust the standard deviation multiplier for the bands (default: 2.0).
3.Interpret the Indicator:
RSI Levels: The RSI line (purple) oscillates between 0 and 100. Levels above 70 (red band) indicate overbought conditions, while levels below 30 (green band) indicate oversold conditions. The 50 level (white band) is neutral.
Gradient Fills: The background gradients (green above 70, red below 30) highlight overbought and oversold zones for quick reference.
Moving Average (MA): If enabled, a yellow MA line smooths the RSI. If "SMA + Bollinger Bands" is selected, green bands appear around the MA to show volatility.
Divergences: If "Calculate Divergence" is enabled, look for "Bull" (green label) and "Bear" (red label) signals:
Bullish Divergence: Indicates a potential upward reversal when the price makes a lower low, but the RSI makes a higher low.
Bearish Divergence: Indicates a potential downward reversal when the price makes a higher high, but the RSI makes a lower high.
4. Set Alerts:
Use the "Regular Bullish Divergence" and "Regular Bearish Divergence" alert conditions to be notified when a divergence is detected.
Notes
The indicator does not provide direct buy/sell signals. Use the RSI levels, moving averages, and divergence signals as part of a broader trading strategy.
Divergence detection requires the "Calculate Divergence" option to be enabled and may not work on all timeframes or assets due to market noise.
The Bollinger Bands are only visible when "SMA + Bollinger Bands" is selected as the smoothing type.
Credits
Developed by Marrulk. Enjoy trading with RSI - 5UP! 🚀
[blackcat] L3 Magic-9/13 with Reversal Points ConfirmationOVERVIEW
The L3 Magic-9/13 with Reversal Points Confirmation indicator is designed to help traders identify potential reversal points in the market using a sequential approach. This indicator adopts the "buy when fearful, sell when greedy" philosophy, focusing on capturing key reversal moments 📉↗️. It plots labels on the chart to indicate these reversal points and uses custom functions to filter occurrences based on specific conditions.
FEATURES
Identifies consecutive price movements to detect potential reversals.
Plots labels for various sequential patterns:
High Sequentials: 5, 6, 7, 8, 9, 12, 13
Low Sequentials: 5, 6, 7, 8, 9, 12, 13
Uses custom functions to count consecutive occurrences and filter conditions.
Provides visual confirmation of reversal points with colored labels 🏷️.
Allows customization of sequence lengths and lookback periods ⚙️.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Observe the plotted labels indicating potential reversal zones:
Green labels for buy signals ('B').
Red labels for sell signals ('S').
Customize the sequence lengths and lookback periods as needed in the settings panel.
Combine this indicator with other tools for confirmation before making trading decisions.
LIMITATIONS
The indicator relies heavily on sequential patterns, which might not capture all market nuances.
False signals can occur in ranging or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Understand the concept of buying at bottoms and selling at tops before using this indicator.
[blackcat] L3 Magic-9 Sequential SetupOVERVIEW
The L3 Magic-9 Sequential Setup indicator is designed to identify potential reversal points in the market using a sequential pattern analysis. This script plots specific labels on the chart based on predefined conditions, helping traders spot key levels where price reversals might occur 📉↗️.
FEATURES
Identifies consecutive occurrences of price movements above or below certain thresholds.
Plots labeled markers on the chart for easy visualization:
Red Labels: Indicate potential sell signals (e.g., '5', '6', '7', etc.).
Green Labels: Indicate potential buy signals (e.g., '5', '6', '7', etc.)
Uses custom functions to filter and count occurrences over specified lookback periods ⚙️.
Changes bar colors based on detected signals for enhanced visual cues 🎨.
Supports extensive customization through input parameters for fine-tuning the setup.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Observe the plotted labels ('5', '6', '7', etc.) indicating potential reversal zones.
Pay attention to bar color changes that confirm the identified patterns.
Combine this indicator with other tools for confirmation before making trading decisions.
LIMITATIONS
The indicator relies heavily on sequential patterns, which may not capture all market nuances.
False signals can occur in ranging or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Customize input parameters as needed to fit your trading strategy.
Volume_volatility_24)📊 TechData24h (24h Technical Metrics)
This TradingView indicator displays and alerts on key daily metrics for the current trading instrument, including:
Volume (24h, Yesterday, Day Before Yesterday)
Price Change (%) over 24h
Volatility (%) over 24h
Volume Change (%) vs Yesterday and Day Before
Correlation with BTC (custom symbol & timeframe)
🔔 Custom Alerts:
You can define your own percentage thresholds for both positive and negative changes. Alerts will trigger when:
Price change exceeds or drops below a set threshold
Volatility crosses a threshold
Volume increases or decreases significantly
Correlation with BTC moves beyond limits
📋 Table Dashboard:
All selected metrics are shown in a 2-column dashboard at the bottom left of the chart, with color-coded values based on increase/decrease.
CandlestickUtilitiesThis library provides essential functions for candlestick chart analysis and pattern recognition in Pine Script®.
It includes:
• Candle structure analysis (bodies, shadows, lengths)
• Trend detection using EMAs
• Common candlestick pattern recognition
This library is under construction.
Designed to support strategy development and improve signal accuracy for traders.
Created by @xprophetx — under MPL-2.0 license.
[blackcat] L3 Magic-9 Sequential MACDOVERVIEW
The L3 Magic-9 Sequential MACD indicator is an advanced tool designed to enhance the traditional Moving Average Convergence Divergence (MACD) by incorporating sequential patterns. This script calculates various MACD components and applies custom logic to identify potential buy and sell signals based on specific sequential conditions 📊💹.
FEATURES
Calculates MACD Line, Signal Line, and enhanced histogram.
Plots colored histograms to visualize differences between MACD line and signal line:
Positive histogram bars indicate bullish momentum.
Negative histogram bars indicate bearish momentum.
Identifies sequential patterns in the MACD line for generating buy ('Buy') and sell ('Sell') signals 🏷️.
Adds numerical labels (e.g., '5', '6', '7', etc.) to mark specific sequential conditions.
Supports customizable colors and styles for plotted elements ⚙️.
Generates alerts for identified sequential patterns 🔔.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Adjust the input parameters for Fast Length, Slow Length, and Signal Length.
Monitor the chart for labeled buy/sell signals and numerical markers indicating sequential patterns.
Set up alerts based on the generated signals to receive notifications when conditions are met 📲.
Use the indicator alongside other technical analysis tools for better decision-making.
LIMITATIONS
The effectiveness of sequential patterns may vary depending on market conditions.
False signals can occur in highly volatile or ranging markets 🌪️.
Users should always confirm signals with other forms of analysis before entering trades.
NOTES
Ensure that you have sufficient historical data available for accurate MACD calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Customize the appearance of the plotted elements as needed to suit your chart layout.
[blackcat] L3 Magic-9 Sequential within HighlightsOVERVIEW
The L3 Magic-9 Sequential within Highlights indicator is designed to identify potential buy and sell signals based on sequential price patterns. This script uses custom functions to detect consecutive occurrences of specific conditions and highlights these patterns on the chart with labels and background colors 📊🔍.
FEATURES
Detects sequential price patterns for both bullish and bearish movements:
High sequences: 5, 6, 7, 8, 9, 12, 13 bars.
Low sequences: 5, 6, 7, 8, 9, 12, 13 bars.
Plots characters ('5', '6', etc.) and shapes (arrows) on the chart to indicate detected sequences 🏷️↗️↘️.
Uses a customizable period for calculating averages of price differences.
Highlights overbought and oversold conditions using background colors 🎨.
Generates buy ('B') and sell ('S') labels based on filtered occurrences and index values.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Observe the plotted characters and arrows indicating detected sequential patterns.
Monitor the background color changes to identify overbought and oversold conditions.
Look for generated buy ('B') and sell ('S') labels for potential trading opportunities.
Customize the period and thresholds in the settings panel as needed ⚙️.
LIMITATIONS
The indicator relies heavily on sequential price patterns, which might not capture all market nuances.
False signals can occur in ranging or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis before making trading decisions.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Adjust the period and threshold inputs to fit your preferred trading strategy.
Slope Change Rate Volume ConfirmationSlope Change Rate Volume Confirmation (SCR)
█ OVERVIEW
This indicator identifies moments where the price trend is not just moving, but accelerating (i.e., the rate of change of the trend's slope is increasing or decreasing significantly), and crucially, whether this acceleration is confirmed by high volume . The core idea is that price acceleration backed by strong volume suggests higher conviction behind the move, potentially indicating the start or continuation of a strong thrust. Conversely, acceleration without volume might be less reliable.
It calculates the slope (velocity) of price movement, then the change in that slope (acceleration). This acceleration is normalized to a -100 to 100 range for consistent threshold application. Finally, it checks if significant acceleration coincides with volume exceeding its recent average.
█ HOW IT WORKS
The indicator follows these steps:
1. Slope Calculation (Velocity):
Calculates the slope of a linear regression line based on the input `Source` over the `Slope Calculation Length`. This represents the instantaneous rate of change or "velocity" of the price trend.
// Calculate linear regression slope (current value - previous value)
slope = ta.linreg(src, slopeLen, 0) - ta.linreg(src, slopeLen, 1)
2. Acceleration Calculation & Normalization:
Determines the bar-to-bar change in the calculated `slope` (`slope - slope `). This raw change represents the "acceleration". This value is then immediately normalized to a fixed range of -100 to +100 using the internal `f_normalizeMinMax` function over the `Volume SMA Length` lookback period. Normalization allows the `Acceleration Threshold` input to be applied consistently.
// Calculate slope change rate (acceleration) and normalize it
// f_normalizeMinMax(source, length, newMin, newMax)
accel = f_normalizeMinMax(slope - slope , volSmaLen, -100, 100)
*( Note: `f_normalizeMinMax` is a standard min-max scaling function adapted to the -100/100 range, included within the script's code.*)*
3. Volume Confirmation Check:
Calculates the Simple Moving Average (SMA) of volume over the `Volume SMA Length`. It then checks if the current bar's volume is significantly higher than this average, defined by exceeding the average multiplied by the `Volume Multiplier Threshold`.
// Calculate average volume
avgVolume = ta.sma(volume, volSmaLen)
// Determine if current volume is significantly high
isHighVolume = volume > avgVolume * volMultiplier
4. Confirmation Signals:
Combines the normalized acceleration and volume check to generate the final confirmation boolean flags:
// Bullish: Price is accelerating upwards (accel > threshold) AND volume confirms
confirmBullishAccel = accel > accelThreshold and isHighVolume
// Bearish: Price is accelerating downwards (accel < -threshold) AND volume confirms
confirmBearishAccel = accel < -accelThreshold and isHighVolume
█ HOW TO USE
Confirmation Filter: The primary intended use is to filter entry signals from another strategy. Only consider long entries when `confirmBullishAccel` is true, or short entries when `confirmBearishAccel` is true. This helps ensure you are entering during periods of strong, volume-backed momentum.
// Example Filter Logic
longEntry = yourPrimaryBuySignal and confirmBullishAccel
shortEntry = yourPrimarySellSignal and confirmBearishAccel
Momentum Identification: High absolute values of the plotted `Acceleration` (especially when confirmed by the shapes) indicate strong directional conviction.
Potential Exhaustion/Divergence: Consider instances where price accelerates significantly (large absolute `accel` values) without volume confirmation (`isHighVolume` is false). This *might* suggest weakening momentum or potential exhaustion, although this requires further analysis.
█ INPUTS
Slope Calculation Length: Lookback period for the linear regression slope calculation.
Volume SMA Length: Lookback period for the Volume SMA and also for the normalization range of the acceleration calculation.
Volume Multiplier Threshold: Factor times average volume to define 'high volume'. (e.g., 1.5 means > 150% of average volume).
Acceleration Threshold: The minimum absolute value the normalized acceleration (-100 to 100 range) must reach to trigger a confirmation signal (when combined with volume).
Source: The price source (e.g., close, HLC3) used for the slope calculation.
█ VISUALIZATION
The indicator plots in a separate pane:
Acceleration Plot: A column chart showing the normalized acceleration (-100 to 100). Columns are colored dynamically based on acceleration's direction (positive/negative) and change (increasing/decreasing).
Threshold Lines: White horizontal dashed lines drawn at the positive and negative `Acceleration Threshold` levels.
Confirmation Shapes:
Green Upward Triangle (▲) below the bar when Bullish Acceleration is confirmed by volume (`confirmBullishAccel` is true).
Red Downward Triangle (▼) above the bar when Bearish Acceleration is confirmed by volume (`confirmBearishAccel` is true).
█ SUMMARY
The SCR indicator is a tool designed to highlight periods of significant price acceleration that are validated by increased market participation (high volume). It can serve as a valuable filter for momentum-based trading strategies by helping to distinguish potentially strong moves from weaker ones. As with any indicator, use it as part of a comprehensive analysis framework and always practice sound risk management.
Multi-Scale Slope Alignment FilterMulti-Scale Slope Alignment Filter (MSSA)
█ OVERVIEW
This indicator identifies periods where the market trend, measured by the slope of a linear regression line, is aligned across multiple time scales (short, medium, and long-term). It acts as a trend confirmation filter, visually highlighting when different trend perspectives agree. The core idea is that signals or trades taken in the direction of aligned slopes might have a higher probability of success.
It plots the calculated slopes in a separate pane and colors the main chart background based on the alignment status: green for bullish alignment, red for bearish alignment.
█ HOW IT WORKS
The indicator calculates the slope of a linear regression line for three different lookback periods defined by the user inputs (`Short-Term`, `Medium-Term`, `Long-Term`).
The "slope" is determined by comparing the value of the linear regression line at the current bar (`offset=0`) to its value on the previous bar (`offset=1`).
A positive difference indicates an upward sloping regression line (potential uptrend).
A negative difference indicates a downward sloping regression line (potential downtrend).
The core calculation for a single slope is:
ta.linreg(source, length, 0) - ta.linreg(source, length, 1)
Based on these three slopes, the alignment state is determined:
Bullish Alignment: All three slopes (Short, Medium, Long) are positive (greater than 0). This suggests an uptrend is confirmed across all measured scales.
Bearish Alignment: All three slopes are negative (less than 0). This suggests a downtrend is confirmed across all measured scales.
Neutral/Mixed: The slopes do not unanimously agree (i.e., some are positive while others are negative, or some are zero). This indicates conflicting signals or a potential consolidation phase.
█ HOW TO USE
The primary use of the Multi-Scale Slope Alignment Filter (MSSA) is as a trend confirmation tool or trade filter .
Consider taking long trades only when the background is green ( Bullish Alignment ). This acts as confirmation that the broader trend context supports the long idea.
Consider taking short trades only when the background is red ( Bearish Alignment ). This acts as confirmation that the broader trend context supports the short idea.
Consider being cautious or avoiding trades when there is no background color ( Neutral/Mixed Alignment ), as the trend direction is unclear or conflicting across different timeframes.
This indicator is generally not designed to provide direct entry or exit signals on its own. It works best when combined with your primary trading strategy or other indicators to filter their signals based on multi-timeframe trend agreement.
Example filter logic:
// Example Long Condition
primaryLongSignal = ta.crossover(fastMA, slowMA) // Your primary signal
longCondition = primaryLongSignal and isBullishAligned // Filter with MSSA
// Example Short Condition
primaryShortSignal = ta.crossunder(fastMA, slowMA) // Your primary signal
shortCondition = primaryShortSignal and isBearishAligned // Filter with MSSA
█ INPUTS / SETTINGS
Short-Term Slope Length: (Default: 20) The lookback period for calculating the short-term linear regression slope.
Medium-Term Slope Length: (Default: 50) The lookback period for calculating the medium-term linear regression slope.
Long-Term Slope Length: (Default: 100) The lookback period for calculating the long-term linear regression slope.
Source: (Default: close) The price data source used for the linear regression calculations (e.g., close, HLC3, OHLC4).
█ VISUALIZATION
Background Coloring: The background of the main price chart is colored to indicate the alignment state:
Green: Bullish Alignment (all slopes positive).
Red: Bearish Alignment (all slopes negative).
No Color: Neutral/Mixed Alignment.
Indicator Pane: A separate pane below the main chart displays:
Three lines representing the calculated slope values for the short (red), medium (blue), and long (yellow) terms.
A dashed horizontal line at zero, making it easy to visually distinguish positive (above zero) from negative (below zero) slopes.
█ SUMMARY
The MSSA indicator provides a visual filter based on the consensus of trend direction across short, medium, and long-term perspectives using linear regression slopes. It helps traders align their strategies with the prevailing multi-scale trend environment. Remember to use it as part of a comprehensive trading plan and always practice sound risk management. This tool provides analysis and is not financial advice.
Apex Edge SMC Tactical Suite
🛰 Apex Edge SMC Tactical Suite
Apex Edge SMC Tactical Suite is a precision-engineered multi-signal tool designed for advanced traders who demand real-time edge detection, breakout identification, and smart volatility-based risk placement. Built to blend seamlessly into any price action, SMC, or momentum-based strategy.
🔧 Core Features:
📍 Entry Signals
Green & red arrows appear only when a candle meets strict "Power Candle" criteria:
High momentum breakout
Volume spike confirmation
OBV spike divergence
Trend & HTF filter optional
Volatility-adjusted stop placement
💥 Power Candles
Smart detection of explosive volume+range candles
Custom "fuel score" system ranks their momentum potential
Displays as either candle highlights or subtle labels
📊 Fuel Meter
RSI-based energy tracker with customizable threshold
Plots real-time bar strength on a mini histogram
🧠 Trap Detection + Reversals
Detects stop hunt wicks or "liquidity traps"
Shows reversal diamonds on potential reclaim setups
Built-in swing logic confirms trap reversals
🧮 HTF Filtering
Optional higher-timeframe trend filter via Hull MA
Keeps signals aligned with broader market direction
📦 TP/SL Zones
Risk is calculated using volatility clustering (recent swing zones)
TP auto-calculated using ATR-based expansion
🔔 Alerts Included:
✅ Power Candle Detection
✅ Long/Short Entry Alerts
✅ Exit Signal Alerts
✅ Trap Defense Alerts
✅ Trap Reversal Confirmations
🎯 Ideal For:
SMC / ICT traders
Breakout traders
Trend followers
Scalpers / intraday setups
Momentum + volume combo traders
⚠️ Tip: Best paired with clean chart layouts, market structure, or order block frameworks. Can be combined with internal/external liquidity sweep logic for extra confluence.
Feel free to play around with the code and if you're a professional coder (unlike me) then please tag me into any versions that you can make better. Enjoy!
Disclaimer - This script was created entirely with many hours using the assistance of ChatGPT
GIGANEVA V6.61 PublicThis enhanced Fibonacci script for TradingView is a powerful, all-in-one tool that calculates Fibonacci Levels, Fans, Time Pivots, and Golden Pivots on both logarithmic and linear scales. Its ability to compute time pivots via fan intersections and Range interactions, combined with user-friendly features like Bool Fib Right, sets it apart. The script maximizes TradingView’s plotting capabilities, making it a unique and versatile tool for technical analysis across various markets.
1. Overview of the Script
The script appears to be a custom technical analysis tool built for TradingView, improving upon an existing script from TradingView’s Community Scripts. It calculates and plots:
Fibonacci Levels: Standard retracement levels (e.g., 0.236, 0.382, 0.5, 0.618, etc.) based on a user-defined price range.
Fibonacci Fans: Trendlines drawn from a high or low point, radiating at Fibonacci ratios to project potential support/resistance zones.
Time Pivots: Points in time where significant price action is expected, determined by the intersection of Fibonacci Fans or their interaction with key price levels.
Golden Pivots: Specific time pivots calculated when the 0.5 Fibonacci Fan (on a logarithmic or linear scale) intersects with its counterpart.
The script supports both logarithmic and linear price scales, ensuring versatility across different charting preferences. It also includes a feature to extend Fibonacci Fans to the right, regardless of whether the user selects the top or bottom of the range first.
2. Key Components Explained
a) Fibonacci Levels and Fans from Top and Bottom of the "Range"
Fibonacci Levels: These are horizontal lines plotted at standard Fibonacci retracement ratios (e.g., 0.236, 0.382, 0.5, 0.618, etc.) based on a user-defined price range (the "Range"). The Range is typically the distance between a significant high (top) and low (bottom) on the chart.
Example: If the high is $100 and the low is $50, the 0.618 retracement level would be at $80.90 ($50 + 0.618 × $50).
Fibonacci Fans: These are diagonal lines drawn from either the top or bottom of the Range, radiating at Fibonacci ratios (e.g., 0.382, 0.5, 0.618). They project potential dynamic support or resistance zones as price evolves over time.
From Top: Fans drawn downward from the high of the Range.
From Bottom: Fans drawn upward from the low of the Range.
Log and Linear Scale:
Logarithmic Scale: Adjusts price intervals to account for percentage changes, which is useful for assets with large price ranges (e.g., cryptocurrencies or stocks with exponential growth). Fibonacci calculations on a log scale ensure ratios are proportional to percentage moves.
Linear Scale: Uses absolute price differences, suitable for assets with smaller, more stable price ranges.
The script’s ability to plot on both scales makes it adaptable to different markets and user preferences.
b) Time Pivots
Time pivots are points in time where significant price action (e.g., reversals, breakouts) is anticipated. The script calculates these in two ways:
Fans Crossing Each Other:
When two Fibonacci Fans (e.g., one from the top and one from the bottom) intersect, their crossing point represents a potential time pivot. This is because the intersection indicates a convergence of dynamic support/resistance zones, increasing the likelihood of a price reaction.
Example: A 0.618 fan from the top crosses a 0.382 fan from the bottom at a specific bar on the chart, marking that bar as a time pivot.
Fans Crossing Top and Bottom of the Range:
A fan line (e.g., 0.5 fan from the bottom) may intersect the top or bottom price level of the Range at a specific time. This intersection highlights a moment where the fan’s projected support/resistance aligns with a key price level, signaling a potential pivot.
Example: The 0.618 fan from the bottom reaches the top of the Range ($100) at bar 50, marking bar 50 as a time pivot.
c) Golden Pivots
Definition: Golden pivots are a special type of time pivot calculated when the 0.5 Fibonacci Fan on one scale (logarithmic or linear) intersects with the 0.5 fan on the opposite scale (or vice versa).
Significance: The 0.5 level is the midpoint of the Fibonacci sequence and often acts as a critical balance point in price action. When fans at this level cross, it suggests a high-probability moment for a price reversal or significant move.
Example: If the 0.5 fan on a logarithmic scale (drawn from the bottom) crosses the 0.5 fan on a linear scale (drawn from the top) at bar 100, this intersection is labeled a "Golden Pivot" due to its confluence of key Fibonacci levels.
d) Bool Fib Right
This is a user-configurable setting (a boolean input in the script) that extends Fibonacci Fans to the right side of the chart.
Functionality: When enabled, the fans project forward in time, regardless of whether the user selected the top or bottom of the Range first. This ensures consistency in visualization, as the direction of the Range selection (top-to-bottom or bottom-to-top) does not affect the fan’s extension.
Use Case: Traders can use this to project future support/resistance zones without worrying about how they defined the Range, improving usability.
3. Why Is This Code Unique?
Original calculation of Log levels were taken from zekicanozkanli code. Thank you for giving me great Foundation, later modified and applied to Fib fans. The script’s uniqueness stems from its comprehensive integration of Fibonacci-based tools and its optimization for TradingView’s plotting capabilities. Here’s a detailed breakdown:
All-in-One Fibonacci Tool:
Most Fibonacci scripts on TradingView focus on either retracement levels, extensions, or fans.
This script combines:
Fibonacci Levels: Static horizontal lines for retracement and extension.
Fibonacci Fans: Dynamic trendlines for projecting support/resistance.
Time Pivots: Temporal analysis based on fan intersections and Range interactions.
Golden Pivots: Specialized pivots based on 0.5 fan confluences.
By integrating these functions, the script provides a holistic Fibonacci analysis tool, reducing the need for multiple scripts.
Log and Linear Scale Support:
Many Fibonacci tools are designed for linear scales only, which can distort projections for assets with exponential price movements. By supporting both logarithmic and linear scales, the script caters to a wider range of markets (e.g., stocks, forex, crypto) and user preferences.
Time Pivot Calculations:
Calculating time pivots based on fan intersections and Range interactions is a novel feature. Most TradingView scripts focus on price-based Fibonacci levels, not temporal analysis. This adds a predictive element, helping traders anticipate when significant price action might occur.
Golden Pivot Innovation:
The concept of "Golden Pivots" (0.5 fan intersections across scales) is a unique addition. It leverages the symmetry of the 0.5 level and the differences between log and linear scales to identify high-probability pivot points.
Maximized Plot Capabilities:
TradingView imposes limits on the number of plots (lines, labels, etc.) a script can render. This script is coded to fully utilize these limits, ensuring that all Fibonacci levels, fans, pivots, and labels are plotted without exceeding TradingView’s constraints.
This optimization likely involves efficient use of arrays, loops, and conditional plotting to manage resources while delivering a rich visual output.
User-Friendly Features:
The Bool Fib Right option simplifies fan projection, making the tool intuitive even for users who may not consistently select the Range in the same order.
The script’s flexibility in handling top/bottom Range selection enhances usability.
4. Potential Use Cases
Trend Analysis: Traders can use Fibonacci Fans to identify dynamic support/resistance zones in trending markets.
Reversal Trading: Time pivots and Golden Pivots help pinpoint moments for potential price reversals.
Range Trading: Fibonacci Levels provide key price zones for trading within a defined range.
Cross-Market Application: Log/linear scale support makes the script suitable for stocks, forex, commodities, and cryptocurrencies.
The original code was from zekicanozkanli . Thank you for giving me great Foundation.