ROC with closed based coloring & info table [DB]Rate of Change (ROC) Basics
The Rate of Change (ROC) is a momentum oscillator measuring the percentage price change between the current close and the close from N periods ago.
Calculated as: ROC = * 100
Traders use ROC to:
Identify overbought/oversold conditions
Spot momentum shifts
Confirm trend strength
My improvements:
Visual Clarity
Color-Coded Direction: ROC line changes color (green/red/yellow) based on intra-candle momentum shifts.
Direction Table: Instant view of the last change in ROC with the candle close (▲ UP / ▼ DOWN / ▶ FLAT).
Cells for current value and previous change between timeframe bar period.
What you can benefit with this over the regular ROC:
Faster Analysis: The visual cues make direction and strength instantly obvious and it allows for faster decision making while preserving more mental capital.
Volatilité
Mag7 Combined Index vs MSTRThis indicator is ideal for analyzing the overall market impact of MSTR (Strategy) compared to the Mag7 stocks. This script is a custom TradingView indicator that calculates and visualizes the collective performance of the Magnificent 7 (Mag7) stocks—Apple, Microsoft, Alphabet, Amazon, NVIDIA, Tesla, and Meta (green line) compared to MSTR (orange line). It normalizes the daily closing prices of each stock to their initial value on the chart, scales them into percentages, and then computes their simple average to form a combined index. The result is plotted as a single blue line, offering a clear view of the aggregated performance of these influential stocks over time compared to Bitcoin.
IV Percentile with SMAKey features of this script:
Calculates implied volatility using historical volatility method
Allows configurable SMA period via input
Plots implied volatility and its moving average
Blue line is raw implied volatility
Red line is SMA of implied volatility
Opening Score with DivergenceOverview
The Opening Score Indicator is a versatile tool designed to help traders assess market sentiment, trend direction, and potential reversals. By combining Opening Range Breakout (ORB), VWAP, Trend, Volatility, and Divergence Detection, this indicator provides a composite score that adapts to different market conditions.
This version includes divergence detection between the Opening Score and price, which highlights potential trend reversals or continuations before they happen. When a regular divergence occurs, the histogram bar turns orange, signaling an increased probability of a trend change.
Best for Both Intraday & Longer-Term Charts
📊 Optimized for intraday trading → Works well on 1m to 30m timeframes for short-term strategies.
📈 Also effective on longer-term charts → Can be used on 1-hour, 4-hour, daily, or weekly charts to identify macro trends and momentum shifts.
🕰️ Adapts to different market conditions → Whether you’re a day trader, swing trader, or position trader, the Opening Score helps you track trend health and reversals.
How It Works
📊 Composite Opening Score Calculation
• ORB Signal → Detects bullish/bearish breakouts based on the opening range.
• VWAP Signal → Measures price positioning relative to VWAP for trend confirmation.
• Trend Signal → Uses a moving average to determine market direction.
• Volatility Signal → Tracks ATR changes to assess market strength.
• Divergence Detection → Identifies regular and hidden divergences for potential reversals or trend continuation.
🔹 Reversal Alerts with Color-Coded Histogram
• Green Bars → Normal bullish Opening Score.
• Red Bars → Normal bearish Opening Score.
• Orange Bars → Warning! Regular Divergence detected → Possible trend reversal.
🔹 Hidden & Regular Divergence Detection
• Regular Divergence (Reversal Signals)
• 📉 Bearish Regular Divergence → Price makes a Higher High, but Opening Score makes a Lower High → 🔻 Possible Downtrend Reversal.
• 📈 Bullish Regular Divergence → Price makes a Lower Low, but Opening Score makes a Higher Low → 🔼 Possible Uptrend Reversal.
• Hidden Divergence (Trend Continuation Signals)
• 📉 Bearish Hidden Divergence → Price makes a Lower High, but Opening Score makes a Higher High → 🔻 Trend Likely to Continue Down.
• 📈 Bullish Hidden Divergence → Price makes a Higher Low, but Opening Score makes a Lower Low → 🔼 Trend Likely to Continue Up.
How to Use It
✅ Watch for Reversal Alerts (Orange Bars) → These highlight potential market turning points.
✅ Use the Zero Line as a Trend Filter → A score above 0 suggests bullish conditions, while below 0 signals bearish conditions.
✅ Combine with Market Structure & Volume Profile → Works well when paired with support/resistance levels, liquidity zones, and order flow data.
✅ Adjust settings based on timeframe → Increase moving average length & lookback periods for longer-term analysis.
Why Use This Indicator?
🚀 Works for both short-term and long-term traders → Adapts to intraday and higher timeframes.
📊 Multi-Factor Analysis → Combines multiple key market indicators for better accuracy.
🎯 Customizable Weighting → Adjust the influence of each signal to suit your trading style.
✅ No Clutter – Only the Opening Score is plotted → Keeps your chart clean & efficient.
🔔 Recommended for Intraday Trading (1m – 30m) AND Longer-Term Analysis (1H – Weekly) → Use this indicator to enhance your trend detection & reversal strategy! 🚀
Normalized ROC²Normalized Rate of Change of Rate of Change (ROC²) Histogram
Overview
The Normalized ROC² Histogram is a momentum-based indicator designed to detect potential trend reversals by measuring the rate of change of the rate of change of price (the second derivative of price movement). This provides insight into when momentum is slowing down, signaling that a price reversal may be approaching.
The indicator also dynamically changes color to highlight shifts in momentum strength, allowing traders to visualize when price acceleration is increasing or decreasing.
How It Works
🔹 Zero Line Crossovers → Potential Direction Change
• When the histogram approaches zero and crosses over, it suggests that price momentum is shifting and a reversal may be imminent.
• Positive to Negative Crossover: Bearish momentum shift.
• Negative to Positive Crossover: Bullish momentum shift.
🔹 Momentum Strength Visualization → Color Shift
• Dark Blue (⬆️ Increasing Positive Momentum) → Price is accelerating upward.
• Light Blue (🔽 Decreasing Positive Momentum) → Uptrend is weakening.
• Dark Red (⬇️ Increasing Negative Momentum) → Price is accelerating downward.
• Light Red (🔼 Decreasing Negative Momentum) → Downtrend is weakening.
🔹 Normalization for Cleaner Visualization
• Prevents extreme volatility spikes from distorting the histogram.
• Normalizes values on a 0 to 100 scale, ensuring consistent bar height.
How to Use It
✅ Watch for Crossovers Near Zero → These can indicate a trend reversal is forming.
✅ Observe Color Changes → A shift from dark to light signals a deceleration, which often precedes price turning points.
✅ Combine with Other Indicators → Works well with Volume Profile, Moving Averages, and Market Structure analysis.
Why This Indicator is Unique
🚀 Second-derivative momentum detection → Provides early insight into potential price shifts.
📊 Normalized bars prevent distortion → No more extreme spikes ruining the scale.
🎯 Color-coded visual cues → Instantly see when momentum is gaining or fading.
📌 Add the Normalized ROC² Histogram to your charts today to detect potential reversals and momentum shifts in real-time! 🚀
Volume Data Customized TimeframeThe "Volume Data Customized Timeframe" (VolData CTF) indicator provides traders with an enhanced volume analysis tool that aggregates buy and sell volume over a user-defined timeframe. It enables a comparative assessment of bullish and bearish volume trends, offering deeper insights into market sentiment. The indicator features a customizable display table with user-selectable themes and positioning, providing essential volume metrics for improved trading decisions.
1. Introduction:
The "Volume Data Customized Timeframe" indicator is designed to help traders analyze volume trends across different timeframes. It allows users to customize the period for volume calculations, view the ratio of selling to buying volume, and present the data in a user-friendly table format.
2. Features:
Selectable timeframe for volume analysis (default: chart timeframe)
Calculation of bullish (buy) and bearish (sell) volume
Customizable table size, theme, and positioning
Displays key volume metrics:
Total Buy Volume
Total Sell Volume
Sell/Buy Volume Ratio
Analysis period in minutes, days, weeks, or months
3. Indicator Inputs:
Average Volume Lookback (n): Number of bars used to calculate volume statistics.
Select Timeframe: Custom timeframe for volume calculations (leave empty to use the chart's timeframe).
Table Size: Choose from Small, Medium, or Big to adjust text size.
Table Theme: Choose between Light and Dark themes.
Table Position: Place the table in any corner of the chart (top-left, top-right, bottom-left, bottom-right).
4. How It Works:
The indicator retrieves volume data for the selected timeframe.
It aggregates bullish and bearish volume based on the lookback period.
The sell-to-buy volume ratio is calculated and color-coded (green for bullish dominance, red for bearish dominance).
The volume statistics are displayed in a customizable table for easy reference.
5. Interpretation:
Δ BUY VOL: Represents the total volume of bullish (up-closing) bars within the lookback period.
Δ SELL VOL: Represents the total volume of bearish (down-closing) bars within the lookback period.
Δ SELL/Δ BUY: The ratio of bearish to bullish volume; values above 1 indicate more selling pressure, while values below 1 indicate buying dominance.
Period (M/D/W/M): Displays the selected timeframe for volume aggregation.
Demo GPT - Trend Trader StrategyIt is a great strategy in 30 mins time frame, you can use it to algo trading
VWAP Alineado con FondoComparto un indicador creado con el fin de no estar pendiente con el vwap, este indica cuando este indicador esta alineado con las temporalidades se puede personalizar
ATR as % of Price### **ATR as % of Price - TradingView Indicator**
📈 **Description:**
This indicator converts the **Average True Range (ATR)** into a **percentage of the closing price**, providing a clearer perspective on volatility relative to the stock’s price. Unlike the standard ATR, which is displayed in absolute price units (e.g., dollars), this version expresses ATR as a percentage, making it useful for comparing volatility across different stocks, ETFs, and crypto assets.
🔥 **Why Use This?**
- Easily compare volatility between stocks with different price levels.
- Identify high-volatility periods relative to a stock’s price.
- Adjust stop-loss and position sizing more effectively.
⚙️ **How It Works:**
- Calculates the **ATR** over a chosen period (default: 14).
- Divides ATR by the **closing price** and multiplies by **100** to get a percentage.
- Displays the result as a line chart.
🛠 **Customization:**
- Modify the **ATR length** in settings to match your trading style.
- Use in conjunction with support/resistance levels and moving averages for better trade decisions.
✅ **Ideal For:**
- Swing traders, day traders, and investors who want **relative volatility** insights.
- Stocks, forex, crypto, and commodities analysis.
🚀 **Try it now and enhance your volatility analysis!**
3 Trading SessionsValutazione della volatilità in pips delle 3 Sessioni di mercato principali (Asia / Europa /America) su base oraria.
Estratégia IFR 2 Períodos Melhoradaifr2 é uma estratégia de volatilidade, por isso deve ser utilizado em papéis que possuam essa característica.
Daily Lines Drawer with Previous Day's RangeThis Pine Script indicator calculates and plots the highest high and lowest low within the first nine days of each month. It dynamically updates these values only for the 1st to 9th days, ensuring accurate tracking within this period. The highest high is plotted in blue, and the lowest low is plotted in red for easy visualization on the chart.
ATR Stop-Loss by Marius AVisual and Logical Behavior of the Code
1️⃣ ATR is calculated based on the chosen period (default 14) to determine volatility.
2️⃣ When the price crosses above the SMA(14), a Long stop-loss is set.
The stop-loss is placed below the current price at a distance of 1.5 × ATR (default).
The green line appears below the candle.
3️⃣ When the price crosses below the SMA(14), a Short stop-loss is set.
The stop-loss is placed above the current price at a distance of 1.5 × ATR.
The red line appears above the candle.
🔹 Examples of Manifestation on the Chart
📌 Scenario 1: Bullish Trend → Long Stop-Loss is Activated
✅ If the price rises above the SMA(14), a green stop-loss is set below the price.
✅ The stop-loss remains fixed until the price makes a new crossover.
🔴 If the price drops and hits the green line, the Long position is closed.
📌 Scenario 2: Bearish Trend → Short Stop-Loss is Activated
✅ If the price falls below the SMA(14), a red stop-loss is set above the price.
✅ The stop-loss remains in place until a new cross below the SMA(14).
🟢 If the price rises and hits the red line, the Short position is closed.
🔹 Strengths and Limitations of the Code
✅ Advantages:
Automatically adapts to market volatility.
Works on any timeframe and instrument.
Provides a dynamic stop-loss based on real conditions.
❌ Limitations:
Does not adjust the stop-loss after each candle (it is not a trailing stop).
The stop-loss remains fixed until a new crossover/crossunder of the price over the SMA(14).
Does not provide entry signals, only position protection.
Median Deviation Bands | QuantumResearchIntroducing QuantumResearch’s Median Deviation Bands Indicator
The Median Deviation Bands indicator is an advanced volatility-based tool designed to help traders identify price trends, market reversals, and potential trading opportunities.
By using a percentile-based median baseline combined with standard deviation bands, this indicator provides a dynamic framework for analyzing price movements and assessing market volatility.
How It Works
Baseline Calculation:
The median price over a user-defined period (default: 50) is calculated using the 50th percentile of price data.
This serves as the central reference point for trend analysis.
Trend Identification:
Bullish Trend: Occurs when the price crosses above the baseline.
Bearish Trend: Occurs when the price crosses below the baseline.
Deviation Bands:
The indicator plots three sets of upper and lower bands, representing 1x, 2x, and 3x standard deviations from the median.
These bands act as dynamic support and resistance zones, helping traders identify overbought and oversold conditions.
Visual Representation
The Median Deviation Bands indicator offers a clear, customizable visual layout:
Color-Coded Baseline:
Green (Bullish): Price is above the median.
Red (Bearish): Price is below the median.
Deviation Bands:
First Band (Light Fill): Represents 1 standard deviation from the baseline.
Second Band (Medium Fill): Represents 2 standard deviations, highlighting stronger trends.
Third Band (Dark Fill): Represents 3 standard deviations, showing extreme price conditions.
Trend Markers:
Green Up Arrows: Indicate the start of a bullish trend when price crosses above the baseline.
Red Down Arrows: Indicate the start of a bearish trend when price crosses below the baseline.
Customization & Parameters
The Median Deviation Bands indicator includes multiple user-configurable settings to adapt to different trading strategies:
Baseline Length: Default set to 50, determines the lookback period for median calculation.
Source Price: Selectable input price for calculations (default: close).
Band Visibility: Traders can toggle individual deviation bands on or off to match their preferences.
Trend Markers: Option to enable or disable up/down trend arrows.
Color Modes: Choose from eight color schemes to customize the indicator’s appearance.
Trading Applications
This indicator is highly versatile and can be applied to multiple trading strategies, including:
Volatility-Based Trading: Price movement within and outside the bands helps traders gauge volatility and market conditions.
Trend Following: The baseline and deviation bands help confirm ongoing trends.
Mean Reversion Strategies: Traders can look for price reactions at extreme bands (±3 standard deviations).
Final Note
QuantumResearch’s Median Deviation Bands indicator provides a unique approach to market analysis by integrating percentile-based median price levels with standard deviation-based volatility bands.
This combination helps traders understand price behavior in relation to historical volatility, making it a valuable tool for both trend-following and mean-reversion strategies.
As always, backtesting and customization are recommended to optimize performance across different market conditions.
AI Volume Breakout for scalpingPurpose of the Indicator
This script is designed for trading, specifically for scalping, which involves making numerous trades within a very short time frame to take advantage of small price movements. The indicator looks for volume breakouts, which are moments when trading volume significantly increases, potentially signaling the start of a new price movement.
Key Components:
Parameters:
Volume Threshold (volumeThreshold): Determines how much volume must increase from one bar to the next for it to be considered significant. Set at 4.0, meaning volume must quadruplicate for a breakout signal.
Price Change Threshold (priceChangeThreshold): Defines the minimum price change required for a breakout signal. Here, it's 1.5% of the bar's opening price.
SMA Length (smaLength): The period for the Simple Moving Average, which helps confirm the trend direction. Here, it's set to 20.
Cooldown Period (cooldownPeriod): Prevents signals from being too close together, set to 10 bars.
ATR Period (atrPeriod): The period for calculating Average True Range (ATR), used to measure market volatility.
Volatility Threshold (volatilityThreshold): If ATR divided by the close price exceeds this, the market is considered too volatile for trading according to this strategy.
Calculations:
SMA (Simple Moving Average): Used for trend confirmation. A bullish signal is more likely if the price is above this average.
ATR (Average True Range): Measures market volatility. Lower volatility (below the threshold) is preferred for this strategy.
Signal Generation:
The indicator checks if:
Volume has increased significantly (volumeDelta > 0 and volume / volume >= volumeThreshold).
There's enough price change (math.abs(priceDelta / open) >= priceChangeThreshold).
The market isn't too volatile (lowVolatility).
The trend supports the direction of the price change (trendUp for bullish, trendDown for bearish).
If all these conditions are met, it predicts:
1 (Bullish) if conditions suggest buying.
0 (Bearish) if conditions suggest selling.
Cooldown Mechanism:
After a signal, the script waits for a number of bars (cooldownPeriod) before considering another signal to avoid over-trading.
Visual Feedback:
Labels are placed on the chart:
Green label for bullish breakouts below the low price.
Red label for bearish breakouts above the high price.
How to Use:
Entry Points: Look for the labels on your chart to decide when to enter trades.
Risk Management: Since this is for scalping, ensure each trade has tight stop-losses to manage risk due to the quick, small movements.
Market Conditions: This strategy might work best in markets with consistent volume and price changes but not extreme volatility.
Caveats:
This isn't real AI; it's a heuristic based on volume and price. Actual AI would involve machine learning algorithms trained on historical data.
Always backtest any strategy, and consider how it behaves in different market conditions, not just the ones it was designed for.
Bollinger Bands Long Strategy
This strategy is designed for identifying and executing long trades based on Bollinger Bands and RSI. It aims to capitalize on potential oversold conditions and subsequent price recovery.
Key Features:
- Bollinger Bands (10,2): The strategy uses Bollinger Bands with a 10-period moving average and a multiplier of 2 to define price volatility.
- RSI Filter: A trade is only triggered when the RSI (14-period) is below 30, ensuring entry during oversold conditions.
- Entry Condition: A long trade is entered immediately when the price crosses below the lower Bollinger Band and the RSI is under 30.
- Exit Condition: The position is exited when the price reaches or crosses above the Bollinger Band basis (20-period moving average).
Best Used For:
- Identifying oversold conditions with a strong potential for a rebound.
- Markets or assets with clear oscillations and volatility e.g., BTC.
**Disclaimer:** This strategy is for educational purposes and should be used with caution. Backtesting and risk management are essential before live trading.
BTC Expected Volatility [Bruz]Bitcoin Implied Volatility Indicator
This indicator derives Bitcoin’s expected future volatility from options market data, using implied volatility as a key input.
No speculative analysis is performed — this is purely a visualization of market data. It assumes that implied volatility follows a normal distribution, with no skew or kurtosis.
Traders can use this indicator to analyze the variance of future price returns and identify historical periods of unexpectedly high volatility.
Disclaimer: This indicator is for informational and educational purposes only. It does not provide financial, investment, or trading advice. Past performance is not indicative of future results. Trading involves risk, and you should conduct your own research before making any investment decisions. The creator of this indicator is not responsible for any financial losses incurred through its use.
Enjoy and trade wisely!
Time-Based Vertical Lines (GMT 8-9 AM)The Breakfast Breakout is a trading strategy that capitalizes on early morning market volatility, particularly around major financial centers' opening hours. It typically involves identifying a price range formed before a key session opens—such as the London session at 8 AM—and placing breakout trades when price moves beyond this range. Traders often use pending orders to capture momentum in either direction, aiming to profit from the increased liquidity and sharp price movements that occur during this time.
GOLD Volume-Based Entry StrategyShort Description:
This script identifies potential long entries by detecting two consecutive bars with above-average volume and bullish price action. When these conditions are met, a trade is entered, and an optional profit target is set based on user input. This strategy can help highlight momentum-driven breakouts or trend continuations triggered by a surge in buying volume.
How It Works
Volume Moving Average
A simple moving average of volume (vol_ma) is calculated over a user-defined period (default: 20 bars). This helps us distinguish when volume is above or below recent averages.
Consecutive Green Volume Bars
First bar: Must be bullish (close > open) and have volume above the volume MA.
Second bar: Must also be bullish, with volume above the volume MA and higher than the first bar’s volume.
When these two bars appear in sequence, we interpret it as strong buying pressure that could drive price higher.
Entry & Profit Target
Upon detecting these two consecutive bullish bars, the script places a long entry.
A profit target is set at current price plus a user-defined fixed amount (default: 5 USD).
You can adjust this target, or you can add a stop-loss in the script to manage risk further.
Visual Cues
Buy Signal Marker appears on the chart when the second bar confirms the signal.
Green Volume Columns highlight the bars that fulfill the criteria, providing a quick visual confirmation of high-volume bullish bars.
Works fine on 1M-2M-5M-15M-30M. Do not use it on higher TF. Due the lack of historical data on lower TF, the backtest result is limited.