Elliptic bands
Why Elliptic?
Unlike traditional indicators (e.g., Bollinger Bands with constant standard deviation multiples), the elliptic model introduces a cyclical, non-linear variation in band width. This reflects the idea that price movements often follow rhythmic patterns, widening and narrowing in a predictable yet dynamic way, akin to natural market cycles.
Buy: When the price enters from below (green triangle).
Sell: When the price enters from above (red triangle).
Inputs
MA Length: 50 (This is the period for the central Simple Moving Average (SMA).)
Cycle Period: 50 (This is the elliptic cycle length.)
Volatility Multiplier: 2.0 (This value scales the band width.)
Mathematical Foundation
The indicator is based on the ellipse equation. The basic formula is:
Ellipse Equation:
(x^2) / (a^2) + (y^2) / (b^2) = 1
Solving for y:
y = b * sqrt(1 - (x^2) / (a^2))
Parameters Explained:
a: Set to 1 (normalized).
x: Varies from -1 to 1 over the period.
b: Calculated as:
ta.stdev(close, MA Length) * Volatility Multiplier
(This represents the standard deviation of the close prices over the MA period, scaled by the volatility multiplier.)
y (offset): Represents the band distance from the moving average, forming the elliptic cycle.
Behavior
Bands:
The bands are narrow at the cycle edges (when the offset is 0) and become widest at the midpoint (when the offset equals b).
Trend:
The central moving average (MA) shows the overall trend direction, while the bands adjust according to the volatility.
Signals:
Standard buy and sell signals are generated when the price interacts with the bands.
Practical Use
Trend Identification:
If the price is above the MA, it indicates an uptrend; if below, a downtrend.
Support and Resistance:
The elliptic bands act as dynamic support and resistance levels.
Narrowing bands may signal potential trend reversals.
Breakouts:
Indicators and strategies
VWAP with ADX Buy/Sell Signals and 50 MA BackgroundThis Pine Script combines several technical indicators to create a comprehensive chart with buy and sell signals based on the ADX and VWAP, as well as background color changes depending on the price relative to the 50-period simple moving average (SMA). Here's a breakdown of what each part of the code does:
1. VWAP Settings
Anchor Period: You can select different periods such as "Session", "Week", "Month", etc. to define the anchor period for the VWAP.
Source: The source for VWAP is set to the typical price (hlc3).
Offset: Allows for shifting the VWAP by a specified amount.
2. ADX Settings
ADX Length: The period used to calculate the ADX.
ADX Smoothing: Used to smooth the ADX for better clarity.
ADX Threshold: Used to filter out weak trends (i.e., signals when ADX > 20).
3. ADX and VWAP Calculation
The ADX values are calculated using ta.dmi(), which returns the +DI, -DI, and ADX lines.
VWAP is calculated using ta.vwap(), based on the selected price source.
4. Buy/Sell Conditions
Buy Signal: A buy signal is generated when:
The +DI crosses above the -DI (indicating an uptrend).
The ADX is above 20 (indicating a strong trend).
The closing price is above the VWAP (indicating bullish market sentiment).
Sell Signal: A sell signal occurs when:
The -DI crosses above the +DI (indicating a downtrend).
The ADX is above 20 (indicating a strong trend).
The closing price is below the VWAP (indicating bearish market sentiment).
5. VWAP Bands
The standard deviation of the price is calculated using ta.stdev(), and the bands are plotted at multiples of the standard deviation (1, 2, and 3).
These bands are used to highlight possible overbought or oversold conditions.
6. 50-period SMA and Background Color
The script calculates a 50-period Simple Moving Average (SMA).
The background color is then changed based on whether the price is above or below the 50-period SMA. If the price is above the SMA, the background is green (bullish), and if it’s below, it’s red (bearish).
7. Plots
The script includes plots for the VWAP line, the ADX and DI lines (optional), and the upper and lower bands.
The buy and sell signals are plotted as shapes with text labels ("BUY" and "SELL") that appear below or above the price bars.
Final Notes:
Band Plots: Three levels of bands (green, olive, teal) are plotted using standard deviation multipliers (1, 2, and 3 times the standard deviation).
Background Color: The background color changes depending on whether the price is above or below the 50 SMA, giving a visual cue for bullish or bearish market conditions.
This indicator aims to offer a multi-faceted view of the market with trend-following signals (via ADX), VWAP for intraday support/resistance, and background coloring to indicate the current trend strength based on the 50 SMA.
DenP Ichimoku Interpreter (DII)A simple indicator using Ishimoku as a basis, giving entry and exit signals.
Components of the Ichimoku Cloud
The Ichimoku system consists of multiple lines that help traders understand market trends, momentum, and potential reversals.
1. Tenkan-Sen (Conversion Line) - Blue
Formula: (Highest High + Lowest Low) / 2 over the last 9 periods (default).
Purpose: Measures short-term trend direction.
Interpretation:
Upward movement: Indicates bullish momentum.
Downward movement: Indicates bearish momentum.
Flat line: Indicates consolidation.
2. Kijun-Sen (Base Line) - Red
Formula: (Highest High + Lowest Low) / 2 over the last 26 periods (default).
Purpose: Represents medium-term trend.
Interpretation:
Price above Kijun-Sen: Bullish signal.
Price below Kijun-Sen: Bearish signal.
Flat Kijun-Sen: Market in consolidation.
3. Senkou Span A (Leading Span A) - Light Green
Formula: (Tenkan-Sen + Kijun-Sen) / 2, plotted 26 periods ahead.
Purpose: Forms one of the Ichimoku Cloud boundaries.
Interpretation:
If Senkou Span A is rising, the market is bullish.
If Senkou Span A is falling, the market is bearish.
4. Senkou Span B (Leading Span B) - Light Red
Formula: (Highest High + Lowest Low) / 2 over the last 52 periods, plotted 26 periods ahead.
Purpose: Forms the second boundary of the Ichimoku Cloud.
Interpretation:
If price is above the cloud, the market is in a strong uptrend.
If price is below the cloud, the market is in a strong downtrend.
If price is inside the cloud, the market is consolidating.
5. Kumo (Cloud)
The area between Senkou Span A and Senkou Span B is shaded.
Green Cloud (Span A above Span B): Bullish trend.
Red Cloud (Span B above Span A): Bearish trend.
The thickness of the cloud represents market volatility.
6. Chikou Span (Lagging Line) - Green
Formula: Current closing price plotted 26 periods back.
Purpose: Confirms trend direction.
Interpretation:
Chikou Span above price 26 periods ago: Bullish.
Chikou Span below price 26 periods ago: Bearish.
Buy and Sell Conditions
The indicator generates buy and sell signals based on Ichimoku components.
1. Kijun Cross (Medium-Term Trend)
Buy Signal: When the closing price crosses above the Kijun-Sen (red line).
Sell Signal: When the closing price crosses below the Kijun-Sen.
2. Cloud Breakout (Senkou Span Cross)
Buy Signal:
When Senkou Span A is above Senkou Span B, and the price crosses above the cloud.
Indicates a strong uptrend.
Sell Signal:
When Senkou Span B is above Senkou Span A, and the price crosses below the cloud.
Indicates a strong downtrend.
3. Chikou Span Confirmation (Momentum Confirmation)
Buy Signal:
If Chikou Span (green) crosses above past price action, it confirms a bullish trend.
Used to validate Kijun and Cloud Buy signals.
Sell Signal:
If Chikou Span crosses below past price action, it confirms a bearish trend.
Visual Signals
The indicator plots triangles on the chart to indicate buy and sell signals:
Kijun Buy Signal: Upward triangle (green).
Kijun Sell Signal: Downward triangle (red).
Cloud Buy Signal: Upward triangle (green) near the cloud.
Cloud Sell Signal: Downward triangle (red) near the cloud.
Chikou Confirmation Buy: Upward triangle (green, confirming previous signals).
Chikou Confirmation Sell: Downward triangle (red, confirming previous signals).
Additional Features
Customizable Colors & Settings: Users can adjust colors, time periods, and display settings.
On-Chart Table: Displays current trend interpretations for easy reference.
How to Use the Indicator?
Check the Cloud Position:
Price above the cloud = bullish.
Price below the cloud = bearish.
Price inside the cloud = consolidation.
Look for Kijun Crosses:
Buy when price crosses above Kijun-Sen.
Sell when price crosses below Kijun-Sen.
Confirm with Chikou Span:
If Chikou Span supports the buy/sell signal, it's more reliable.
Use Cloud Breakouts for Trend Reversals:
If price moves from below to above the cloud = strong buy.
If price moves from above to below the cloud = strong sell.
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