Volume with Sessions, SMA, and ATR Pine Script creates a custom volume indicator with several features, including:
SMA of Volume: It calculates the simple moving average (SMA) of the volume, which helps identify trends and determine if the current volume is above or below the average.
ATR (Average True Range): It calculates the ATR, which measures market volatility over a defined period.
Bullish/Bearish Volume Coloring: The script colors the volume bars depending on whether the price is moving up (bullish) or down (bearish), and whether the volume is above or below the SMA of volume.
Session Highlighting: It defines two major trading sessions:
NYSE (New York Stock Exchange) session from 9:30 AM to 4:00 PM Eastern Time.
LSE (London Stock Exchange) session from 8:00 AM to 4:30 PM GMT. These sessions are highlighted with background colors for easy identification.
Plotting: The volume is plotted as a histogram with varying colors depending on price movement and volume relative to its SMA. The ATR is also plotted as a purple line, and the SMA of volume is displayed as an orange line.
Background Colors: Background colors are applied during the NYSE and LSE sessions to visually differentiate between these trading periods.
Here's a breakdown of each section:
Key Inputs:
smaLength and atrLength: User-defined values for the lengths of the SMA and ATR calculations.
Main Calculations:
smaVolume: The SMA of the volume over the user-defined length (smaLength).
atrValue: The Average True Range over the user-defined length (atrLength).
Color Logic for Volume Bars:
If the current close is higher than the previous close, the volume is considered bullish, and the bar is colored green. If the volume is above the SMA, it’s a darker green; otherwise, it’s a lighter shade.
If the current close is lower than the previous close, the volume is considered bearish, and the bar is colored red. If the volume is above the SMA, it’s a darker red; otherwise, it’s a lighter red.
Plotting:
The script plots the volume as a histogram with dynamic coloring.
The SMA of the volume is plotted as a line.
ATR is plotted as a purple line for reference.
Background Color Highlighting:
The background is colored green during the NYSE session and blue during the LSE session.
Индикаторы и стратегии
On Balance VolumeThe traditional OBV (On-Balance Volume) indicator line chart has been replaced with a candlestick-based OBV chart, offering a more granular and visually comprehensive approach to volume-price analysis. This transformation allows traders to analyze OBV fluctuations in the form of candlestick patterns, making it easier to identify critical price action signals such as support and resistance levels, breakouts, and breakdowns.
By integrating OBV candlesticks with the price chart, traders can better assess volume accumulation and distribution phases, detect divergences, and confirm trend strength. This enhanced visualization helps in identifying momentum shifts, liquidity imbalances, and institutional activity with greater accuracy. The OBV candlestick chart provides a deeper layer of market structure analysis, allowing price action traders to refine their strategies and improve trade execution based on real-time volume dynamics."
ATR Impact CandlesATR Impact Candles: Simplify Your Trading with Pure Price Action
You don’t need dozens of cluttered indicators to catch what really matters. With ATR Impact Candles, you get a powerful, single-tool solution that cuts through the noise by focusing on what truly drives the market: price action and volatility. This indicator highlights only those candlesticks that pack a punch—showing you when the market’s range is exceptionally strong relative to its recent behavior. Whether you’re a scalper or a swing trader, ATR Impact Candles empowers you to time your entries and exits with confidence, letting you trade based on real market momentum.
⸻
Indicator Overview
The indicator is designed for TradingView and is implemented in Pine Script (version 5). Its primary purpose is to highlight specific candles that meet a defined volatility condition based on the Average True Range (ATR). Instead of modifying every candle’s appearance, the indicator only changes the color of those “signal” candles that exceed a user-defined multiple of the ATR. The rest of the candles remain in their traditional black and white appearance—preserving the classic candlestick chart look.
⸻
Key Features
1. ATR-Based Signal Identification:
• ATR Calculation:
The indicator calculates the ATR using a configurable lookback period (default is 14 periods). The ATR is a common volatility measure that reflects the average range of price movement.
• Threshold Condition:
A candle is flagged as a signal if its range (high minus low) meets or exceeds a specified multiple (the “ATR Factor”) of the ATR. By default, this factor is set to 2, meaning any candle whose range is at least twice the ATR is considered significant.
2. Dynamic Candle Coloring:
• Signal Candles:
• When a candle meets the ATR threshold condition:
• Up Candles: are colored green.
• Down Candles: are colored red.
• Non-Signal Candles:
• Candles that do not meet the threshold condition retain their classic appearance:
• Up candles are white.
• Down candles are black.
3. User Configurability:
• ATR Period:
Traders can adjust the ATR period to tailor the volatility measure to different markets or timeframes.
• ATR Factor:
The multiple of the ATR that defines a signal candle is also configurable, giving flexibility to experiment with different thresholds for what constitutes “significant” price movement.
• Overlay Display:
The indicator runs in overlay mode on the chart, meaning it directly affects the appearance of the candlestick bars without interfering with other chart elements.
4. Additional Visual Aid:
• Threshold Line Plot:
The script optionally plots a line representing the ATR multiplied by the chosen factor. This line serves as a visual benchmark on the chart, allowing traders to see at what level the ATR threshold lies relative to the price action.
⸻
How It Works
1. ATR Calculation:
The indicator first calculates the Average True Range (ATR) for the defined period. This value is updated for each new candle.
2. Range Comparison:
For each candle, the indicator calculates the range (high - low) and compares it to the threshold, which is the ATR multiplied by the user-defined factor.
3. Conditional Coloring:
• If the Candle’s Range ≥ (ATR * Factor):
• The candle is marked as a “signal candle.”
• Its color is set to green if it is an up candle (close is greater than or equal to open) or red if it is a down candle.
• Otherwise:
• The candle retains its classic look, with up candles in white and down candles in black.
4. Chart Display:
By applying these rules to every candle, the indicator visually emphasizes those moments when the market shows unusually large price movements relative to its recent average volatility. This helps traders quickly spot potential breakouts or reversals.
⸻
Practical Applications
• Volatility Breakouts:
Identify candles that may signal the start of a breakout or strong reversal.
• Risk Management:
Adjust stop-loss levels or position sizes when unusually volatile candles are detected.
• Signal Confirmation:
Combine with other technical indicators or chart patterns to reinforce entry or exit decisions.
⸻
ATR Impact Candles is your essential, no-nonsense tool for filtering out market noise and focusing solely on significant price action. Simplify your trading decisions and harness the power of volatility with one clear, effective indicator.
Pipsttocra Technical Patterns: EV HV FVG & OBPipstocrat Technical Patterns , identifies and visualizes key technical analysis patterns and structures on a TradingView chart. Here's a simple breakdown of what it does:
Fair Value Gaps (FVG):
Detects and highlights bullish and bearish Fair Value Gaps as colored boxes.
Adds centerline markers to indicate potential price levels.
Order Blocks (OB):
Identifies bullish and bearish order blocks (areas of significant buying or selling).
Displays them as colored rectangles extending to the right of the chart.
Candlestick Patterns:
Detects Engulfing Patterns (bullish and bearish) with volume confirmation.
Highlights Hammer and Inverted Hammer patterns with customizable shapes and colors.
Customization Options:
Allows users to adjust colors, sizes, and styles for all patterns and structures.
Provides options to show/hide specific patterns like FVGs, engulfing candles, hammers, etc.
Alerts:
Generates alerts for detected patterns, such as FVGs, order blocks, engulfing candles, and confluence zones (combination of FVGs and order blocks).
Management Features:
Automatically removes older or "filled" patterns (optional).
Tracks and updates patterns dynamically as new bars form.
Purpose:
This tool helps traders spot high-probability trading opportunities by identifying key market structures (like FVGs and order blocks) and candlestick patterns. It combines multiple technical analysis concepts into one comprehensive indicator for better decision-making.
ROC + SMI Auto Adjust
This indicator combines the Rate of Change (ROC) and the Stochastic Momentum Index (SMI) with automatically adjusted parameters for different time frames (short, medium, long). It normalizes the ROC to match the SMI levels, displays the ROC as a histogram and the SMI as lines, highlights overbought/oversold zones and includes a settings table. Ideal for analyzing momentum on different time frames.
Key Features:
Automatic Parameter Adjustment:
The script detects the current chart time frame (e.g. 1-minute, 1-hour, daily) and adjusts the parameters for the ROC and SMI accordingly.
Parameters such as ROC length, SMI length and smoothing periods are optimized for short, medium and long term time frames.
Rate of Change (ROC):
ROC measures the percentage change in price over a specified period.
The script normalizes the ROC values to match the SMI range, making it easier to compare the two indicators on the same scale.
The ROC is displayed as a histogram, where positive values are colored green and negative values are colored red.
Stochastic Momentum Index (SMI):
SMI is a momentum oscillator that identifies overbought and oversold conditions.
The script calculates the SMI and its signal line, plotting them on the chart.
Overbought and oversold levels are displayed as dotted lines for convenience.
SMI and SMI Signal Crossover:
When the main SMI crosses the signal line from below upwards, it may be a buy signal (bullish signal).
When the SMI crosses the signal line from above downwards, it may be a sell signal (bearish signal).
Configurable Inputs:
Users can use the automatically adjusted settings or manually override the parameters (e.g. ROC length, SMI length, smoothing periods).
Overbought and oversold levels for SMI are also configurable.
Parameter Table:
A table is displayed on the chart showing the current parameters (e.g. timeframe, ROC length, SMI length) for transparency and debugging.
The position of the table is configurable (e.g. top left, bottom right).
How it works:
The script first detects the chart timeframe and classifies it as short-term (e.g. 1M, 5M), medium-term (e.g. 1H, 4H) or long-term (e.g. D1, W1).
Based on the timeframe, it sets default values for the ROC and SMI parameters.
ROC and SMI are calculated and normalized so that they can be compared on the same scale.
ROC is displayed as a histogram, while SMI and its signal line are displayed as lines.
Overbought and oversold levels are displayed as horizontal lines.
Use cases:
Trend identification: ROC helps to identify the strength of the trend, while SMI indicates overbought/oversold conditions.
Momentum analysis: The combination of ROC and SMI provides insight into both price momentum and potential reversals.
Time frame flexibility: The auto-adjustment feature makes the script suitable for scalping (short-term), swing trading (medium-term) and long-term investing.
Pipstocrat Market Participant AnalysisPipstocrat Market Participant Analysis (PMPA) , analyzes the behavior of different types of traders in the market: Hot Money (short-term traders), Smart Money (institutional or professional traders), and Retail Traders . It uses RSI-based calculations to measure their activity and displays the results as colored bars on a chart.
Customizable Colors: Users can change the colors for each type of trader and other visual elements like reference lines.
Reference Lines: Horizontal lines at levels 5 (Support), 10 (Neutral), and 15 (Resistance) help interpret the data.
Focus on RSI: The script simplifies analysis by focusing solely on RSI-based signals.
This tool helps traders quickly identify trends and sentiment in the market, making it easier to spot potential opportunities.
Stop/Take BoundsThe Stop/Take Bounds indicator is tool for setting dynamic stop-loss and take-profit levels based on percentage distance from the price. Unlike traditional ATR-based methods, this indicator allows traders to set stop levels as a fixed percentage of the price and define the take-profit multiple.
- Stop-loss distanceis determined as a percentage of the current price (e.g., 1% means the stop-loss is always 1% away from the price).
- Take-profit distance is calculated by multiplying the stop-loss distance by a user-defined multiplier (e.g., a multiplier of 2 places the take-profit level twice as far as the stop-loss).
- The indicator plots red lines for stop-loss levels and green lines for take-profit levels, making it easy to visualize risk-to-reward scenarios.
How to Use
1. Set Stop-Loss Distance (%) – Define how far the stop-loss should be from the price.
2. Set Take-Profit Multiplier – Choose how many times larger the take-profit should be compared to the stop-loss.
3. Apply to Long and Short Trades – The indicator automatically plots levels for both long and short positions.
4. Use in Manual or Algorithmic Trading – Ideal for discretionary traders as well as for integration into algorithmic strategies.
Use Cases
- Risk Management – Helps maintain disciplined risk-to-reward ratios.
- Strategy Development – Can be used in the creation of algorithmic trading systems.
- Trailing Stop Simulation – Can act as a trailing stop mechanism when used dynamically.
This indicator is a great addition to any trading strategy!
BTC Momentum Detector 1h# BTC Momentum Detector 1h
This indicator is designed to detect significant momentum movements in Bitcoin price on the 1-hour timeframe. It identifies candles with percentage changes within a specific range, which often precede larger price movements.
## How It Works
The indicator analyzes price movements to detect potential momentum shifts:
- Identifies candles with percentage changes between configurable thresholds (default: 1.7% - 2.8%)
- Requires neutral or inverse movement in the prior candle to avoid false signals
- Optional volume filter ensures signals are confirmed by above-average trading activity
- Tracks price continuation to calculate success rates and average returns
## Key Features
- **Signal Detection**: Green triangles below price bars indicate upward momentum signals; red triangles above price bars indicate downward momentum signals
- **Continuation Tracking**: Dashed horizontal lines show the entry price levels of active signals being tracked
- **Statistics Panel**: Displays real-time metrics including signal counts, success rates, and average returns
- **Current Status**: Shows the current price change percentage and active signals being monitored
## Parameters
- **Minimum Percentage Threshold**: Minimum price change to trigger a signal (default: 1.7%)
- **Maximum Percentage Threshold**: Maximum price change to filter out extreme moves (default: 2.8%)
- **Continuation Periods**: Number of periods to track after signal (default: 2)
- **Require Prior Neutral/Inverse**: Filters signals by requiring neutral or opposite prior movement
- **Neutral Threshold**: Defines what's considered a neutral movement (default: 0.1%)
- **Volume Filter**: Option to require above-average volume for confirmation
- **Volume Multiplier**: Volume must exceed average by this factor (default: 2x)
## Strategy Concept
The underlying strategy is based on the concept that when Bitcoin makes a controlled, significant move (not too small, not too large) after a period of neutral or opposite movement, it often continues in that direction for the next few periods. This pattern reflects the early stages of momentum development in the market.
Covered Call VisualYou enter Covered Call details and this draws the following lines:
Max Profit
Entry Price
Strike Price
Break even
You also enter entry and expiration dates and the lines will plot between those dates with the exception of the entry price.
Support & Resistance + EMA + Swing SL (3 Min)### **📌 Brief Description of the Script**
This **Pine Script indicator** for TradingView displays **Support & Resistance levels, EMAs (21 & 26), and Swing High/Low-based Stop-Loss (SL) points** on a **3-minute timeframe**.
---
### **🔹 Key Features & Functionality**
1️⃣ **🟥 Support & Resistance Calculation:**
- Finds the **highest & lowest price over the last 50 candles**
- Plots **Resistance (Red) & Support (Green) levels**
2️⃣ **📈 EMA (Exponential Moving Averages):**
- **21 EMA (Blue)** and **26 EMA (Orange)** for trend direction
- Helps in identifying bullish or bearish momentum
3️⃣ **📊 Swing High & Swing Low Detection:**
- Identifies **Swing Highs (Higher than last 5 candles) as SL for Short trades**
- Identifies **Swing Lows (Lower than last 5 candles) as SL for Long trades**
- Plots these levels as **Purple (Swing High SL) & Yellow (Swing Low SL) dotted lines**
4️⃣ **📌 Labels on Swing Points:**
- **"HH SL"** is placed on Swing Highs
- **"LL SL"** is placed on Swing Lows
5️⃣ **⚡ Breakout Detection:**
- Detects if **price crosses above Resistance** (Bullish Breakout)
- Detects if **price crosses below Support** (Bearish Breakout)
- Background color changes to **Green (Bullish)** or **Red (Bearish)**
6️⃣ **🚨 Alerts for Breakouts:**
- Sends alerts when **price breaks above Resistance or below Support**
---
### **🎯 How to Use This Indicator?**
- **Trade with Trend:** Follow **EMA crossovers** and Support/Resistance levels
- **Set Stop-Loss:** Use **Swing High as SL for Shorts** & **Swing Low as SL for Longs**
- **Look for Breakouts:** Enter trades when price **crosses Resistance or Support**
This script is **ideal for scalping & intraday trading** in a **3-minute timeframe** 🚀🔥
Let me know if you need **any modifications or improvements!** 📊💹
Nebula Volatility and Compression Radar (TechnoBlooms)This dynamic indicator spots volatility compression and expansion zones, highlighting breakout opportunities with precision. Featuring vibrant Bollinger Bands, trend-colored candles and real-time signals, Nebula Volatility and Compression Radar (NVCR) is your radar for navigating price moves.
Key Features:-
1. Gradient Bollinger Bands - Visually stunning bands with gradient fills for clear price boundaries.
The gradient filling is coded simply so that even beginners can easily understand the concept. Trader can change the gradient color according to their preference.
fill(pupBB, pbaseBB,upBB,baseBB,top_color=color.rgb(238, 236, 94), bottom_color=color.new(chart.bg_color,100),title = "fill color", display =display.all,fillgaps = true,editable = false)
fill(pbaseBB, plowBB,baseBB,lowBB,top_color=color.new(chart.bg_color,100),bottom_color=color.rgb(230, 20, 30),title = "fill color", display =display.all,fillgaps = true,editable = false)
These two lines are used for giving gradient shades. You can change the colors as per your wish to give preferred color combination.
For Example:
Another Example:
2. Customizable Settings - Adjust Bollinger Bands, ATR and trend lengths to fit your trading styles.
3. Trend Insights - Candles turn green for uptrends, red for downtrends, and gray for neutral zones.
Nebula Volatility and Compression Radar create dynamic cloud like zones that illuminate trends with clarity.
Display Stocks with Change%Display Stocks with Change% - Pine Script™ Indicator
Overview
The Display Stocks with Change% indicator is designed for TradingView to highlight specific stocks and their percentage change on a given date. The indicator allows users to input custom stock names, dates, and percentage changes, displaying relevant information directly on the chart. Additionally, it provides an option to connect the stock's high price with a label using customizable line styles.
Features
Custom Stock List: Users can input multiple stock names along with corresponding dates and percentage changes.
Date-Specific Highlighting: The script dynamically checks if the current bar's date matches any input date and displays relevant stock data.
Color-Coded Percentage Change: Stocks with a negative change are displayed in red, while positive or neutral changes are in black.
Connecting Lines: An option to enable or disable dotted, dashed, or solid lines connecting the stock's high price to the label.
Automatic Label Positioning: Adjusts label alignment based on recent price movement to avoid overlap and enhance visibility.
Input Parameters
COB (Close of Business Dates): A comma-separated list of dates in DD-MM-YYYY format.
Stock Names: A comma-separated list of stock tickers.
Change Percentage: Corresponding percentage changes for the listed stocks.
Show Connecting Lines: Boolean toggle to enable or disable connecting lines.
Line Color & Style: Customizable line color and style (solid, dotted, or dashed).
How It Works
Data Processing: The script splits user inputs into arrays and iterates through them.
Date Matching: It checks if the current bar's date matches any of the provided COB dates.
Label Formatting: When a match is found, it constructs a label containing the stock name and its percentage change.
Text Alignment & Factor Adjustments: Dynamically determines label positioning based on recent price movements.
Label Display: If any matching stocks are found, a label is created at the stock's high price.
Connecting Line (Optional): If enabled, a line is drawn from the stock’s high to the label for better visualization.
Key Benefits for Traders:
Track Multiple Stocks at Once – Displays stock names and their percentage changes on specific dates automatically.
Saves Time – No need to manually check historical data; the indicator overlays key stock movements.
Visual Insights – Labels & color coding (red for negative, black for positive) make it easy to spot trends.
Customizable & Automated – Add your own stocks, dates, and percentage changes; the script adjusts dynamically.
📌 Use Case Example:
You’re tracking MRPL, CARTRADE, and JSWENERGY on specific dates. Instead of digging through historical data, this indicator automatically highlights the stock’s movement on that date, allowing you to make faster, informed trading decisions.
Custom Level IndicatorThis indicator is mainly used for back testing your strategy manually. It allows you to set a fixed target value and SL value to see if your strategy hits the target or it hits the SL.
Input the entry value.
It will allow you to input a fixed target value and SL value for both bullish and bearish trades. The Bullish trades are indicated by Green and Bearish trades are indicated by Red lines.
Bias TableOverview
The Bias Table Indicator is a multi-timeframe analysis tool designed to provide a quick sentiment overview across multiple timeframes. It combines signals from Moving Averages (MAs) and Oscillators to determine market bias, helping traders make more informed decisions.
Key Features
✔ Multi-Timeframe Analysis (MTF) – Displays market bias across up to five timeframes.
✔ Customizable Signals – Choose whether bias is based on Moving Averages (MAs), Oscillators, or a combination of both.
✔ Visual Table Format – The indicator presents the bias as a color-coded table in the bottom-right corner of the chart for quick reference.
✔ Adjustable Colors & Display Settings – Users can customize colors for different sentiment states (Strong Buy, Buy, Neutral, Sell, Strong Sell).
How It Works
Bias Calculation: The indicator evaluates market conditions using preset values (which can be replaced with actual logic) to determine sentiment for each timeframe.
Multi-Timeframe Support: The table can display bias from hourly to monthly timeframes, giving traders a broader view of market conditions.
Customizable Signals: Users can filter the table to show bias based only on MAs, Oscillators, or a combination of both.
Interpreting the Table
📊 Timeframes: The leftmost column shows selected timeframes (e.g., 1H, 4H, 1D, 1W, 1M).
📈 Signal Columns:
MAs – Bias based on Moving Averages.
Oscillators – Bias based on momentum indicators like RSI, Stochastics, etc.
All – A combined bias based on both MAs & Oscillators.
🚦 Color-Coded Ratings:
🔵 Strong Buy – High bullish strength.
🔹 Buy – Moderate bullish sentiment.
⚪ Neutral – No clear trend.
🔸 Sell – Moderate bearish sentiment.
🔴 Strong Sell – High bearish strength.
Best Used For:
📈 Trend Confirmation: Validate signals from your primary strategy.
⏳ Multi-Timeframe Analysis: See whether short-term and long-term trends align.
⚡ Quick Sentiment Check: Get a high-level view of market conditions without analyzing multiple indicators separately.
Customization Options:
Select which timeframes to include in the table.
Choose whether to base bias on MAs, Oscillators, or both.
Adjust colors for each signal type.
PVSRA Volume Suite with Volume DeltaPVSRA Volume Suite with Volume Delta
🔹 Overview
This indicator is a Volume Suite that enhances PVSRA (Price, Volume, Support, Resistance Analysis) by incorporating Volume Delta and AI-driven predictive alerts. It is designed to help traders analyze volume pressure, market trends, and price movements with color-coded visualizations.
📌 Key Features
PVSRA Volume Color Coding – Highlights vector candles based on extreme volume/spread conditions.
Volume Delta Analysis – Tracks buying/selling pressure using up/down volume data.
AI-Powered Predictive Alerts – Identifies potential trend shifts based on volume and trend context.
Volatility-Adjusted Thresholds – Dynamically adapts volume conditions based on ATR (Average True Range).
Customizable MA & Symbol Overrides – Allows traders to tweak settings for personalized market insights.
Debug & Diagnostic Labels – Shows statistical z-scores, thresholds, and volume dynamics.
How It Works
PVSRA Color Coding – The script classifies candles into four categories based on volume and spread analysis:
🔴 Red Vector → Extreme bearish volume/spread
🟢 Green Vector → Extreme bullish volume/spread
🟣 Violet Vector → Above-average bearish volume
🔵 Blue Vector → Above-average bullish volume
Volume Delta Calculation – Uses lower timeframe volume analysis to estimate up/down volume differentials.
Trend & Predictive Alerts – Combines EMA crossovers with statistical volume analysis to detect potential trend shifts.
Volatility Adaptation – Adjusts volume thresholds based on ATR, making signals more reliable in changing market conditions.
Custom Symbol Override – Fetches PVSRA data from a different instrument, useful for index-based volume analysis.
Customizable Inputs
PVSRA Color Settings – Modify candle color schemes for better visual clarity.
Volume Delta Colors – Customize delta volume body, wick, and border colors.
AI Settings – Tune z-score thresholds, lookback periods, and enable predictive alerts.
Symbol Overrides – Analyze volume from a different market or asset.
Moving Average (MA) Settings – Display a volume-based moving average for trend confirmation.
Important Notes
Works best on intraday timeframes where volume data is reliable.
Lower timeframe volume delta estimates might not be precise for all assets.
No guarantees of accuracy – Use alongside other confluence tools for decision-making.
Credits & Open-Source Notice
This script is based on PVSRA methodologies and integrates Volume Delta analysis. Special thanks to Traders Reality and TradingView for their contributions to volume-based analysis.
Clean OHLC Lines | BaksPlots clean, non-repainting OHLC lines from higher timeframes onto your chart. Ideal for tracking key price levels (open, high, low, close) with precision and minimal clutter.
Core Functionality
Clean OHLC Lines = Historical Levels + Non-Repainting Logic
• Uses lookahead=on to anchor historical lines, ensuring no repainting.
• Displays OHLC lines for customizable timeframes (15min to Monthly).
• Optional candlestick boxes for visual context.
Key Features
• Multi-Timeframe OHLC:
Plot lines from 15min, 30min, 1H, 4H, Daily, Weekly, or Monthly timeframes.
• Non-Repainting Logic:
Historical lines remain static and never recalculate.
• Customizable Styles:
Adjust colors, line widths (1px-4px), and transparency for high/low/open/close lines.
• Candle Display:
Toggle candlestick boxes with bull/bear colors and adjustable borders.
• Past Lines Limit:
Control how many historical lines are displayed (1-500 bars).
User Inputs
• Timeframe:
Select the OHLC timeframe (e.g., "D" for daily).
• # Past Lines:
Limit historical lines to avoid overcrowding (default: 10).
• H/L Mode:
Draw high/low lines from the current or previous period.
• O/C Mode:
Anchor open/close lines to today’s open or yesterday’s close.
• Line Styles:
Customize colors, transparency, and styles (solid/dotted/dashed).
• Candle Display:
Toggle boxes/wicks and adjust bull/bear colors.
Important Notes
⚠️ Alignment:
• Monthly/weekly timeframes use fixed approximations (30d/7d).
• For accuracy, ensure your chart’s timeframe ≤ the selected OHLC timeframe (e.g., use 1H chart for daily lines).
⚠️ Performance:
• Reduce # Past Lines on low-end devices for smoother performance.
Risk Disclaimer
Trading involves risk. OHLC lines reflect historical price levels and do not predict future behavior. Use with other tools and risk management.
Open-Source Notice
This script is open-source under the Mozilla Public License 2.0. Modify or improve it freely, but republishing must follow TradingView’s House Rules.
📈 Happy trading!
Jurik Moving Average (JMA)Overview
Jurik Moving Average (JMA) is an adaptive moving average developed by Mark Jurik, widely regarded as one of the most powerful moving averages available to traders. This implementation provides a direct Pine Script translation of the reverse-engineered JMA algorithm
What Makes JMA Special
Unlike traditional moving averages, JMA adapts to market volatility in real-time. This "triple adaptive" approach allows JMA to:
Reduce lag significantly while maintaining exceptional smoothness
React quickly during trending markets
Filter out noise during consolidation phases
Provide clearer trend signals with fewer whipsaws
The Triple Adaptive Edge
JMA employs a three-stage smoothing process:
Preliminary smoothing via an adaptive EMA
Secondary smoothing using a Kalman filter with phase adjustment
Final smoothing through a unique Jurik adaptive filter
This approach combines with a dynamic volatility-based factor (alpha) that adapts to market conditions, making JMA superior to traditional moving averages in most situations.
Key Parameters
Period : Controls the lookback period (default: 14)
Phase : Adjusts the heaviness of the indicator (-100 to 100, default: 0)
Positive values reduce lag but may cause overshoot
Negative values increase smoothness but reduce responsiveness
Power : Smoothing factor (0.1-0.9, default 0.45)
Higher values create smoother curves
Lower values create more responsive but choppy curves
Multi Swing Point ConnectionsMulti Swing Point Connections — Tool for custom Highs & Lows structure mapping. This indicator allows to create fully customizable connections between multiple types of swing points, offering advanced visual structure of price dynamics.
Features:
Dynamic Swing Detection using adjustable pivot period.
Connect up to 8 swing relationships, with individual controls for swing points: 🔴 Higher High, 🟠 Lower High, 🔵 Higher Low, 🟢 Lower Low
Countback customization (steps for historical/future reference)
Optional enabling/disabling per connection
Visual Structure Mapping with configurable line color and width.
Perfect for identifying key structure shifts
Mapping trending vs consolidating phases
Building your own internal order flow frameworks
Inputs:
Swing Period: Defines how many bars to the left/right are used to detect pivot highs/lows.
Line Customization: Adjust style, width and color for visual clarity.
Connection Parameters: Select which swing types to connect, and control how far back and forward to look when making the connection.
Connection Examples:
HH to LH - Mapping potential bearish transition. Often signals weakening bullish momentum and a potential bearish shift in structure.
LL to HL - Mapping potential bullish transition. Suggests buyers stepping in earlier and potential bullish momentum building.
HL to LH (or LH to HL) - these can indicate sideways structure — often in consolidating or compressing price action depending on custom steps.
HH to HH (or LL to LL) - Connecting successive HHs or LLs visualizes higher highs in uptrends or lower lows in downtrends — a classic trend-following perspective.
HL to HL (or LH to LH) - Connecting successive HLs (or LHs) can highlight the “internal” structure between impulse legs, often defining minor trend channels or short-term ranges within the larger trend.
Avg.ROC TableThis indicator calculates the average Rate of Change (ROC) for up to 30 user-selected assets over a specified number of candles. It then ranks the assets—assigning rank 1 to the asset with the highest average ROC (strongest momentum) and rank 30 to the asset with the lowest. The results are displayed in a clean, easy-to-read table split into two stacks of 15 assets each, allowing you to quickly see which assets are performing best.
Arbitrage Synthetic Spread Chart v2Powerful tool for analyzing market divergences and identifying arbitrage opportunities! It creates a synthetic spread chart between two assets, displaying it in a clear format and helping traders spot moments of maximum decorrelation.
How does it work?
The indicator takes the closing prices of two assets and calculates their difference (spread):
spread = price1 - price2
Then, it constructs a price channel based on the highest and lowest values of the spread over a given period:
-Upper boundary: The highest spread value over the period
- Lower boundary: The lowest spread value over the period
- Middle line: The average of the upper and lower boundaries
Additionally, the indicator calculates the **correlation** between the two assets, helping traders assess their relationship strength.
How to use it?
When the spread reaches the channel boundaries, it may indicate an abnormal divergence between the assets. This serves as a signal for arbitrage trading:
✅ At the upper boundary: Sell Asset 1 and buy Asset 2
✅ At the lower boundary: Buy Asset 1 and sell Asset 2
Geometric Momentum Breakout with Monte CarloOverview
This experimental indicator uses geometric trendline analysis combined with momentum and Monte Carlo simulation techniques to help visualize potential breakout areas. It calculates support, resistance, and an aggregated trendline using a custom Geo library (by kaigouthro). The indicator also tracks breakout signals in a way that a new buy signal is triggered only after a sell signal (and vice versa), ensuring no repeated signals in the same direction.
Important:
This script is provided for educational purposes only. It is experimental and should not be used for live trading without proper testing and validation.
Key Features
Trendline Calculation:
Uses the Geo library to compute support and resistance trendlines based on historical high and low prices. The midpoint of these trendlines forms an aggregated trendline.
Momentum Analysis:
Computes the Rate of Change (ROC) to determine momentum. Breakout conditions are met only if the price and momentum exceed a user-defined threshold.
Monte Carlo Simulation:
Simulates future price movements to estimate the probability of bullish or bearish breakouts over a specified horizon.
Signal Tracking:
A persistent variable ensures that once a buy (or sell) signal is triggered, it won’t repeat until the opposite signal occurs.
Geometric Enhancements:
Calculates an aggregated trend angle and channel width (distance between support and resistance), and draws a perpendicular “breakout zone” line.
Table Display:
A built-in table displays key metrics including:
Bullish probability
Bearish probability
Aggregated trend angle (in degrees)
Channel width
Alerts:
Configurable alerts notify when a new buy or sell breakout signal occurs.
Inputs
Resistance Lookback & Support Lookback:
Number of bars to look back for determining resistance and support points.
Momentum Length & Threshold:
Period for ROC calculation and the minimum percentage change required for a breakout confirmation.
Monte Carlo Simulation Parameters:
Simulation Horizon: Number of future bars to simulate.
Simulation Iterations: Number of simulation runs.
Table Position & Text Size:
Customize where the table is displayed on the chart and the size of the text.
How to Use
Add the Script to Your Chart:
Copy the code into the Pine Script editor on TradingView and add it to your chart.
Adjust Settings:
Customize the inputs (e.g., lookback periods, momentum threshold, simulation parameters) to fit your analysis or educational requirements.
Interpret Signals:
A buy signal is plotted as a green triangle below the bar when conditions are met and the state transitions from neutral or sell.
A sell signal is plotted as a red triangle above the bar when conditions are met and the state transitions from neutral or buy.
Alerts are triggered only on the bar where a new signal is generated.
Examine the Table:
The table displays key metrics (breakout probabilities, aggregated trend angle, and channel width) to help evaluate current market conditions.
Disclaimer
This indicator is experimental and provided for educational purposes only. It is not intended as a trading signal or financial advice. Use this script at your own risk, and always perform your own research and testing before using any experimental tools in live trading.
Credit
This indicator uses the Geo library by kaigouthro. Special thanks to Cryptonerds and @Hazzantazzan for their contributions and insights.
Liquidity Zones [ActiveQuants]The Liquidity Zones indicator detects price areas where high trading volume coincides with below-average volatility , critical zones where large players often accumulate or distribute positions. Ideal for spotting potential reversal points and strategic liquidity pools.
Core Detection Formula
Liquidity Zone = (Volume > SMA(Volume, Length) × Multiplier) AND (Short-Term Volatility < 0.5 × Average Volatility)
Volume Surge Detection
Compares current volume to its SMA (user-defined length).
Multiplies threshold with " Volume Threshold Multiplier " parameter.
Volatility Contraction Filter
Calculates 5-bar volatility (standard deviation of closes).
Compares to average volatility over " Price Std. Dev. Length " period.
Requires short-term volatility < 50% of average.
█ KEY FEATURES
Merging Consecutive Zones
If the " Merge Consecutive Zones " option is enabled, the indicator will:
Calculate the number of consecutive bars that meet the liquidity zone criteria.
Sum the volume of these consecutive bars.
Display only the most recent label for the merged zone (previous labels in the sequence are removed).
Displays volume in either
Raw units (" Units ").
Dollar-equivalent (" Currency Value ") using closing price.
Alerts
An alert condition is built into the script. Traders can selectively enable alerts via TradingView’s alert system. Whenever a liquidity zone is detected, an alert is triggered with the message: " High-volume and low-volatility zone detected! ".
█ USER INPUTS
- Liquidity Zones Color
Sets the background color for liquidity zones.
Default: Orange (with 70 transparency).
- Volume SMA Length
Determines the number of bars over which the volume simple moving average is calculated.
Default: 20 bars.
- Volume Threshold Multiplier
Multiplies the volume SMA to establish a threshold. A bar’s volume must exceed this product to be considered high volume.
Default: 2.0.
- Price Std. Dev. Length
The period used to calculate the standard deviation of the closing prices. This is the basis for measuring average volatility.
Default: 14 bars.
- Zone Volume
A toggle to display a label with the volume value on liquidity zones.
Allows you to choose how the volume is displayed: Units (shows raw volume) or Currency Value (multiplies volume by the current closing price).
Allows you to choose the font size of the volume label.
- Merge Consecutive Zones
When enabled, volumes from consecutive liquidity zones are summed into a single total, and only the most recent label is displayed (previous labels in the sequence are removed).
Default: Enabled.
- Show Last
Specifies the number of bars back that the indicator will evaluate and plot liquidity zones.
Default: 500 bars.
- Timeframe
Analysis period.
Default: Chart.
█ CONCLUSION
The Liquidity Zones indicator is a powerful tool for traders seeking to identify key areas on the chart where liquidity is concentrated, characterized by high volume and low volatility . With customizable settings for volume analysis and volatility measurement , this indicator can be integrated into a wide range of trading strategies. It not only highlights these zones visually but also provides volume data labels and alerts for timely decision-making.
█ IMPORTANT NOTES
⚠ Volume and Volatility Settings: Adjust the Volume SMA Length , Volume Threshold Multiplier , and Price Std. Dev. Length to suit the typical trading volume and volatility of the asset you are analyzing.
⚠ Confirmed Bars Only: Signals are generated only on confirmed bars. This minimizes false signals due to intra-bar noise and also prevents indicator repainting .
⚠ Risk Management: Liquidity zones may signal areas of potential accumulation or distribution, but they should be used in conjunction with other technical analysis tools (e.g., support/resistance levels, trendlines, or momentum indicators). Trading involves risk, and it is recommended to combine this indicator with proper risk management techniques.
█ RISK DISCLAIMER
Trading involves substantial risk of loss. Liquidity zones indicate potential interest areas but don't guarantee price reactions. Always confirm with additional analysis and proper risk management. Past performance is not indicative of future results.
📈 Happy trading! 🚀
Pivot Point Calculator PPC V2 by [KhedrFx]📈 Trade Smarter with the Pivot Point Calculator (PPC) by KhedrFx
Want to spot key price levels and make better trading decisions? The Pivot Point Calculator (PPC) by KhedrFx is your go-to TradingView tool for identifying potential support and resistance zones. Whether you’re a Scalper trader, day trader, swing trader, or long-term investor, this script helps you plan precise entries and exits with confidence.
🔹 How to Use Pivot Points in Trading
📊 Step 1: Identify Key Levels
The PPC automatically plots:
Pivot Point (P): The main level where sentiment shifts between bullish and bearish.
Support Levels (S1, S2, S3): Areas where price may bounce higher.
Resistance Levels (R1, R2, R3): Areas where price may face selling pressure.
These levels act as dynamic price zones, helping you anticipate potential market movements.
🔥 Step 2: Choose Your Trading Strategy
1️⃣ Breakout Trading
Buy when the price breaks above the pivot point (P) with strong momentum.
Sell when the price drops below the pivot point (P) with strong momentum.
Use R1, R2, or R3 as profit targets in an uptrend and S1, S2, or S3 in a downtrend.
2️⃣ Reversal (Bounce) Trading
Buy when the price pulls back to S1, S2, or S3 and shows bullish confirmation (e.g., candlestick patterns like a bullish engulfing or hammer).
Sell when the price rallies to R1, R2, or R3 and shows bearish confirmation (e.g., rejection wicks or a bearish engulfing pattern).
🎯 Step 3: Set Smart Stop-Loss & Take-Profit Levels
Stop-Loss: Place it slightly below support (for buy trades) or above resistance (for sell trades).
Take-Profit: Use the next pivot level as a target.
Extreme Zones: R3 and S3 often signal strong reversals or breakouts—watch them closely!
🚀 How to Get Started
1️⃣ Add the PPC script to your TradingView chart.
2️⃣ Choose a timeframe that fits your strategy (5m, 15m, 30m, 1H, 4H, Daily, or Weekly).
3️⃣ Use the pivot points and support/resistance levels to fine-tune your trade entries, exits, and risk management.
⚠️ Trade Responsibly
This tool helps you analyze the market, but it’s not a guarantee of profits. Always do your own research, manage risk, and trade with caution.
💡 Ready to take your trading to the next level? Try the Pivot Point Calculator (PPC) by KhedrFx and start trading with confidence today! 🚀