RSI Shift Zone [ChartPrime] with MAThis is a modified version of the original *RSI Shift Zone * script.
What’s new?
➤ Added a customizable Moving Average (SMA/EMA) plotted on top of the RSI for better trend confirmation.
➤ Keeps the original RSI zone detection logic and highlights possible reversal or shift areas.
➤ Clean visual style with clear zone fills, labels, and optional RSI value display.
Settings:
- RSI Length and Levels
- Minimum Channel Length
- Display RSI Value Toggle
- Moving Average Length & Type (SMA or EMA)
License: This script is shared under the Mozilla Public License 2.0 and retains © ChartPrime as the original author.
I hope this helps traders get a better visual on trend shifts and confirmations.
Feel free to share feedback or suggestions!
Göstergeler ve stratejiler
🟡🔵🟢🔴Beginner's Assistant by carljchapman🟡🔵🟢🔴
Overview
This indicator dynamically marks highs and lows of the premarket (4:00am-9:30amEST) and opening range. It displays Fair Value Gaps, 9 and 21 period Exponential Moving Averages (EMA) and the Volume Weighted Average Price (VWAP). To really help beginners, it marks suggested entry points on the chart with green or red triangles, when a reasonable trend appears.
Features
Automatically draws blue lines for Premarket High and Low values
Dynamically marks the opening Range region
Visual entry signals for long and short opportunities
Primarily used for stocks/funds , but works with forex and crypto
Quick configuration settings to tailor details for your experience level
Mobile friendly mode
Supports alerts
How To Use
Open your chart, and select a 1 or 2 minute timeframe.
Watch for green triangles and red triangles, hinting at entries for long or short positions. Pay particular attention to the price action as it approaches the bounds of the opening range and the premarket levels. I suggest also using a MACD indicator for confirmation of the trend.
For scalping 0dte Options, switch frequently between the 1 ,2 and 5 minute or higher timeframes. Do this so you will not miss an entry opportunity or be unaware of the overall trend.
As a beginner, until you have refined your strategy and develop risk management, take profits as low as 10%. A small profit can quickly become a much larger loss. With 0dte options, time will devour your profits even when the price doesn’t budge.
What makes this indicator so beginner friendly?
Charts with too many lines and colors are are a nightmare for beginners! And empty charts do not tell the whole story. Simple checkboxes in the configuration settings let you turn on and off features to match your comfort level. As you become more familiar you might try turning off the suggested entries to see if you would have selected the same or better ones yourself. Just one example of how you will learn and verify your knowledge. You will quickly spot Opening Range Breakouts and more.
Why are the triangle pointers not simply above or below the bars?
As a beginner, I like to review charts to see how much the price changed, then estimate how much a contract would move based on its delta. A mouthful, I know. But what price does an arrow pointing up below a bar reflect? Would I have entered at the open or close, low or high? This indicator helps by putting the marker close to the price when indicated. It can even display the actual price on the bar. This is helpful for you to make fast calculations without a measuring tool.
I am an experienced trader. Can this help me make winning trades?
Sure. It can also help you make losing ones! Profit is not guaranteed with any indicator or strategy. This indicator is designed to assist you as you learn and while you trade. You won't see the words BUY or SELL. This is not a signal bot! It is merely a tool to assist you. You can learn a lot by spending time observing price movement using this indicator without ever making a single trade.
🟡🔵🟢🔴
Logarithmic Moving Average (LMA) [QuantAlgo Original Author: QuantAlgo
License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
Source: creativecommons.org
This script is originally developed by QuantAlgo and is shared under the CC BY-NC-SA 4.0 license.
I have reused and slightly modified it for personal learning and for the benefit of the TradingView community.
All core credits belong to QuantAlgo.
This version remains fully open-source and non-commercial, respecting the original license terms.
Anyone reusing or modifying this script must keep the same license and attribution.
— Modified & shared publicly by Mark804
Dual ORB (5 & 15 Min) Retest SignalsThe Dual Orb Indicator allows you to see the orb effortlessly! it also gives you buy/sell signals on both the 5 minute timeframe and the 15 minute timeframe! if you have any questions or suggestions please comment below and let me know what you think!
NACHO_MC/KAS_MCThis indicator allow to see the Nacho dominance % vs KAS, based on the real circulating supply.
Aroon, Velocity & RMS Volume Strategy📈 Strategy Name:
Aroon, Velocity & RMS Volume Strategy
By GabrielAmadeusLau
🧠 Strategy Overview
This strategy is a hybrid momentum-trend model designed to trade directional breakouts using Aroon Oscillator crossovers, volume acceleration (velocity), and trend confirmation via a Super Smoother filter. Trade entries are filtered by custom time windows, and position sizing is dynamically calculated using ATR-based risk parameters.
🧩 Core Components
🔶 1. Aroon Oscillator
Detects breakout points using the relative position of recent highs/lows.
Aroon Up > Aroon Down triggers long setups; the opposite for short.
A baseline shift (-50) centers the Aroon plots for symmetry.
📉 2. Super Smoother Trend Filter
A zero-lag digital filter (2-pole smoother) applied to price.
Acts as a directional bias confirmation:
Price must be above the smoother for longs.
Price must be below for shorts.
📊 3. Velocity of RMS Volume
Measures the rate of change of volume, enhanced with RMS normalization and bandpass filtering.
Entries are only taken when volume velocity is rising, indicating increasing market activity in the trade direction.
⚙️ Entry Conditions
✅ Long Entry
Aroon Up crosses above Aroon Down
Price is above the Super Smoother
Volume velocity is rising
Current hour is not excluded
✅ Short Entry
Aroon Down crosses above Aroon Up
Price is below the Super Smoother
Volume velocity is rising
Current hour is not excluded
🔒 Risk Management & Position Sizing
ATR-Based Stop Loss & Take Profit:
SL = entry price ± ATR × sl_mult
TP = entry price ± ATR × tp_mult
Fixed Dollar Risk per Trade ($):
Position size is auto-calculated using:
units
=
⌊
User Risk
Stop Distance
⌋
units=⌊
Stop Distance
User Risk
⌋
🕐 Time Filtering
User-defined option to exclude up to three hours from trading (e.g., during low-liquidity or poor-performance times).
Controlled via:
excludeHour toggle
excludeHour1, excludeHour2, excludeHour3
📺 Visuals and Plots
Aroon Up / Down: shifted to oscillate around 0 for visual clarity.
Super Smoother: thick red trend line over price.
Velocity: dynamically shaded area chart (teal = increasing, red = decreasing).
🧠 Advanced Features (Behind-the-Scenes)
Includes modular filters and custom smoothing techniques for expansion:
Jurik MA, Butterworth HP, Laguerre Filter, Tillson T3, Hann FIR, RMS Scaling
Modular ma() and velocity() functions enable future extension and dynamic experimentation.
✅ Strengths
Combines trend, momentum, and volume in a single signal framework.
Employs robust digital signal processing filters for noise reduction.
Custom position sizing + time filtering add risk control and flexibility.
Trend Range Detector (Zeiierman)█ Overview
Trend Range Detector (Zeiierman) is a market structure tool that identifies and tracks periods of price compression by forming adaptive range boxes based on volatility and price movement. When prices remain stable within a defined band, the script dynamically draws a range box; when prices break out of that structure, the box highlights the breakout in real-time.
By combining a volatility-based envelope with a custom weighted centerline, this tool filters out noise and isolates truly stable zones — providing a clean framework for traders who focus on accumulation, distribution, breakout anticipation, and reversion opportunities.
Whether you're range trading, spotting trend consolidations, or looking for volatility contractions before major moves, the Trend Range Detector gives you a mathematically adaptive, visually intuitive structure that maps the heartbeat of the market.
█ How It Works
⚪ Range Formation Engine
The core of this indicator revolves around two conditions:
Distance Filter: The maximum distance between all recent closes and a dynamic centerline must remain within a volatility envelope.
Volatility Envelope: Based on an ATR(2000) multiplied by a user-defined factor to account for broader market volatility trends.
If both conditions are satisfied over the most recent length bars, a range box is drawn to visually anchor the zone.
⚪ Dynamic Breakout Coloring
When price breaks out of the top or bottom of the active range box, the box color shifts in real-time:
Blue Boxes represent areas where price has remained within a defined volatility envelope over a sustained number of bars. These zones reflect stable, low-volatility periods, often associated with consolidation, equilibrium, or market indecision.
Green Boxes for bullish breakouts.
Red Boxes for bearish breakdowns.
This allows traders to visually spot transitions from consolidation to expansion phases without relying on lagging signals.
█ Why Use a Weighted Close Instead of SMA?
A standard Simple Moving Average (SMA) treats all past closes equally, which works well in theory, but not in dynamic, fast-shifting markets. In this script, we replace the traditional SMA with a speed-weighted average that reflects how aggressively the market has moved bar-to-bar.
⚪ Here's why it matters:
Bars with higher momentum (larger price differences between closes) are given more weight.
Slow, sideways candles (typical in noise or low volume) contribute less to the calculated centerline.
This method creates a more accurate snapshot of market behavior, especially during volatile phases. As a result, the indicator adapts to market conditions more effectively, helping traders identify real consolidation zones, not just average lines distorted by flat bars or noise.
█ How to Use
⚪ Range Detection
Boxes form only when price remains consistently close to the speed-weighted mean.
Helps identify sideways zones, consolidations, and low-volatility structures where price is “charging up.”
⚪ Breakout Confirmation
Once price exits the top or bottom boundary, the box immediately highlights the direction of the break.
Use this signal in conjunction with your own momentum, volume, or trend filters for higher-confidence trades.
█ Settings
Minimum Range Length: Number of candles required for a valid range to form.
Range Width Multiplier: Adjusts the envelope around the weighted average using ATR(2000).
Highlight Box Breaks: Enables real-time coloring of breakouts and breakdowns for immediate visual feedback.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Smart Scalper - Liquidez + Tendência + Confirmação### Crypto Master Indicator (CMI) - Summary for TradingView Users
**Purpose**: The Crypto Master Indicator (CMI) is a versatile Pine Script (v5) tool for traders, combining Moving Averages, RSI, MACD, Bollinger Bands, Volume, and ATR to generate buy/sell signals, identify trends, and support risk management. Ideal for crypto trading but adaptable to other markets.
**Key Features**:
- **Indicators Used**: Fast/Slow EMA (8/21), SMA (50), RSI (14), MACD (12,26,9), Bollinger Bands (20, 2.0), Volume, ATR (14).
- **Buy Signals**: Triggered by uptrend, bullish EMAs, momentum (RSI > 50, MACD bullish), or price breaking above Bollinger Bands. Strong signals (2+ conditions) are bright green triangles.
- **Sell Signals**: Triggered by downtrend, bearish EMAs, negative momentum, or price breaking below Bollinger Bands. Strong signals are bright red triangles.
- **Visuals**: Plots EMAs, Bollinger Bands, signal triangles, and a status table (trend, RSI, MACD, volume, EMAs). Candles are colored by trend (green/red/gray).
- **Alerts**: For buy, sell, strong buy, and strong sell signals.
- **Support/Resistance**: Dynamic levels based on Bollinger Bands and EMAs (not plotted by default).
**How to Use**:
1. **Signals**: Green triangles (buy) below bars, red/orange (sell) above. Stronger signals are brighter.
2. **Confirmation**: Check the status table for trend, momentum, and volume. Prefer high-volume signals in the trend direction.
3. **Risk Management**: Stop-loss at 2x ATR, take-profit at 3x ATR or near support/resistance.
4. **Timeframes**: 15M/1H for day trading, 4H/1D for swing trading.
5. **Customization**: Adjust periods, toggle visuals, or uncomment support/resistance lines.
**Tips**:
- Confirm signals with price action or patterns.
- Avoid trading against extreme RSI levels (>70 or <30).
- Backtest for your market/timeframe.
- Set alerts for real-time notifications.
This indicator simplifies decision-making while offering flexibility for various trading styles. Adjust settings to optimize for your strategy!
TrendShift [MOT]📈 TrendShift – Multi-Factor Momentum & Trend Signal Suite
TrendShift is a precision-built momentum and confluence tool designed to highlight directional shifts in price action. It combines EMA slope structure, oscillator confirmation, volume behavior, and dynamic SL/TP logic into one cohesive system. Whether you're trading with the trend or catching reversals, TrendShift provides data-backed clarity and visual confidence — and it’s available free to the public.
🔍 Core Signal Logic
Buy (🟢 Long) and Sell (🔴 Short) signals are triggered when multiple conditions align within a set bar window (default: 5 bars):
Stochastic RSI K/D cross
RSI crosses above 20 (long) or below 80 (short)
Stochastic RSI breaks 20 (long) or 80 (short)
Volume exceeds 20-bar average
🧭 Visual Trend Dashboard – Signal Table
A real-time on-chart dashboard displays:
EMA Trend: Bullish / Bearish / Mixed (based on 4 EMA slopes)
Stoch RSI: Oversold / Overbought / Neutral
RSI: Exact value with zone label
Volume: Above or Below average
Dashboard theme and position are fully customizable.
📐 Trend Structure with EMA Slope Logic
Plots four EMAs (21, 50, 100, 200) color-coded by slope:
Green = Rising
Red = Falling
These feed into the dashboard's EMA Trend display.
🎯 Optional Take Profit / Stop Loss Zones
When enabled, SL/TP lines plot automatically on valid signals:
Fixed-distance targets (e.g., 10pt TP, 5pt SL)
Auto-remove on TP or SL hit
Separate lines for long vs. short trades
Fully customizable styling
🔁 Trailing Stop Filter (Internal Logic)
A custom ATR-based trailing stop helps validate directional strength:
ATR period
HHV window
ATR multiplier
Used internally — not plotted — to confirm trend progression before entry.
⚙️ Customizable Parameters
Every core component is user-configurable:
EMA periods: 21 / 50 / 100 / 200
ATR trailing logic: period, HHV, multiplier
Oscillator settings: Stoch RSI & RSI
Volume length
SL/TP toggles and point values
Bar clustering window
Dashboard theme and location
🔔 Alerts Included
BUY Signal Triggered
SELL Signal Triggered
Compatible with webhook automation or mobile push notifications.
⚠️ Disclaimer
This tool is for educational purposes only and is not financial advice. Trading involves risk — always do your own research and consult a licensed professional before making trading decisions.
Share Size FinderEnter your target gain and return timeframe to calculate how many shares to buy and the price you’ll need to sell at to meet that goal.
The return timeframe is based on how many candles (based on the ATR) it may take to reach your exit price. I use 2 for scalping.
The table shows the total cost of buying that share amount at the current price—useful for managing account risk, especially for cash accounts or those under PDT rules.
A chart of the exit price is also included to help you compare with projections like Fibonacci extensions.
TQQQ Live PnL TrackerTQQQ PnL Tracker by IceTrader Team - #MakeMyPortfolioGreatAgain
Once you add the script, modify this section of the code to match your exact TQQQ order and start tracking its Profit/Loss.
code block:
entryPrice = 86.65 (set the price at which you bought)
positionSize = 1155 (set the exact quantity of stocks you bought)
direction = "Long" (Change to "Short" if it's a short trade)
Basic ORB [MOT]🟢 Basic ORB – Opening Range Breakout Indicator by MOT
The Basic ORB is a high-performance Opening Range Breakout (ORB) tool built for serious intraday traders. This indicator is being provided to the public for free.
It automatically draws the high, low, and midline of the 9:30–9:45 AM ET session, giving you a visual framework for high-probability breakout and reversal opportunities. You can customize line colors and enable historical ORBs — all from a clean, intuitive interface.
📌 1. ORB High, Low & Midline Levels
Function: Automatically draws the high, low, and midpoint of the 9:30–9:45 session.
ORB High (green line by default)
ORB Low (red line by default)
Midline (white line) helps gauge control or range equilibrium
📸 Live ORB range drawing: high, low, and midline levels.
🔁 2. Show Previous ORBs
Function: Displays up to N previous days' ORBs for pattern recognition or confluence stacking.
Previous ORB count up to chart data maximum
Great for seeing whether price respects prior opening ranges
📸 Historical ORB ranges for confluence and support/resistance.
🏷️ 3. Dynamic Price Labels
Function: Price labels are placed next to each ORB for quick visibility.
Labels can be toggled on/off
Customizable text color, background color, and size
Offset control available
⚙️ 4. Fully Customizable Settings Panel
Function: Every visual element is adjustable, including:
✅ Line color and width
✅ Number of historical ORBs
✅ Label size, position, background/text color
📈 Use Case
Works best on 1m, 5m, or 15m charts
Ideal for breakout traders, reversal scalpers, or gap/ORB retest strategies
Applies to futures, stocks, ETFs, indexes, and crypto
⚠️ Disclaimer
This indicator is intended for educational and informational purposes only. It is not financial advice. Trading involves substantial risk. Always use proper risk management and test in a simulated environment before applying live. The author is not liable for any fi
Adaptive Trend Cloud + Smart Reversal Zones [@darshakssc]This indicator combines a volatility-adjusted trend cloud with RSI- and volume-based reversal signals to help traders visually spot potential trend continuation or reversal zones.
It’s designed to look clean, colorful, and informative — great for both beginners and experienced traders looking for chart clarity and actionable insights.
🔍 How It Works
🔵 1. Trend Cloud
1. The cloud is created using a 34-period EMA as the base and adjusted with a 14-period ATR multiplier.
2. When price is above the EMA, the cloud turns green (bullish).
3. When price is below the EMA, it turns red (bearish).
4. A neutral gray tone shows when price is inside the cloud, signaling potential indecision.
🔁 2. Smart Reversal Signal Logic
1. Signals appear only when price enters the cloud zone, indicating a potential change in direction.
2. To confirm the reversal, the following conditions must also be met:
3. RSI is below 40 (for bullish reversals) or above 60 (for bearish reversals)
4. A volume spike occurs (1.8× the 20-bar volume average)
5. A cooldown of 10 bars between signals prevents overplotting
🎯 3. TP & SL Labels
1. When a valid buy or sell signal appears:
🎯 TP (Take Profit) is placed at 2× ATR distance
🛑 SL (Stop Loss) is placed at 1× ATR distance
These levels are shown via chart labels for visual reference
🛎️ 4. Alerts
1. Built-in alerts trigger on:
🟢 Buy reversal signals
🔴 Sell reversal signals
✅ How to Use
1. Apply the indicator to any chart (works best on 5min–4h timeframes)
2. Look for the 🟢 Buy / 🔴 Sell labels when price touches the cloud
3. Use the visual TP/SL markers as reference zones — not financial advice
4. Combine with your own risk management, price action or confluence tools
⚙️ Customization Options
1. EMA & ATR lengths and multipliers
2. RSI and volume thresholds
3. Signal cooldown to reduce noise
4. Toggle TP/SL zones on or off
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice. Always test on demo accounts and combine with your own trading system.
Tageszeit Linien# Custom Time Lines Indicator
**Customizable vertical time markers for precise session tracking**
This Pine Script indicator draws up to three customizable vertical lines at specific times during the trading day, perfect for marking important market sessions, news events, or personal trading schedules.
## Features
- **Three Independent Time Lines**: Each line can be set to any hour and minute
- **Fully Customizable Times**: Set exact times (hours 0-23, minutes 0-59)
- **Individual Colors**: Each line has its own color setting
- **CET/MEZ Timezone**: All times are calculated in Central European Time
- **Adjustable Line Width**: Line thickness from 1-3 pixels
- **Full Chart Extension**: Lines extend across the entire chart height
- **Clean Design**: No price level markers, just clean time divisions
## Default Settings
- **Line 1**: 00:00 CET (Midnight) - Gray
- **Line 2**: 09:00 CET (European Market Open) - Green
- **Line 3**: 15:30 CET (US Market Open) - Red
## Customization Options
Each line can be individually configured:
- **Hour Setting**: 0-23 (24-hour format)
- **Minute Setting**: 0-59
- **Color**: Any color for each line
- **Line Width**: 1-3 pixel thickness
## Usage Examples
Perfect for traders who want to mark:
- Market opening/closing times
- News release schedules
- Personal trading sessions
- Economic calendar events
- Custom time-based strategies
- Multi-timezone trading schedules
## How to Use
1. Add the indicator to your chart
2. Open indicator settings
3. Set your desired times for each line (hour and minute)
4. Choose colors that match your chart theme
5. Adjust line width as needed
All times are automatically converted to CET/MEZ timezone for consistent European trading hours.
Multi-Timeframe SMTSummery
The Multi-Timeframe SMT indicator is designed to identify and visualize Higher Timeframe (HTF) data on a Lower Timeframe (LTF) chart, allowing traders to see the broader market context without changing their current chart's resolution. It accurately draws pivots and SMT divergences from higher timeframes on the corresponding candles of your current lower timeframe chart.
Its core features include:
Multi-Timeframe Analysis: Configure and monitor pivots on up to four independent timeframes, from intraday to monthly.
Customizable Pivot Detection: Define the strength of pivots by adjusting the number of bars to the left and right.
SMT Divergence: Automatically identifies bullish and bearish SMT divergences by comparing the price action of the main chart symbol with a chosen correlated asset.
Early SMT Detection: A unique feature that monitors a lower "detection timeframe" to provide early warnings of potential SMT setups before they're confirmed on the main timeframe. Note that this early detection is only shown on timeframes equal to or lower than the "Detection timeframe" you have set.
Visual Cues & Alerts: Clear on-chart labels, lines, and fully customizable alerts notify you of confirmed pivots and SMT divergences, ensuring you don't miss key opportunities.
Important Nuance Regarding Pivot Label Display
Due to a self-imposed limit within this script's drawing management logic, the indicator might quickly reach its drawing capacity if you enable pivot crosses for multiple timeframes simultaneously. When this internal drawing limit is exceeded, the script is designed to automatically remove the oldest drawings to make space for new ones.
Therefore, to ensure optimal performance and visibility of the most recent and relevant pivots, it's highly recommended to only enable the "Show Pivot Crosses" option for one timeframe at a time. If you wish to view pivots for a different timeframe, simply disable the pivot crosses for the currently active timeframe and then enable them for your desired one. This approach prevents the rapid cycling and disappearance of pivot labels, providing a clearer and more stable visual experience.
In-Depth Explanation of the Logic
This script is built on two primary concepts: pivot points and Smart Money Technique (SMT) divergence. It systematically collects historical data on multiple timeframes, identifies pivots, and then compares them between two assets to find divergences.
Pivot Point Identification
A pivot is a turning point in the market. A pivot high is a candle that has a higher high than the candles to its immediate left and right. Conversely, a pivot low is a candle with a lower low than its neighbors.
How it Works in the Script:
The script tracks the highest high and lowest low for each period of the selected timeframe (e.g., for each 4-hour candle). When a new high-timeframe candle closes, it stores that high/low value and its bar index in an array. The checkForPivot() function then checks if a recently stored high or low qualifies as a pivot.
Key Inputs:
Left Strength (leftBars1): The number of candles to the left that must have a lower high (for a pivot high) or higher low (for a pivot low).
Right Strength (rightBars1): The number of candles to the right that must meet the same criteria.
For example, with Left Strength and Right Strength both set to 3, a pivot high is only confirmed when its high is greater than the highs of the 3 previous high-timeframe candles and the 3 subsequent high-timeframe candles. Increasing these values will identify more significant, longer-term pivots.
Smart Money Technique (SMT) Divergence
SMT Divergence is a concept popularized by The Inner Circle Trader (ICT). It occurs when two closely correlated assets fail to move in sync. For instance, if Asset A makes a higher high but Asset B fails to do so and instead makes a lower high, this creates a bearish SMT divergence. It suggests that the "smart money" may not be supporting the move in Asset A, signaling a potential reversal.
Bearish SMT: Main asset makes a higher high, while the correlated asset makes a lower high. This is a potential sell signal.
Bullish SMT: Main asset makes a lower low, while the correlated asset makes a higher low. This is a potential buy signal.
How it Works in the Script:
Data Request: For each timeframe, the script uses the request.security() function to fetch the high and low data for both the main chart symbol (syminfo.tickerid) and the chosen Comparison Asset.
Pivot Comparison: When a new pivot is confirmed on the main asset, the script checks if a corresponding pivot also formed on the comparison asset at the same time.
Divergence Check: It then compares the direction of the pivots. For a bearish SMT, it checks if the main asset's new pivot high is higher than its previous pivot high, while the comparison asset's new pivot high is lower than its previous one. The logic is reversed for bullish SMT.
Visualization: If a divergence is found, the script draws a red (bearish) or green (bullish) line connecting the two pivots on your chart and places an "SMT" label.
Early SMT Detection
This is a proactive feature designed to give you a heads-up. Waiting for a 4-hour or daily pivot to form can take a long time. The early detection system looks for SMT divergences on a much smaller, user-defined Detection timeframe (e.g., 15-minute).
How it Works in the Script:
Awaiting Setup: After a primary pivot (Pivot A) is formed on the main timeframe (e.g., a Daily pivot high), the script begins monitoring.
Intraday Monitoring: It then watches the Detection timeframe (e.g., 15-minute) for smaller intraday pivots.
Potential Divergence: It looks for an intraday pivot that forms a divergence against the primary Pivot A.
Watchline & Alert: When this "potential" divergence occurs, the script draws a dashed white line and triggers a "Potential SMT" alert. This isn't a confirmed SMT on the main timeframe yet, but it's a powerful early warning that one may be forming.
Drawing & Object Management
To keep the chart clean and prevent performance issues, the script manages its drawings (lines and labels) efficiently. It stores them in arrays and uses a drawing limit to automatically delete the oldest drawings as new ones are created, ensuring your TradingView remains responsive.
How to Use the Indicator
Configuration
Enable Timeframes: Use the checkboxes (Enable Timeframe 1, Enable Timeframe 2, etc.) to activate the timeframes you want to monitor. It's often best to start with one or two to keep the chart clean.
Select Timeframes: Choose the higher timeframes you want to analyze (e.g., 240 for 4-hour, D for Daily, W for Weekly).
Set Pivot Strength: The default of 3 for Left/Right strength is a good starting point. Increase it to find more significant market structure points or decrease it for more frequent, shorter-term pivots.
Configure SMT:
Check Enable SMT for the timeframes where you want to detect divergence.
Enter a Comparison Asset . This is crucial. Ensure the assets are correlated.
To use the early warning system, check Enable early SMT detection and select an appropriate Detection timeframe (e.g., 15 or 60 minutes for a Daily analysis).
CVD Divergence + Volume HMA RSI MACD StrategyHow the script works:
The script calculates the HMA for trend direction. The HMA (shown in orange) is used as a filter: long trades are taken only if price is above the HMA, and short trades when below.
The CVD is computed by cumulatively adding volume on up bars and subtracting volume on down bars.
Pivot routines (with the input "Pivot Length") detect swing lows/highs for both price and CVD. A bullish divergence is flagged when the price makes a lower low while the CVD makes a higher low. Similarly, a bearish divergence is flagged when the price makes a higher high while the CVD makes a lower high.
Trading is triggered when the divergence condition also agrees with the HMA filter.
Feel free to further adjust the parameters or add risk‐management/exit rules as needed for your trading style.
🌊 Reinhart-Rogoff Financial Instability Index (RR-FII)Overview
The Reinhart-Rogoff Financial Instability Index (RR-FII) is a multi-factor indicator that consolidates historical crisis patterns into a single risk score ranging from 0 to 100. Drawing from the extensive research in "This Time is Different: Eight Centuries of Financial Crises" by Carmen M. Reinhart and Kenneth S. Rogoff, the RR-FII translates nearly a millennium of crisis data into practical insights for financial markets.
What It Does
The RR-FII acts like a real-time financial weather forecast by tracking four key stress indicators that historically signal the build-up to major financial crises. Unlike traditional indicators based only on price, it takes a broader view, examining the global market's interconnected conditions to provide a holistic assessment of systemic risk.
The Four Crisis Components
- Capital Flow Stress (Default weight: 25%)
- Data analyzed: Volatility (ATR) and price movements of the selected asset.
- Detects abrupt volatility surges or sharp price falls, which often precede debt defaults due to sudden stops in capital inflow.
- Commodity Cycle (Default weight: 20%)
- Data analyzed: US crude oil prices (customizable).
- Watches for significant declines from recent highs, since commodity price troughs often signal looming crises in emerging markets.
- Currency Crisis (Default weight: 30%)
- Data analyzed: US Dollar Index (DXY, customizable).
- Flags if the currency depreciates by more than 15% in a year, aligning with historical criteria for currency crashes linked to defaults.
- Banking Sector Health (Default weight: 25%)
- Data analyzed: Performance of financial sector ETFs (e.g., XLF) relative to broad market benchmarks (SPY).
- Monitors for underperformance in the financial sector, a strong indicator of broader financial instability.
Risk Scale Interpretation
- 0-20: Safe – Low systemic risk, normal conditions.
- 20-40: Moderate – Some signs of stress, increased caution advised.
- 40-60: Elevated – Multiple risk factors, consider adjusting positions.
- 60-80: High – Significant probability of crisis, implement strong risk controls.
- 80-100: Critical – Several crisis indicators active, exercise maximum caution.
Visual Features
- The main risk line changes color with increasing risk.
- Background colors show different risk zones for quick reference.
- Option to view individual component scores.
- A real-time status table summarizes all component readings.
- Crisis event markers appear when thresholds are breached.
- Customizable alerts notify users of changing risk levels.
How to Use
- Apply as an overlay for broad risk management at the portfolio level.
- Adjust position sizes inversely to the crisis index score.
- Use high index readings as a warning to increase vigilance or reduce exposure.
- Set up alerts for changes in risk levels.
- Analyze using various timeframes; daily and weekly charts yield the best macro insights.
Customizable Settings
- Change the weighting of each crisis factor.
- Switch commodity, currency, banking sector, and benchmark symbols for customized views or regional focus.
- Adjust thresholds and visual settings to match individual risk preferences.
Academic Foundation
Rooted in rigorous analysis of 66 countries and 800 years of data, the RR-FII uses empirically validated relationships and thresholds to assess systemic risk. The indicator embodies key findings: financial crises often follow established patterns, different types of crises frequently coincide, and clear quantitative signals often precede major events.
Best Practices
- Use RR-FII as part of a comprehensive risk management strategy, not as a standalone trading signal.
- Combine with fundamental analysis for complete market insight.
- Monitor for differences between component readings and the overall index.
- Favor higher timeframes for a broader macro view.
- Adjust component importance to suit specific market interests.
Important Disclaimers
- RR-FII assesses risk using patterns from past crises but does not predict future events.
- Historical performance is not a guarantee of future results.
- Always employ proper risk management.
- Consider this tool as one element in a broader analytical toolkit.
- Even with high risk readings, markets may not react immediately.
Technical Requirements
- Compatible with Pine Script v6, suitable for all timeframes and symbols.
- Pulls data automatically for USOIL, DXY, XLF, and SPY.
- Operates without repainting, using only confirmed data.
The RR-FII condenses centuries of financial crisis knowledge into a modern risk management tool, equipping investors and traders with a deeper understanding of when systemic risks are most pronounced.
Trinity Multi Time Frame Trend DashboardNote: This is based on trading view indicator but I am unsure the original name or author to give recognition. If you know the name of the indicator or author then please let me know and I can update this script to give recognition.
Below is a list of the changes this code has gone through and all settings are editable.
Changes:
Changed: timeline from 5 to 3 mins for faster scalping, changed the RSI, CCI and MACD values for faster signals as well as the below to update the code to latest pine script and for optimizations.
Structure and Optimization: The original script used individual variables for each timeframe (e.g., emaFast_3min, emaFast_15min), leading to repetitive code. The latest version uses arrays (e.g., emaFast as array.new_float(7, na)) to store values for all timeframes, making the code more compact and maintainable. However, due to Pine Script limitations with loops and request.security, the calculations are unrolled (explicitly computed for each timeframe i=0 to 6) instead of using a loop for security calls.
Timeframe Handling: Removed the timeframes array in the final version (as loops couldn't be used with variable timeframes in request.security due to requiring 'simple string' arguments). Instead, hardcoded the timeframe strings ("3", "15", etc.) directly in each block. Kept timeframe_labels array for display purposes.
Volume Calculation: Precomputed volume3 for the 3M timeframe outside the blocks. For 15M and 30M, used ta.sma(volume3, 3) and ta.sma(volume3, 6) respectively, as in the original, but integrated into unrolled blocks. Renamed volume arrays to tfVolume and tfVma to avoid conflicts with built-in volume.
MACD Calculation: In the original, used to ignore the histogram. The latest version does the same but assigns to temporary variables like macd0, signal0 for each timeframe to avoid tuple assignment issues.
Trend Determination: Used arrays for all boolean conditions (e.g., isBullish as array.new_bool(7, false)). Set values in a loop, which works since no security calls are involved here.
Added Signal Row: Introduced a new row in the table labeled "Signal". For each timeframe, it shows:
"Buy" (green) if EMA, MACD, RSI, and CCI are all bullish.
"Sell" (red) if all are bearish.
"⚠" (yellow) if not fully aligned
Table Dimensions: Updated the table to 9, 8 (columns, rows) to accommodate the new "Signal" row.
Color for Signal: In the table cell for signal, added coloring: green for "Buy", red for "Sell", yellow for "⚠".
Array Declarations: Used array.new_float, array.new_bool, etc., without qualifiers to fix template errors. Initialized with na for floats/colors, false for bools, "" for strings.
Error Fixes: Resolved various syntax/type issues, such as avoiding series in array templates, ensuring 'simple string' for timeframes in request.security, and proper tuple unpacking for MACD.
Overall Code Length: The latest version is longer due to unrolled calculations but more robust and error-free.
ATR Circle PlotTitle: ATR Circle Plot
Short Title: ATR Circle Plot
Description:
ATR Circle Plot is a dynamic overlay indicator that visualizes volatility-based levels around the open price of each bar, using the Average True Range (ATR). It plots two customizable levels—Upper and Lower ATR—calculated by multiplying the ATR by a user-defined factor (default: 1.0) and adding/subtracting it from the open price. These levels are displayed as colored circles on the chart, ideal for identifying potential breakout or stop-loss zones. A movable table summarizes the ATR value, Upper Level, and Lower Level with tick precision, and a new toggleable label feature displays these values directly on the chart for quick reference.
Perfect for traders in volatile markets like forex, futures, or stocks, this indicator helps set risk parameters or spot key price levels. Users can adjust the ATR timeframe, length, multiplier, table position, and circle colors to suit their strategy. The optional chart labels enhance usability by overlaying ATR metrics at the latest price levels, reducing the need to check the table during fast-moving markets.
Key Features:
Plots Upper and Lower ATR levels as colored circles around the open price.
Toggleable table (top/bottom, left/right) showing ATR and level values in ticks.
Optional chart labels for ATR, Upper, and Lower levels, toggleable via input.
Customizable ATR length, multiplier, timeframe, and colors for flexibility.
Lightweight and compatible with any chart timeframe.
How to Use:
Add the indicator to your chart and adjust the ATR length, multiplier, and timeframe as needed. Enable/disable the table or labels based on your preference. Use the Upper and Lower ATR levels as dynamic support/resistance or stop-loss guides. For example, place stops beyond the Upper/Lower levels or target breakouts when price crosses them. Combine with trend or momentum indicators for a robust setup.
Note: Leave the ATR Timeframe input empty to use the chart’s timeframe, or specify a higher timeframe (e.g., “D” for daily) for broader volatility context. Ensure your chart’s tick size aligns with the asset for accurate table values.
Tags: ATR, volatility, support resistance, stop loss, table, labels, breakout
Category: Volatility
Bollinger Levels Table - Horizontal Support Zones✅ Summary of Code Updates
1. Extended Horizontal Support Lines (Persistent):
Instead of redrawing new lines on every bar, we now:
Created four line variables using var to hold the horizontal support levels (BB20 Mid, BB20 Lower, BB50 Mid, BB50 Lower).
Used line.new() only once for each level to initialize the lines.
Enabled extend=extend.both to make the lines stretch across the full chart (both left and right).
2. Dynamic Value Updates (Live Adjustment):
On every bar update, line.set_y1() and line.set_y2() are used to adjust the Y-values of each line based on the current Bollinger Band calculations, keeping the lines accurately aligned with the indicator values.
3. Cleaner and More Efficient Rendering:
Reduced overhead by avoiding multiple line.new() calls which would clutter the chart.
Ensured that horizontal levels persist and dynamically reflect any changes in timeframe or price action.
🧪 Yuri Garcia Smart Money Strategy FULL (Slope Divergence))📣 Yuri Garcia – Smart Money Strategy FULL
This is my private Smart Money Concept strategy, designed for my family and community to learn, trade, and grow sustainably.
🔑 How it works:
✅ Volume Cluster Zones: Automatically detects areas where strong buyers or sellers concentrate, acting as dynamic S/R levels.
✅ HTF Institutional Zones (4H): Higher timeframe trend filter ensures you’re always trading in the direction of major flows.
✅ Wick Pullback Filter: Confirms price rejects the zone, catching smart money traps and reversals.
✅ Cumulative Delta (CVD): Confirms whether buyers or sellers are truly in control.
✅ Slope-Based Divergence: Optional hidden divergence between price & CVD to spot reversals others miss.
✅ ATR Dynamic SL/TP: Adapts stop loss and take profit to live volatility with adjustable risk/reward.
🧩 Visual Markers Explained:
🟦 Blue X: Price inside HTF zone
🟨 Yellow X: Price inside Volume Cluster zone
🟧 Orange Circle: Wick pullback detected
🟥 Red Square: CVD confirms order flow strength
🔼 Aqua Triangle Up: Bullish slope divergence
🔽 Purple Triangle Down: Bearish slope divergence
🟢 Green Triangle Up: Final Long Entry confirmed
🔴 Red Triangle Down: Final Short Entry confirmed
⚡ Who is this for?
This strategy is best suited for traders who understand smart money concepts, order flow, and want an adaptive framework to trade major assets like BTC, Gold, SP500, NASDAQ, or FX pairs.
🔒 Important
Use responsibly, backtest extensively, and combine with solid risk management. This is for educational purposes only.
✨ Credits
Built with ❤️ by Yuri Garcia – dedicated to my family & community.
✅ How to use it
1️⃣ Add to chart
2️⃣ Adjust inputs for your asset & timeframe
3️⃣ Enable/disable slope divergence filter to match your style
4️⃣ Set your alerts with built-in conditions
Extreme Zone Volume ProfileExtreme Zone Volume Profile (EZVP) is a high-resolution, percentile-based volume profile tool designed for intuitive market structure analysis. Unlike standard profiles, EZVP emphasizes extreme zones — highlighting potential value rejection or accumulation areas using user-defined percentile thresholds.
Key Features:
Custom Lookback: Profiles volume over a defined number of bars (no rolling memory creep).
Zoned Percentiles: Segment volume by zones:
Zone B = extreme tails (e.g. 2.5% for one wing of ~2 Standard Deviations)
Zone A = outer wings (e.g. 14% for one wing of ~1 Standard Deviations)
Center = remaining bulk of traded volume
Rightward-Growing Bars: Clean, forward-facing display — avoids clutter in historical areas.
Colored Volume Bars: Each zone gets a distinct tone, helping spot high-interest levels fast.
Optional Lines: Toggle POC, Median, Mean, and zone boundary lines for cleaner setups.
This is built for clarity and control — a great fit for traders who want a visually expressive profile without overcomplication. Tweak the zoning percentages to match your strategy or instrument volatility.